|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
{ 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/waste",flag:'retail' }
|
|
|
+ { name: "批发", page: "/pages/home/pf",flag:'pf' }
|
|
|
],
|
|
|
device:''
|
|
|
};
|
|
|
@@ -78,42 +78,9 @@ 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 {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '没有安装,请先下载安装',
|
|
|
- success: function (res){
|
|
|
- if (res.confirm){
|
|
|
- plus.runtime.openURL('http://www.wixhb.com/main/app')
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }else{
|
|
|
- this.$msg('暂不支持打开')
|
|
|
- }
|
|
|
- },
|
|
|
goTo(item) {
|
|
|
this.$util.hitVoice()
|
|
|
- if(item.flag == 'retail'){
|
|
|
- this.openRetail()
|
|
|
- }else{
|
|
|
- this.$util.pageTo({ url: item.page, type: 2 })
|
|
|
- }
|
|
|
+ this.$util.pageTo({ url: item.page, type: 2 })
|
|
|
},
|
|
|
},
|
|
|
};
|