فهرست منبع

外籍商户-商品管理新增商品分类筛选

李书文 1 سال پیش
والد
کامیت
9b70952041
3فایلهای تغییر یافته به همراه46 افزوده شده و 31 حذف شده
  1. 31 29
      pages.json
  2. 7 1
      pages/index/index.vue
  3. 8 1
      pages/market/one/merchant/goods/selects.vue

+ 31 - 29
pages.json

@@ -291,7 +291,15 @@
 			"path": "pages/market/one/merchant/goods/selects",
 			"style": {
 				"navigationBarTitleText": "选择商品",
-				"enablePullDownRefresh": true
+				"enablePullDownRefresh": true,
+				"app-plus": {
+					"titleNView": {
+						"buttons": [{
+							"text": "分类",
+							"fontSize": "14px"
+						}]
+					}
+				}
 			}
 
 		}, {
@@ -351,35 +359,29 @@
 				}
 			}
 
+		}, {
+			"path": "pages/personal/my",
+			"style": {
+				"navigationBarTitleText": "个人信息",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/personal/setting",
+			"style": {
+				"navigationBarTitleText": "设置",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/personal/editPassword",
+			"style": {
+				"navigationBarTitleText": "设置账号密码",
+				"enablePullDownRefresh": false
+			}
+
 		}
-	    ,{
-            "path" : "pages/personal/my",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "个人信息",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/personal/setting",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "设置",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/personal/editPassword",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "设置账号密码",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-    ],
+	],
 	"tabBar": {
 		"color": "#7A7E83",
 		"selectedColor": "#4581fb",

+ 7 - 1
pages/index/index.vue

@@ -32,7 +32,10 @@
 				<view class="vlabel">
 					<view class="tag"></view>
 					<text class="title">最新资讯</text>
-					<text class="more" @click="navTo('/pages/news/list')">更多</text>
+					<text class="more" @click="navTo('/pages/news/list')">
+						<text>更多</text>
+						<text class="icon">&#xe8f2;</text>
+					</text>
 				</view>
 				<view class="list animated fadeInDown">
 					<view class="news_item" v-for="(item, index) in newsList" :key="index" @click="go('/pages/news/detail?id=' + item.id)">
@@ -83,6 +86,8 @@ export default {
 					if (res.data.data.count > 0) {
 						this.count = res.data.data.count;
 						uni.setTabBarBadge({ index: 1, text: res.data.data.count });
+					} else {
+						this.count = 0;
 					}
 				}
 			});
@@ -96,6 +101,7 @@ export default {
 			});
 		},
 		getMenu() {
+			this.menuList=[];
 			let menu = uni.getStorageSync('menu');
 			this.http.request({
 				url: '/sp-admin/app/AppMenu/getList',

+ 8 - 1
pages/market/one/merchant/goods/selects.vue

@@ -34,6 +34,13 @@ export default {
 			this.param.tradeAreaName = e.tradeAreaName;
 		}
 		this.getData();
+		//选择商品分类
+		uni.$on('productType', res => {
+			this.param.typeNames = res.name;
+			this.param.current = res.current;
+			this.param.now = res.now;
+			this.refresh();
+		});
 	},
 	methods: {
 		getData() {
@@ -75,7 +82,7 @@ export default {
 		}
 	},
 	onNavigationBarButtonTap() {
-		uni.navigateTo({ url: '/pages/market/one/merchant/goods/add' });
+		uni.navigateTo({ url: '/pages/market/productType?current=' + this.param.current + '&now=' + this.param.now });
 	}
 };
 </script>