shish 3 ani în urmă
părinte
comite
16cc7f52ac

+ 1 - 2
hdPad/src/pages/home/components/nav.vue

@@ -33,8 +33,7 @@ export default {
         { name: "任务", page: "/pages/home/work",flag:'work' },
         { name: "任务", page: "/pages/home/work",flag:'work' },
         { name: "拆散", page: "/pages/home/make",flag:'selItem' },
         { name: "拆散", page: "/pages/home/make",flag:'selItem' },
         { name: "美团", page: "/pages/home/mt",flag:'mt' },
         { name: "美团", page: "/pages/home/mt",flag:'mt' },
-        { name: "散花", page: "/pages/home/sh",flag:'sh' },
-        { name: "批发", page: "/pages/home/pf",flag:'pf' }
+        { name: "散花", page: "/pages/home/sh",flag:'sh' }
       ],
       ],
       device:''
       device:''
     };
     };

+ 30 - 0
hdPad/src/pages/home/components/orderInfo.vue

@@ -76,6 +76,7 @@
       <view :class="[orderInfo.status==1 || orderInfo.status==5 ? '' : 'active']" @click="printFn(orderInfo)">打印</view>
       <view :class="[orderInfo.status==1 || orderInfo.status==5 ? '' : 'active']" @click="printFn(orderInfo)">打印</view>
       <view :class="[orderInfo.status==1 ? 'active' : '']" @click="selectFn(orderInfo,0)">查微信</view>
       <view :class="[orderInfo.status==1 ? 'active' : '']" @click="selectFn(orderInfo,0)">查微信</view>
       <view :class="[orderInfo.status==1 ? 'active' : '']" @click="cancelShow()">取消</view>
       <view :class="[orderInfo.status==1 ? 'active' : '']" @click="cancelShow()">取消</view>
+      <view class="active" @click="openPf()">批发</view>
     </view>
     </view>
 
 
     <!-- 选数量金额 -->
     <!-- 选数量金额 -->
@@ -159,6 +160,35 @@ export default {
 
 
 	},
 	},
   methods:{
   methods:{
+		openPf(){
+			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('暂不支持打开')
+			}
+		},
     confirmLock(){
     confirmLock(){
 
 
     },
     },

+ 0 - 32
hdPad/src/pages/home/pf.vue

@@ -30,41 +30,9 @@ export default {
 	computed: {
 	computed: {
 		...mapGetters(["getLoginInfo"])
 		...mapGetters(["getLoginInfo"])
 	},
 	},
-	onLoad(){
-		this.openPf()
-	},
 	methods: {
 	methods: {
 		init(){
 		init(){
 			
 			
-		},
-		openPf(){
-			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('暂不支持打开')
-			}
 		}
 		}
 	}
 	}
 };
 };