storeBelieveInLight 1 год назад
Родитель
Сommit
402aa6b2be

+ 3 - 3
manifest.json

@@ -1,6 +1,6 @@
1
 {
1
 {
2
-    "name" : "yhc-merchantapplet",
3
-    "appid" : "__UNI__A3ABAAD",
2
+    "name" : "yhc-merchantapplet1",
3
+    "appid" : "__UNI__3E9B1DB",
4
     "description" : "",
4
     "description" : "",
5
     "versionName" : "1.0.0",
5
     "versionName" : "1.0.0",
6
     "versionCode" : 309,
6
     "versionCode" : 309,
@@ -101,7 +101,7 @@
101
                 // }
101
                 // }
102
                 // 自行修改下方的 /api
102
                 // 自行修改下方的 /api
103
                 "/api" : {
103
                 "/api" : {
104
-                    "target" : "服务器地址",
104
+                    "target" : "https://api.hxxfb.com",
105
                     "pathRewirte" : {
105
                     "pathRewirte" : {
106
                         //路径重写
106
                         //路径重写
107
                         "^/api" : "/"
107
                         "^/api" : "/"

+ 65 - 50
pages.json

@@ -1,49 +1,63 @@
1
 {
1
 {
2
     "pages" : [
2
     "pages" : [
3
-        //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
4
-		{
5
-		    "path" : "pages/my/index",
6
-		    "style" : {
7
-		        // "navigationBarTitleText": "服务中心"
8
-		        "navigationStyle" : "custom"
9
-		    }
10
-		},
11
-        {
12
-            "path" : "pages/index/index",
13
-            "style" : {
14
-                "navigationBarTitleText" : "启动"
15
-            }
16
-        },
17
-        // "navigationBarBackgroundColor": "#FFFF"
18
-        {
19
-            "path" : "pages/index/bottombat",
20
-            "style" : {
21
-                "navigationBarTitleText" : ""
22
-            }
23
-        },
24
-        // "navigationBarBackgroundColor": "#FFFF"
25
-        {
26
-            "path" : "pages/cashier/index",
27
-            "style" : {
28
-                // "navigationBarTitleText": "收银台",
29
-                "navigationStyle" : "custom",
30
-                "enablePullDownRefresh" : true
31
-            }
32
-        },
33
-        {
34
-            "path" : "pages/storemanagement/index",
35
-            "style" : {
36
-                "navigationBarTitleText": ""
37
-            }
38
-        },
39
-        {
40
-            "path" : "pages/ordermanagement/index",
41
-            "style" : {
42
-                // "navigationBarTitleText": "订单管理"
43
-                "navigationStyle" : "custom"
44
-            }
3
+      //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
4
+      {
5
+        // "path" : "pages/my/index",
6
+        "path": "pages/cashier/index",
7
+        "style": {
8
+          // "navigationBarTitleText": "服务中心"
9
+          "navigationStyle": "custom"
10
+        }
11
+      },
12
+      {
13
+        "path": "pages/index/index",
14
+        "style": {
15
+          "navigationBarTitleText": "启动"
45
         }
16
         }
46
-        
17
+      },
18
+      {
19
+        "path": "pages/my/index",
20
+        "style": {
21
+          "navigationStyle": "custom"
22
+        }
23
+      },
24
+      // "navigationBarBackgroundColor": "#FFFF"
25
+      {
26
+        "path": "pages/index/bottombat",
27
+        "style": {
28
+          "navigationBarTitleText": ""
29
+        }
30
+      },
31
+      // "navigationBarBackgroundColor": "#FFFF"
32
+      {
33
+        "path": "pages/cashier/index",
34
+        "style": {
35
+          // "navigationBarTitleText": "收银台",
36
+          "navigationStyle": "custom",
37
+          "enablePullDownRefresh": true
38
+        }
39
+      },
40
+      {
41
+        "path": "pages/storemanagement/index",
42
+        "style": {
43
+          "navigationBarTitleText": ""
44
+        }
45
+      },
46
+      {
47
+        "path": "pages/ordermanagement/index",
48
+        "style": {
49
+          // "navigationBarTitleText": "订单管理"
50
+          "navigationStyle": "custom"
51
+        }
52
+      },
53
+	  {
54
+	    "path": "pages/onlineproductselection/onlineproductselection",
55
+	    "style": {
56
+	      // "navigationBarTitleText": "在线选品"
57
+	      "navigationStyle": "custom",
58
+		  "enablePullDownRefresh": true
59
+	    }
60
+	  }
47
     ],
61
     ],
48
     "subPackages" : [
62
     "subPackages" : [
49
         //用户登陆--分包
63
         //用户登陆--分包
@@ -209,7 +223,8 @@
209
                 	"path" : "productManagementModule/productManagement",
223
                 	"path" : "productManagementModule/productManagement",
210
                 	"style" : 
224
                 	"style" : 
211
                 	{
225
                 	{
212
-                		"navigationStyle" : "custom"
226
+                		"navigationStyle" : "custom",
227
+						"enablePullDownRefresh": true
213
                 	}
228
                 	}
214
                 },
229
                 },
215
                 {
230
                 {
@@ -299,10 +314,10 @@
299
                 "text" : "收银台"
314
                 "text" : "收银台"
300
             },
315
             },
301
             {
316
             {
302
-                "pagePath" : "pages/storemanagement/index",
317
+                "pagePath" : "shop/productManagementModule/productManagement",
303
                 "iconPath" : "static/tab/dian.png",
318
                 "iconPath" : "static/tab/dian.png",
304
                 "selectedIconPath" : "static/tab/dian1.png",
319
                 "selectedIconPath" : "static/tab/dian1.png",
305
-                "text" : "消息"
320
+                "text" : "商品管理"
306
             },
321
             },
307
             {
322
             {
308
                 "pagePath" : "pages/ordermanagement/index",
323
                 "pagePath" : "pages/ordermanagement/index",
@@ -311,10 +326,10 @@
311
                 "text" : "订单管理"
326
                 "text" : "订单管理"
312
             },
327
             },
313
             {
328
             {
314
-                "pagePath" : "pages/my/index",
315
-                "iconPath" : "static/tab/wo.png",
316
-                "selectedIconPath" : "static/tab/wo1.png",
317
-                "text" : "服务中心"
329
+                "pagePath" : "pages/onlineproductselection/onlineproductselection",
330
+                "iconPath" : "static/tab/shangpin.png",
331
+                "selectedIconPath" : "static/tab/shangpin2.png",
332
+                "text" : "在线选品"
318
             }
333
             }
319
         ]
334
         ]
320
     }
335
     }

+ 30 - 29
pages/my/index.vue

@@ -14,7 +14,7 @@
14
 					</view>
14
 					</view>
15
 				</view>
15
 				</view>
16
 			</view>
16
 			</view>
17
-			<view class="listadd-annkiu" @click="logoutAction" v-if="uid">
17
+			<view class="listadd-annkiu" @click="logoutAction" v-if="uid && false">
18
 				退出登录
18
 				退出登录
19
 			</view>
19
 			</view>
20
 		</view>
20
 		</view>
@@ -28,34 +28,35 @@
28
 	export default {
28
 	export default {
29
 		data() {
29
 		data() {
30
 			return {
30
 			return {
31
-				mnu: [{
32
-						name: "分润设置",
33
-						url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161807687.png",
34
-						pages:"/shop/services/setting",
35
-						show:true,
36
-						id: "3",
37
-					},
38
-					{
39
-						name: "我的音响",
40
-						url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161749139.png",
41
-						pages:"/shop/services/mystereo",
42
-						show:true,
43
-						id: "0",
44
-					},
45
-					{
46
-						name: "锁定用户",
47
-						url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161733260.png",
48
-						pages:"/shop/services/lockuser",
49
-						show:true,
50
-						id: "0",
51
-					},
52
-					{
53
-						name: "商品管理",
54
-						url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161733260.png",
55
-						pages:"/shop/productManagementModule/productManagement",
56
-						show:true,
57
-						id: "0",
58
-					}
31
+				mnu: [
32
+					// {
33
+					// 	name: "分润设置",
34
+					// 	url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161807687.png",
35
+					// 	pages:"/shop/services/setting",
36
+					// 	show:true,
37
+					// 	id: "3",
38
+					// },
39
+					// {
40
+					// 	name: "我的音响",
41
+					// 	url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161749139.png",
42
+					// 	pages:"/shop/services/mystereo",
43
+					// 	show:true,
44
+					// 	id: "0",
45
+					// },
46
+					// {
47
+					// 	name: "锁定用户",
48
+					// 	url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161733260.png",
49
+					// 	pages:"/shop/services/lockuser",
50
+					// 	show:true,
51
+					// 	id: "0",
52
+					// },
53
+					// {
54
+					// 	name: "商品管理",
55
+					// 	url: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812161733260.png",
56
+					// 	pages:"/shop/productManagementModule/productManagement",
57
+					// 	show:true,
58
+					// 	id: "0",
59
+					// }
59
 				],
60
 				],
60
 				uid: '',
61
 				uid: '',
61
 				authorization: ''
62
 				authorization: ''

+ 19 - 0
pages/onlineproductselection/onlineproductselection.vue

@@ -0,0 +1,19 @@
1
+<template>
2
+	<view>
3
+		在线选品模块
4
+	</view>
5
+</template>
6
+
7
+<script>
8
+	export default {
9
+		data() {
10
+			return {
11
+				
12
+			};
13
+		}
14
+	}
15
+</script>
16
+
17
+<style lang="scss">
18
+
19
+</style>

+ 48 - 48
pages/ordermanagement/index.vue

@@ -141,15 +141,15 @@
141
 			
141
 			
142
 		},
142
 		},
143
 		onShow() {
143
 		onShow() {
144
-			uni.showLoading({
145
-				title: '加载中',
146
-			});
144
+			// uni.showLoading({
145
+			// 	title: '加载中',
146
+			// });
147
 			let selectmerchant = uni.getStorageSync('selectmerchant')
147
 			let selectmerchant = uni.getStorageSync('selectmerchant')
148
 			this.mer_id = selectmerchant.merId
148
 			this.mer_id = selectmerchant.merId
149
-			this.getOrderStstusAmount()
150
-			
151
-			
152
-			
149
+			// this.getOrderStstusAmount()
150
+			
151
+			
152
+			
153
 			
153
 			
154
 		},
154
 		},
155
 		methods: {
155
 		methods: {
@@ -191,51 +191,51 @@
191
 					console.log(fail)
191
 					console.log(fail)
192
 				})
192
 				})
193
 			},
193
 			},
194
-			jiru(e,i) {
195
-				
196
-				
197
-				let authorization = uni.getStorageSync('authorization')
198
-				let userinfo = uni.getStorageSync('userinfo')
199
-				let selectmerchant = uni.getStorageSync('selectmerchant')
194
+			jiru(e,i) {
195
+				
196
+				
197
+				let authorization = uni.getStorageSync('authorization')
198
+				let userinfo = uni.getStorageSync('userinfo')
199
+				let selectmerchant = uni.getStorageSync('selectmerchant')
200
 				let uid = userinfo.uid
200
 				let uid = userinfo.uid
201
 				uni.redirectTo({
201
 				uni.redirectTo({
202
 					url: "../../shop/commodity/order?status="+e + "&index="+ i
202
 					url: "../../shop/commodity/order?status="+e + "&index="+ i
203
 				})
203
 				})
204
-				return
205
-				if (authorization && uid) {
206
-					if (selectmerchant.merId >= 0 && selectmerchant.status == -1) {
207
-						uni.redirectTo({
208
-							url: "/openmerchant/guide/index" //有或者没有商户 没有金额支付and激活码支付
209
-						});
210
-						return
211
-					} else if (selectmerchant.merId > 0 && (selectmerchant.status == 1 || selectmerchant.status == 5)) {
212
-						uni.redirectTo({
213
-							url: "../../shop/commodity/order?status="+e + "&index="+ i
214
-						})
215
-						return
216
-					} else if (selectmerchant.merId >= 0 && (selectmerchant.status == 3 || selectmerchant.status == 4)) {
217
-						uni.redirectTo({
218
-							url: '/openmerchant/shopentry/process?mer_id=' + selectmerchant.merId //已开通商户未填写资料
219
-						});
220
-						return
221
-					} else if (selectmerchant.merId > 0 && selectmerchant.status == 0) {
222
-						uni.redirectTo({
223
-							url: '/openmerchant/shopentry/processaudit?submitCode=' + 3 //已开通商户待审核
224
-						});
225
-						return
226
-					} else if (selectmerchant.merId > 0 && selectmerchant.status == 2) {
227
-						uni.redirectTo({
228
-							url: '/openmerchant/shopentry/processaudit?submitCode=' + 2 //已开通商户审核拒绝
229
-						});
230
-						return
231
-					}
232
-				
233
-				} else {
234
-					uni.navigateTo({
235
-						url: "/pages/user/login/index?type=1"
236
-					});
237
-					return
238
-				}
204
+				return
205
+				if (authorization && uid) {
206
+					if (selectmerchant.merId >= 0 && selectmerchant.status == -1) {
207
+						uni.redirectTo({
208
+							url: "/openmerchant/guide/index" //有或者没有商户 没有金额支付and激活码支付
209
+						});
210
+						return
211
+					} else if (selectmerchant.merId > 0 && (selectmerchant.status == 1 || selectmerchant.status == 5)) {
212
+						uni.redirectTo({
213
+							url: "../../shop/commodity/order?status="+e + "&index="+ i
214
+						})
215
+						return
216
+					} else if (selectmerchant.merId >= 0 && (selectmerchant.status == 3 || selectmerchant.status == 4)) {
217
+						uni.redirectTo({
218
+							url: '/openmerchant/shopentry/process?mer_id=' + selectmerchant.merId //已开通商户未填写资料
219
+						});
220
+						return
221
+					} else if (selectmerchant.merId > 0 && selectmerchant.status == 0) {
222
+						uni.redirectTo({
223
+							url: '/openmerchant/shopentry/processaudit?submitCode=' + 3 //已开通商户待审核
224
+						});
225
+						return
226
+					} else if (selectmerchant.merId > 0 && selectmerchant.status == 2) {
227
+						uni.redirectTo({
228
+							url: '/openmerchant/shopentry/processaudit?submitCode=' + 2 //已开通商户审核拒绝
229
+						});
230
+						return
231
+					}
232
+				
233
+				} else {
234
+					uni.navigateTo({
235
+						url: "/pages/user/login/index?type=1"
236
+					});
237
+					return
238
+				}
239
 				
239
 				
240
 				
240
 				
241
 			}
241
 			}

+ 2 - 1
pages/user/login/index.vue

@@ -222,8 +222,9 @@
222
 			// 暂不登录
222
 			// 暂不登录
223
 			unLogin() {
223
 			unLogin() {
224
 				setTimeout(function() {
224
 				setTimeout(function() {
225
+					console.log('暂不登录')
225
 					uni.switchTab({
226
 					uni.switchTab({
226
-						url: '../../my/index'
227
+						url: '../../onlineproductselection/onlineproductselection'
227
 					});
228
 					});
228
 				}, 300);
229
 				}, 300);
229
 			},
230
 			},

+ 1 - 0
shop/commodity/order.vue

@@ -182,6 +182,7 @@
182
 			},
182
 			},
183
 			// 正向订单列表
183
 			// 正向订单列表
184
 			orderList() {
184
 			orderList() {
185
+				return fasle;
185
 				uni.showLoading({
186
 				uni.showLoading({
186
 					title: '加载中',
187
 					title: '加载中',
187
 				});
188
 				});

+ 21 - 14
shop/productManagementModule/addProduct.vue

@@ -1,20 +1,27 @@
1
 <template>
1
 <template>
2
-	<view>
3
-		
4
-	</view>
2
+  <view class="product-add-wrapper">
3
+    <headersVue headerTitle="添加商品" @headerJump="headerJump"></headersVue>
4
+  </view>
5
 </template>
5
 </template>
6
 
6
 
7
 <script>
7
 <script>
8
-	//添加商品
9
-	export default {
10
-		data() {
11
-			return {
12
-				
13
-			};
14
-		}
15
-	}
8
+//添加商品
9
+import headersVue from "../components/headers/headers.vue";
10
+export default {
11
+  components: {
12
+    headersVue
13
+  },
14
+  data() {
15
+    return {};
16
+  },
17
+  methods: {
18
+    headerJump() {
19
+      uni.switchTab({
20
+        url: "./productManagement"
21
+      });
22
+    }
23
+  }
24
+};
16
 </script>
25
 </script>
17
 
26
 
18
-<style lang="scss">
19
-
20
-</style>
27
+<style lang="scss"></style>

+ 7 - 47
shop/productManagementModule/components/tablist.vue

@@ -27,50 +27,6 @@
27
         </view>
27
         </view>
28
       </scroll-view>
28
       </scroll-view>
29
     </view>
29
     </view>
30
-    <!-- <swiper @change="change" :current="isActive" class="swiper-content" :style="fullHeight">
31
-			<swiper-item class="swiperitem-content">
32
-				<scroll-view scroll-y style="height: 100%;">
33
-					<view class="nav_item" >
34
-						1
35
-					</view>
36
-				</scroll-view>	
37
-			</swiper-item>
38
-			<swiper-item class="swiperitem-content">
39
-				<scroll-view scroll-y style="height: 100%;">
40
-					<view class="nav_item" >
41
-						2
42
-					</view>
43
-				</scroll-view>	
44
-			</swiper-item>
45
-			<swiper-item class="swiperitem-content">
46
-				<scroll-view scroll-y style="height: 100%;">
47
-					<view class="nav_item" >
48
-						3
49
-					</view>
50
-				</scroll-view>
51
-			</swiper-item>
52
-			<swiper-item class="swiperitem-content">
53
-				<scroll-view scroll-y style="height: 100%;">
54
-					<view class="nav_item" >
55
-						4
56
-					</view>
57
-				</scroll-view>	
58
-			</swiper-item>
59
-			<swiper-item class="swiperitem-content">
60
-				<scroll-view scroll-y style="height: 100%;">
61
-					<view class="nav_item" >
62
-						5
63
-				    </view>
64
-				</scroll-view>	
65
-			</swiper-item>
66
-			<swiper-item class="swiperitem-content">
67
-				<scroll-view scroll-y style="height: 100%;">
68
-					<view class="nav_item" >
69
-						6
70
-				    </view>
71
-				</scroll-view>	
72
-			</swiper-item>
73
-		</swiper> -->
74
   </view>
30
   </view>
75
 </template>
31
 </template>
76
 <script>
32
 <script>
@@ -185,9 +141,9 @@ export default {
185
         align-items: center;
141
         align-items: center;
186
         flex-wrap: nowrap;
142
         flex-wrap: nowrap;
187
         box-sizing: border-box;
143
         box-sizing: border-box;
188
-        height: 100rpx;
144
+        // height: 100rpx;
189
         .tab-scroll_item {
145
         .tab-scroll_item {
190
-          line-height: 80rpx;
146
+          // line-height: 60rpx;
191
           margin-right: 35rpx;
147
           margin-right: 35rpx;
192
           flex-shrink: 0;
148
           flex-shrink: 0;
193
           display: flex;
149
           display: flex;
@@ -199,8 +155,12 @@ export default {
199
             display: flex;
155
             display: flex;
200
             align-items: center;
156
             align-items: center;
201
             flex-direction: column;
157
             flex-direction: column;
158
+			.name-box{
159
+				
160
+			}
202
             .count {
161
             .count {
203
-              height: initial;
162
+               padding: 13rpx 0;
163
+			 
204
             }
164
             }
205
           }
165
           }
206
         }
166
         }

+ 9 - 6
shop/productManagementModule/productManagement.vue

@@ -1,12 +1,12 @@
1
 <template>
1
 <template>
2
   <view class="product-manger-wrapper">
2
   <view class="product-manger-wrapper">
3
-    <headersVue headerTitle="商品管理" @headerJump="headerJump"></headersVue>
3
+    <!-- <headersVue headerTitle="商品管理" @headerJump="headerJump"></headersVue> -->
4
     <view class="product-manger-content">
4
     <view class="product-manger-content">
5
       <view class="product-manger-content--top">
5
       <view class="product-manger-content--top">
6
         <searchVue @search="search" class="search-box"></searchVue>
6
         <searchVue @search="search" class="search-box"></searchVue>
7
         <view class="btn-product" @click="onHandleAddProduct">
7
         <view class="btn-product" @click="onHandleAddProduct">
8
           <image
8
           <image
9
-            src="/static/images/new_ui/tianjiachanping.png"
9
+            src="/static/images/new_ui/tianjiachanpin.png"
10
             mode="scaleToFill"
10
             mode="scaleToFill"
11
           />
11
           />
12
           <view class="txt">添加商品</view>
12
           <view class="txt">添加商品</view>
@@ -32,10 +32,13 @@ export default {
32
   },
32
   },
33
   methods: {
33
   methods: {
34
     headerJump() {
34
     headerJump() {
35
-      console.log("点击了返回");
36
       uni.switchTab({ url: "/pages/my/index" });
35
       uni.switchTab({ url: "/pages/my/index" });
37
     },
36
     },
38
-    onHandleAddProduct() {}
37
+    onHandleAddProduct() {
38
+		uni.redirectTo({
39
+			url:`./addProduct`
40
+		})
41
+	}
39
   },
42
   },
40
   data() {
43
   data() {
41
     return {
44
     return {
@@ -88,8 +91,8 @@ page {
88
 </style>
91
 </style>
89
 <style lang="scss" scoped>
92
 <style lang="scss" scoped>
90
 .product-manger-wrapper {
93
 .product-manger-wrapper {
91
-  margin-top: 96rpx;
92
-  border: 2rpx solid #f00;
94
+  // margin-top: 96rpx;
95
+  // border: 2rpx solid #f00;
93
   background: #fff;
96
   background: #fff;
94
   .product-manger-content {
97
   .product-manger-content {
95
     &--top {
98
     &--top {

+ 6 - 3
shop/productManagementModule/scanCodeIdentifiedTreasure.vue

@@ -1,6 +1,7 @@
1
 <template>
1
 <template>
2
-	<view>
3
-		
2
+  <view class="product-manger-wrapper">
3
+    <!-- <headersVue headerTitle="在线选品" @headerJump="headerJump"></headersVue> -->
4
+	在线选品
4
 	</view>
5
 	</view>
5
 </template>
6
 </template>
6
 
7
 
@@ -13,7 +14,9 @@
13
 			}
14
 			}
14
 		},
15
 		},
15
 		methods: {
16
 		methods: {
16
-			
17
+			headerJump(){
18
+				
19
+			}
17
 		}
20
 		}
18
 	}
21
 	}
19
 </script>
22
 </script>

BIN
static/images/new_ui/位图_slices.zip


BIN
static/images/new_ui/daifahuo.png


BIN
static/images/new_ui/daifukuan.png


BIN
static/images/new_ui/daipingjia.png


BIN
static/images/new_ui/待收货_slices.zip


BIN
static/images/new_ui/dibugouxuan.png


BIN
static/images/new_ui/guanbi.png


BIN
static/images/new_ui/guanbi1.png


BIN
static/images/new_ui/kuanchangfagnxing.png


BIN
static/images/new_ui/shoudiantong.png


BIN
static/images/new_ui/tianjiachanpin.png


BIN
static/images/new_ui/xiangji.png


BIN
static/images/new_ui/yiwancheng.png


BIN
static/images/new_ui/yuanyoubianjiantou.png


BIN
static/tab/shangpin.png


BIN
static/tab/shangpin2.png