|
|
|
@ -118,6 +118,10 @@ Page({ |
|
|
|
resData.parameter_tag_str = resData.parameter_tag.split(',').join(' | ') |
|
|
|
} |
|
|
|
|
|
|
|
if (resData.supplier_headimg) { |
|
|
|
resData.supplier_headimg = that.showImg(resData.supplier_headimg) |
|
|
|
} |
|
|
|
|
|
|
|
} catch(e) {} |
|
|
|
|
|
|
|
let swiperRange = this.data.swiperRange; |
|
|
|
@ -186,6 +190,17 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
showImg (img) { |
|
|
|
if (!img) { return img } |
|
|
|
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { |
|
|
|
return img; |
|
|
|
} else { |
|
|
|
// return "https://test.api.cloud.sz-trip.com"+img
|
|
|
|
return "https://static.ticket.sz-trip.com" + img; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
changeAllowance: function () { |
|
|
|
this.setData({ |
|
|
|
showAllowance: !this.data.showAllowance |
|
|
|
|