shish 3 سال پیش
والد
کامیت
9c18123ed5
3فایلهای تغییر یافته به همراه88 افزوده شده و 36 حذف شده
  1. 2 1
      hdPad/src/pages.json
  2. 2 35
      hdPad/src/pages/home/components/nav.vue
  3. 84 0
      hdPad/src/pages/home/pf.vue

+ 2 - 1
hdPad/src/pages.json

@@ -9,7 +9,8 @@
 		{"path": "pages/home/make","style": {"navigationBarTitleText": "制作"}},
 		{"path": "pages/home/selectCustom","style": {"navigationBarTitleText": "选客户"}},
 		{"path": "pages/home/selectMake","style": {"navigationBarTitleText": "选款"}},
-		{"path": "pages/home/blue","style": {"navigationBarTitleText": "连接标签机"}}
+		{"path": "pages/home/blue","style": {"navigationBarTitleText": "连接标签机"}},
+		{"path": "pages/home/pf","style": {"navigationBarTitleText": "去批发端"}}
 	],
 	"subPackages": [],
 	"globalStyle": {

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

@@ -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 })
     },
   },
 };

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

@@ -0,0 +1,84 @@
+<template>
+<view>
+    <view>
+        <view class="app-casher-area">
+            <view class="nav-left">
+                <casherNav navType="pf"></casherNav>
+            </view>
+            <view class="work-list">
+                
+            </view>
+            <view class="work-info">
+                
+            </view>
+        </view>
+    </view>
+</view>
+</template>
+<script>
+import { mapGetters } from "vuex";
+import casherNav from './components/nav.vue'
+export default {
+	name: "pf",
+	components: {casherNav},
+	mixins: [],
+	data() {
+		return {
+
+		}
+	},
+	computed: {
+		...mapGetters(["getLoginInfo"])
+	},
+	methods: {
+		init(){
+			this.openRetail()
+		},
+		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('暂不支持打开')
+			}
+		}
+	}
+};
+</script>
+<style lang="scss" scoped>
+.app-casher-area {
+	display: flex;
+	height: 100vh;
+	& .nav-left {
+		flex: 5;
+		background-color: rgba(72, 91, 107, 1);
+	}
+	& .work-list {
+		flex: 32;
+	}
+    & .work-info{
+        flex: 89;
+    }
+}
+</style>