分享功能
This commit is contained in:
@@ -89,9 +89,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//分享到微信好友
|
//分享到微信好友
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
// 此处的distSource为分享者的部分信息,需要传递给其他人
|
|
||||||
let distSource = uni.getStorageSync('distSource');
|
|
||||||
if (distSource) {
|
|
||||||
return {
|
return {
|
||||||
title: '食瞳',
|
title: '食瞳',
|
||||||
type: 0,
|
type: 0,
|
||||||
@@ -99,12 +96,9 @@
|
|||||||
summary: "",
|
summary: "",
|
||||||
imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png"
|
imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
//分享到朋友圈
|
//分享到朋友圈
|
||||||
onShareTimeline(res) {
|
onShareTimeline(res) {
|
||||||
let distSource = uni.getStorageSync('distSource');
|
|
||||||
if (distSource) {
|
|
||||||
return {
|
return {
|
||||||
title: '食瞳',
|
title: '食瞳',
|
||||||
type: 0,
|
type: 0,
|
||||||
@@ -112,7 +106,6 @@
|
|||||||
summary: "",
|
summary: "",
|
||||||
imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png"
|
imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取按上架时间排列的产品列表length
|
//获取按上架时间排列的产品列表length
|
||||||
|
|||||||
Reference in New Issue
Block a user