|
|
@@ -105,6 +105,7 @@ export default {
|
|
|
getWeixinId().then(res => {
|
|
|
this.getappIdList = res.data;
|
|
|
});
|
|
|
+ this.hideWorkbenchShareMenu();
|
|
|
},
|
|
|
onShow() {
|
|
|
if (!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0) {
|
|
|
@@ -113,8 +114,12 @@ export default {
|
|
|
this.loginStyle = 0;
|
|
|
}
|
|
|
this.scheduleActivePanelSync();
|
|
|
+ this.hideWorkbenchShareMenu();
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
+ if (!res || res.from !== "button") {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.loginStyle === 1 && this.$refs.ghsPanel) {
|
|
|
const msg = this.$refs.ghsPanel.getShareMessage(res);
|
|
|
if (msg) return msg;
|
|
|
@@ -122,10 +127,16 @@ export default {
|
|
|
if (this.loginStyle === 2 && this.$refs.mallPanel) {
|
|
|
return this.$refs.mallPanel.getShareMessage(res);
|
|
|
}
|
|
|
- return { title: "花掌柜,花店管家婆", desc: "", imageUrl: "", path: "admin/home/workbench" };
|
|
|
},
|
|
|
methods: {
|
|
|
iconSrc,
|
|
|
+ hideWorkbenchShareMenu() {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ uni.hideShareMenu({
|
|
|
+ menus: ["shareAppMessage", "shareTimeline"]
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
forwardToActivePanel(methodName) {
|
|
|
if (this.loginStyle === 1 && this.$refs.ghsPanel && this.$refs.ghsPanel[methodName]) {
|
|
|
return this.$refs.ghsPanel[methodName]();
|