Commit 808e8267 by songbingqi

完成分享

parent bf579af6
...@@ -188,6 +188,10 @@ export default { ...@@ -188,6 +188,10 @@ export default {
onHide() { onHide() {
this.$refs.shopbar.showShopCar = false; this.$refs.shopbar.showShopCar = false;
}, },
// 微信小程序右上角分享
onShareAppMessage() {
return this.getShareData();
},
async onShow() { async onShow() {
uni.setStorageSync("selectFlag",false) uni.setStorageSync("selectFlag",false)
const updataLoactionFlag = uni.getStorageSync("updataLoadtion") const updataLoactionFlag = uni.getStorageSync("updataLoadtion")
...@@ -198,6 +202,16 @@ export default { ...@@ -198,6 +202,16 @@ export default {
this.getHomeOrder() this.getHomeOrder()
}, },
methods: { methods: {
getShareData(type) {
let title = "HL快乐咖啡,高品高效高性价比";
let path = `/pages/menu/menu`;
let imageUrl = "../../static/imgs/wodezhanweitu.png";
return {
title,
imageUrl,
path,
}
},
getShopMenus(params) { getShopMenus(params) {
$EventBus.$off('getMenuList'); $EventBus.$off('getMenuList');
$EventBus.$on('getMenuList', (data) => { $EventBus.$on('getMenuList', (data) => {
......
...@@ -114,6 +114,10 @@ export default { ...@@ -114,6 +114,10 @@ export default {
this.tickNum = data?.data||0 this.tickNum = data?.data||0
} }
}, },
// 微信小程序右上角分享
onShareAppMessage() {
return this.getShareData();
},
data() { data() {
return { return {
loginInfo:"", loginInfo:"",
...@@ -130,6 +134,16 @@ export default { ...@@ -130,6 +134,16 @@ export default {
}, },
}, },
methods: { methods: {
getShareData(type) {
let title = "HL快乐咖啡,高品高效高性价比";
let path = `/pages/menu/menu`;
let imageUrl = "../../static/imgs/wodezhanweitu.png";
return {
title,
imageUrl,
path,
}
},
// 手机号授权登录 // 手机号授权登录
getPhoneNumber(e) { getPhoneNumber(e) {
if (e.detail.errMsg == 'getPhoneNumber:ok') { if (e.detail.errMsg == 'getPhoneNumber:ok') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment