富文本图片显示
This commit is contained in:
parent
bc3720b99d
commit
cc28c968d9
@ -23,6 +23,10 @@ Page({
|
|||||||
{
|
{
|
||||||
resultLocation: 'TX'
|
resultLocation: 'TX'
|
||||||
}, null, function(code, data){
|
}, 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(',');
|
var swiperImg = data.venuePanorama.split(',');
|
||||||
if(swiperImg.length <= 1){
|
if(swiperImg.length <= 1){
|
||||||
self.setData({
|
self.setData({
|
||||||
|
Loading…
Reference in New Issue
Block a user