|
@@ -136,7 +136,10 @@ Page({
|
|
|
openTime
|
|
|
} = exhibitionList;
|
|
|
console.log(res)
|
|
|
- exhibitionList.forEach((currentValue) => currentValue.distance = Math.ceil(currentValue.distance))
|
|
|
+ exhibitionList.forEach((currentValue) => {
|
|
|
+ currentValue.distance = Math.ceil(currentValue.distance);
|
|
|
+ currentValue.product ? currentValue.product.link = escape(currentValue.product.link) : '';
|
|
|
+ })
|
|
|
this.setData({
|
|
|
currentPage: res.data.data.number + 1,
|
|
|
lastPage,
|
|
@@ -171,6 +174,9 @@ Page({
|
|
|
})
|
|
|
this.fetchData(page)
|
|
|
},
|
|
|
+ fail: (res) => {
|
|
|
+ this.fetchData(page)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -295,8 +301,10 @@ Page({
|
|
|
pagetype,
|
|
|
urltype,
|
|
|
hasproduct,
|
|
|
- haspay
|
|
|
+ haspay,
|
|
|
+ productlink
|
|
|
} = e.currentTarget.dataset;
|
|
|
+ console.log(e.currentTarget.dataset)
|
|
|
|
|
|
|
|
|
app.globalData.currentUrl = url
|
|
@@ -326,7 +334,7 @@ Page({
|
|
|
case 1:
|
|
|
if (hasproduct) {
|
|
|
wx.navigateTo({
|
|
|
- url: `./pay_page/index?id=${url}`,
|
|
|
+ url: `../wv_page/index?link=${escape(productlink)}`,
|
|
|
success: function(res) {},
|
|
|
fail: function(res) {},
|
|
|
complete: function(res) {},
|