商品详情分享
This commit is contained in:
parent
88495a3156
commit
33507a5bb0
|
|
@ -283,6 +283,26 @@
|
|||
onPageScroll(e) {
|
||||
this.showTopNav = e.scrollTop > 250 ? true : false;
|
||||
this.changeSwiperHeight = e.scrollTop > 50 ? true: false;
|
||||
},
|
||||
onShareAppMessage(e) {
|
||||
let params = {
|
||||
goodsId: this.inParam.goodsId
|
||||
}
|
||||
return {
|
||||
title: this.productDetail.goodsName,
|
||||
path: '/pages/product/product-detail?params=' + encodeURIComponent(JSON.stringify(params)),
|
||||
// imageUrl: productDetail
|
||||
}
|
||||
},
|
||||
onShareTimeline(e) {
|
||||
let params = {
|
||||
goodsId: this.inParam.goodsId
|
||||
}
|
||||
return {
|
||||
title: this.productDetail.goodsName,
|
||||
path: '/pages/product/product-detail?params=' + encodeURIComponent(JSON.stringify(params)),
|
||||
imageUrl: this.productDetail.goodsImgUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async loadData() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue