|
|
@ -213,8 +213,6 @@ export default { |
|
|
|
// url未携带用户uid,填上登录用户uid,跳转 |
|
|
|
// url未携带用户uid,填上登录用户uid,跳转 |
|
|
|
that.bargainUid = that.userInfo.uid |
|
|
|
that.bargainUid = that.userInfo.uid |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取商品详情 |
|
|
|
// 获取商品详情 |
|
|
|
that.getBargainDetail() |
|
|
|
that.getBargainDetail() |
|
|
|
// 砍价数据统计 |
|
|
|
// 砍价数据统计 |
|
|
@ -310,9 +308,9 @@ export default { |
|
|
|
.then(res => { |
|
|
|
.then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
uni.hideLoading() |
|
|
|
that.goodsDetail = res.data.bargain |
|
|
|
that.goodsDetail = res.data.bargain |
|
|
|
|
|
|
|
console.log(that.goodsDetail) |
|
|
|
that.goodsDetail.description = that.goodsDetail.description.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"') |
|
|
|
that.goodsDetail.description = that.goodsDetail.description.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"') |
|
|
|
that.goodsDetail.rule = that.goodsDetail.rule.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"') |
|
|
|
that.goodsDetail.rule = that.goodsDetail.rule.replace(/\<img/gi, '<img style="max-width:100%;height:auto;"') |
|
|
|
that.goodsDetail.stopTime = that.goodsDetail.stopTime / 1000 |
|
|
|
|
|
|
|
that.getBargainHelpCount() |
|
|
|
that.getBargainHelpCount() |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(res => { |
|
|
|
.catch(res => { |
|
|
|