|
|
|
@ -94,6 +94,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
isGoHome(){ |
|
|
|
|
|
|
|
|
|
/* 黑名单:不允许分享 */ |
|
|
|
|
let arr =[ |
|
|
|
|
"/physical-merchants/settleAccounts/settleAccounts",//订单确认
|
|
|
|
|
"/physical-merchants/classify/order/pay",//收银台页
|
|
|
|
@ -121,6 +123,26 @@ export default { |
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// #ifdef H5
|
|
|
|
|
onBackPress(event){ |
|
|
|
|
/* h5分享页面的回退 */ |
|
|
|
|
const app = getApp(); |
|
|
|
|
let str = uni.getStorageSync("accountType"); |
|
|
|
|
if(str == "0000016&key"){ |
|
|
|
|
if(getCurrentPages().length == 2 && getCurrentPages()[0].route == "pages/welcome/welcome"){ |
|
|
|
|
|
|
|
|
|
uni.switchTab({ |
|
|
|
|
url:"/pages/tabBar/home/home" |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// #endif
|
|
|
|
|
/* 小程序分享 */ |
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
onShareAppMessage(res) { |
|
|
|
|