|
|
@@ -33,8 +33,8 @@ export default {
|
|
|
{ name: "任务", page: "/pages/home/work",flag:'work' },
|
|
|
{ name: "拆散", page: "/pages/home/make",flag:'selItem' },
|
|
|
{ name: "美团", page: "/pages/home/mt",flag:'mt' },
|
|
|
- { name: "散花", page: "/pages/home/sh",flag:'sh' }
|
|
|
- //{ name: "选品建单", page: "/pages/home/selectMake",flag:'selGoods' }
|
|
|
+ { name: "散花", page: "/pages/home/sh",flag:'sh' },
|
|
|
+ { name: "批发", page: "/pages/home/waste",flag:'retail' }
|
|
|
],
|
|
|
device:''
|
|
|
};
|
|
|
@@ -78,9 +78,34 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ openRetail(){
|
|
|
+ let type = uni.getSystemInfoSync().platform
|
|
|
+ if(type == 'android'){
|
|
|
+ if (plus.runtime.isApplicationExist({pname: 'huahuibao.xhbsy'})) {
|
|
|
+ let senddata = {}
|
|
|
+ //调用第三方app
|
|
|
+ plus.runtime.launchApplication({
|
|
|
+ pname: "huahuibao.xhbsy",
|
|
|
+ extra: senddata
|
|
|
+ },
|
|
|
+ (e)=> {
|
|
|
+ uni.showToast({ title: "打开失败", icon: "none" })
|
|
|
+ },
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this.$msg('没有安装')
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$msg('暂不支持打开')
|
|
|
+ }
|
|
|
+ },
|
|
|
goTo(item) {
|
|
|
- this.$util.hitVoice();
|
|
|
- this.$util.pageTo({ url: item.page, type: 2 });
|
|
|
+ this.$util.hitVoice()
|
|
|
+ if(item.flag == 'retail'){
|
|
|
+ this.openRetail()
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({ url: item.page, type: 2 })
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
};
|