商品详情分享

This commit is contained in:
donqi 2023-08-02 21:57:54 +08:00
parent 88495a3156
commit 33507a5bb0
1 changed files with 20 additions and 0 deletions

View File

@ -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() {