富文本图片显示

This commit is contained in:
wans 2020-07-16 11:33:23 +08:00
parent bc3720b99d
commit cc28c968d9

View File

@ -23,6 +23,10 @@ Page({
{
resultLocation: 'TX'
}, null, function(code, data){
var src = 'img src="' + app.venueUrl + '/'
if(data.venueDescription.indexOf('src="') != -1){
data.venueDescription = data.venueDescription.replace(/src="/g, src)
}
var swiperImg = data.venuePanorama.split(',');
if(swiperImg.length <= 1){
self.setData({