Bläddra i källkod

Merge branch 'master' of git.huaml.com:zhh/front-end

zhengxin 5 år sedan
förälder
incheckning
9afe22fe02

+ 1 - 1
ghs/src/admin/home/console.vue

@@ -23,7 +23,7 @@ export default {
         });
         });
       } else {
       } else {
         this.$util.pageTo({
         this.$util.pageTo({
-          url: "/admin/official/index",
+          url: "/pagesClient/official/index",
           type: 2
           type: 2
         });
         });
       }
       }

+ 2 - 2
ghs/src/admin/home/member.vue

@@ -6,7 +6,7 @@
       :isAdd="true"
       :isAdd="true"
       :currentTab="tabIndex"
       :currentTab="tabIndex"
       :height="100"
       :height="100"
-      @add="pageTo('/admin/member/add')"
+      @add="pageTo('/pagesClient/member/add')"
       @change="change"
       @change="change"
       itemWidth="50%"
       itemWidth="50%"
     />
     />
@@ -15,7 +15,7 @@
         <tui-list-cell
         <tui-list-cell
           :arrow="true"
           :arrow="true"
           @click="pageTo({
           @click="pageTo({
-					url: '/admin/member/detail',
+					url: '/pagesClient/member/detail',
 					query: {
 					query: {
 						id: item.id
 						id: item.id
 					}
 					}

+ 1 - 1
ghs/src/admin/home/workbench.vue

@@ -360,7 +360,7 @@ export default {
     // 续费
     // 续费
     renewFn() {
     renewFn() {
       this.$util.pageTo({
       this.$util.pageTo({
-        url: "/admin/official/index",
+        url: "/pagesClient/official/index",
         query: {
         query: {
           pay: 1
           pay: 1
         },
         },

+ 1 - 1
ghs/src/admin/interest/my-invite.vue

@@ -138,7 +138,7 @@ export default {
           title: "更懂您的花卉宝",
           title: "更懂您的花卉宝",
           desc: "",
           desc: "",
           imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
           imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
-          pagePath: "admin/official/index?introMerchantId=" + res.id
+          pagePath: "pagesClient/official/index?introMerchantId=" + res.id
         };
         };
         this.jweixinFn(params);
         this.jweixinFn(params);
       });
       });

+ 3 - 3
ghs/src/mixins/globalMixins.js

@@ -31,7 +31,7 @@ export default {
 				.then(res => {
 				.then(res => {
 					console.log(123)
 					console.log(123)
 					//花店员工和未知身份可以访问的地址
 					//花店员工和未知身份可以访问的地址
-					var urlArr = ['admin/shopAdmin/bind', 'admin/official'];
+					var urlArr = ['admin/shopAdmin/bind', 'pagesClient/official'];
 					var redirectPage = res.redirectPage;
 					var redirectPage = res.redirectPage;
 					var needRedirect = true;
 					var needRedirect = true;
 					urlArr.forEach((item, index, array) => {
 					urlArr.forEach((item, index, array) => {
@@ -49,13 +49,13 @@ export default {
 						//花店员工
 						//花店员工
 						} else if(res.data.admin.identity == '1'){
 						} else if(res.data.admin.identity == '1'){
 							this.$util.pageTo({
 							this.$util.pageTo({
-								url: "/admin/official/latest-shop",
+								url: "/pagesClient/official/latest-shop",
 								type: 2
 								type: 2
 							});
 							});
 						//未知身份
 						//未知身份
 						}else{
 						}else{
 							this.$util.pageTo({
 							this.$util.pageTo({
-								url: "/admin/official/index",
+								url: "/pagesClient/official/index",
 								type: 2
 								type: 2
 							});
 							});
 						}
 						}

+ 29 - 34
ghs/src/pages.json

@@ -57,75 +57,58 @@
 	],
 	],
 	"subPackages": [
 	"subPackages": [
 		{
 		{
-			"root": "admin/order",
+			"root": "pagesClient",
 			"pages": [
 			"pages": [
 				{
 				{
-					"path": "detail",
-					"style": {
-						"navigationBarTitleText": "详情"
-					}
-				},
-				{
-					"path": "ship",
+					"path": "member/add",
 					"style": {
 					"style": {
-						"navigationBarTitleText": "发货"
+						"navigationBarTitleText": "添加客户"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "fill-form",
+					"path": "member/detail",
 					"style": {
 					"style": {
-						"navigationBarTitleText": "填写收花人"
+						"navigationBarTitleText": "客户详情"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "print",
-					"style": {
-						"navigationBarTitleText": "打印"
-					}
-				}
-			]
-		},
-		{
-			"root": "admin/official",
-			"pages": [
-				{
-					"path": "index",
+					"path": "official/index",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "花卉宝"
 						"navigationBarTitleText": "花卉宝"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "pay",
+					"path": "official/pay",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "支付"
 						"navigationBarTitleText": "支付"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "apply",
+					"path": "official/apply",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "申请"
 						"navigationBarTitleText": "申请"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "callback",
+					"path": "official/callback",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "回调"
 						"navigationBarTitleText": "回调"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "latest-shop",
+					"path": "official/latest-shop",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "最近访问的店铺"
 						"navigationBarTitleText": "最近访问的店铺"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "result",
+					"path": "official/result",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "结果"
 						"navigationBarTitleText": "结果"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "warn",
+					"path": "official/warn",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "开启微信提醒"
 						"navigationBarTitleText": "开启微信提醒"
 					}
 					}
@@ -133,18 +116,30 @@
 			]
 			]
 		},
 		},
 		{
 		{
-			"root": "admin/member",
+			"root": "admin/order",
 			"pages": [
 			"pages": [
 				{
 				{
-					"path": "add",
+					"path": "detail",
 					"style": {
 					"style": {
-						"navigationBarTitleText": "添加客户"
+						"navigationBarTitleText": "详情"
 					}
 					}
 				},
 				},
 				{
 				{
-					"path": "detail",
+					"path": "ship",
 					"style": {
 					"style": {
-						"navigationBarTitleText": "客户详情"
+						"navigationBarTitleText": "发货"
+					}
+				},
+				{
+					"path": "fill-form",
+					"style": {
+						"navigationBarTitleText": "填写收花人"
+					}
+				},
+				{
+					"path": "print",
+					"style": {
+						"navigationBarTitleText": "打印"
 					}
 					}
 				}
 				}
 			]
 			]

+ 0 - 0
ghs/src/admin/member/add.vue → ghs/src/pagesClient/member/add.vue


+ 1 - 1
ghs/src/admin/member/detail.vue → ghs/src/pagesClient/member/detail.vue

@@ -190,7 +190,7 @@ export default {
           title: "更懂您的花卉宝",
           title: "更懂您的花卉宝",
           desc: "",
           desc: "",
           imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
           imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
-          pagePath: "admin/official/index?introMerchantId=" + res.data.id
+          pagePath: "pagesClient/official/index?introMerchantId=" + res.data.id
         };
         };
         this.jweixinFn(params);
         this.jweixinFn(params);
       });
       });

+ 2 - 2
ghs/src/admin/official/apply.vue → ghs/src/pagesClient/official/apply.vue

@@ -221,7 +221,7 @@ export default {
       }).then(res => {
       }).then(res => {
         uni.setStorageSync("officialApply", res.data);
         uni.setStorageSync("officialApply", res.data);
         this.$util.pageTo({
         this.$util.pageTo({
-          url: "/admin/official/callback",
+          url: "/pagesClient/official/callback",
           type: 2,
           type: 2,
           query: {
           query: {
             pagestatus: 3
             pagestatus: 3
@@ -350,7 +350,7 @@ export default {
       let formData = this.form;
       let formData = this.form;
       let checkRes = form.validation(formData, rules);
       let checkRes = form.validation(formData, rules);
       this.$util.pageTo({
       this.$util.pageTo({
-          url: "/admin/official/callback",
+          url: "/pagesClient/official/callback",
           type: 2,
           type: 2,
           query: {
           query: {
             pagestatus: 1
             pagestatus: 1

+ 0 - 0
ghs/src/admin/official/callback.vue → ghs/src/pagesClient/official/callback.vue


+ 3 - 3
ghs/src/admin/official/index.vue → ghs/src/pagesClient/official/index.vue

@@ -54,12 +54,12 @@
       v-if="status == 3"
       v-if="status == 3"
       class="app-footer"
       class="app-footer"
       @click="pageTo({
       @click="pageTo({
-			url: '/admin/official/pay',
+			url: '/pagesClient/official/pay',
 			status: 1
 			status: 1
 		})"
 		})"
     >立即续费</div>
     >立即续费</div>
     <div v-else class="app-footer" @click="pageTo({
     <div v-else class="app-footer" @click="pageTo({
-			url: '/admin/official/pay'
+			url: '/pagesClient/official/pay'
 		})">申请试用</div>
 		})">申请试用</div>
   </div>
   </div>
 </template>
 </template>
@@ -138,7 +138,7 @@ export default {
   onLoad() {
   onLoad() {
     this.jweixinFn({
     this.jweixinFn({
       title: "更懂您的花卉宝",
       title: "更懂您的花卉宝",
-      pagePath: "admin/official/index",
+      pagePath: "pagesClient/official/index",
       imageUrl: ""
       imageUrl: ""
     });
     });
   },
   },

+ 0 - 0
ghs/src/admin/official/latest-shop.vue → ghs/src/pagesClient/official/latest-shop.vue


+ 1 - 1
ghs/src/admin/official/pay.vue → ghs/src/pagesClient/official/pay.vue

@@ -47,7 +47,7 @@
         v-if="$util.isEmpty(renewOption)"
         v-if="$util.isEmpty(renewOption)"
         class="admin-button-com middle blue"
         class="admin-button-com middle blue"
         @click="pageTo({
         @click="pageTo({
-			url: '/admin/official/apply',type:2
+			url: '/pagesClient/official/apply',type:2
 		})"
 		})"
       >免费试用</button>
       >免费试用</button>
       <button v-else class="admin-button-com middle blue" @click="wxPay">支付</button>
       <button v-else class="admin-button-com middle blue" @click="wxPay">支付</button>

+ 1 - 1
ghs/src/admin/official/result.vue → ghs/src/pagesClient/official/result.vue

@@ -8,7 +8,7 @@
 		<button 
 		<button 
             class="admin-button-com blue big" 
             class="admin-button-com blue big" 
             @click="pageTo({
             @click="pageTo({
-                url:'/admin/official/warn'
+                url:'/pagesClient/official/warn'
             })"
             })"
             >
             >
             去开启
             去开启

+ 0 - 0
ghs/src/admin/official/warn.vue → ghs/src/pagesClient/official/warn.vue