diff --git a/pages/info/postProductInfo/index.js b/pages/info/postProductInfo/index.js
index 1e643e0..7d8f92f 100644
--- a/pages/info/postProductInfo/index.js
+++ b/pages/info/postProductInfo/index.js
@@ -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
diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml
index e3ca65f..7397ce9 100644
--- a/pages/info/postProductInfo/index.wxml
+++ b/pages/info/postProductInfo/index.wxml
@@ -186,7 +186,7 @@