diff --git a/pages.json b/pages.json index ca5dd1e..e8013c9 100644 --- a/pages.json +++ b/pages.json @@ -28,7 +28,7 @@ "path": "pages/equity/index", "name": "equity", "style": { - "navigationBarTitleText": "通证商城 购你所想", + "navigationBarTitleText": "权证商城 购你所想", "navigationBarTextStyle": "white", "app-plus": { "titleNView": { @@ -54,7 +54,16 @@ "name": "goodsClassify", "style": { "navigationBarTitleText": "商品分类", - "navigationBarBackgroundColor": "#FFFFFF" + "navigationBarBackgroundColor": "#FFFFFF", + "app-plus": { + "titleNView": { + "buttons": [{ + "text": "全部分类", + "fontSize": "14", + "color": "#8b64fd" + }] + } + } } }, { @@ -836,7 +845,7 @@ "selectedIconPath": "static/tabBar/tabBar_show_01.png", "pagePath": "pages/found/index" }, { - "text": "通证商城", + "text": "权证商城", "iconPath": "static/tabBar/tabBar_icon_03.png", "selectedIconPath": "static/tabBar/tabBar_show_03.png", "pagePath": "pages/equity/index" diff --git a/pages/equity/index.vue b/pages/equity/index.vue index 13444d3..517033e 100644 --- a/pages/equity/index.vue +++ b/pages/equity/index.vue @@ -13,11 +13,11 @@ + @click="onClassify(item.category_id,item.name)"> {{item.name}} - + 查看全部 @@ -183,10 +183,16 @@ }) }, // 易货分类 - onClassify(id) { - uni.navigateTo({ - url: `/pages/goods/lists?type=id&id=${id}` - }) + onClassify(id,name) { + if(id){ + uni.navigateTo({ + url: `/pages/goods/lists?type=id&id=${id}&name=${name}` + }) + }else{ + uni.navigateTo({ + url: `/pages/goods/goodsClassify` + }) + } }, }, // 下拉加载 @@ -860,4 +866,4 @@ color: $text-gray; } } - + \ No newline at end of file diff --git a/pages/goods/goodsClassify.vue b/pages/goods/goodsClassify.vue index e1092a8..ff94a3b 100644 --- a/pages/goods/goodsClassify.vue +++ b/pages/goods/goodsClassify.vue @@ -8,7 +8,7 @@ - + {{item.name}} @@ -36,11 +36,18 @@ this.category = res }) }, + // 点击全部分类跳转页面 + + onNavigationBarButtonTap() { + uni.navigateTo({ + url: `/pages/goods/lists?id=&name=全部商品` + }) + }, methods: { // 跳转列表页面 - goList(id) { + goList(id,name) { uni.navigateTo({ - url: `/pages/goods/lists?id=${id}` + url: `/pages/goods/lists?id=${id}&name=${name}` }) } } diff --git a/pages/goods/lists.vue b/pages/goods/lists.vue index c3c1173..16cda1a 100644 --- a/pages/goods/lists.vue +++ b/pages/goods/lists.vue @@ -6,7 +6,6 @@ {{goodsType[goodsTypeIndex].name}} - 价格 + + + {{$Route.query.name}} + + + @@ -68,6 +73,13 @@ title: '报单通证' }) } + // else{ + // if(this.$Route.query.name){ + // uni.setNavigationBarTitle({ + // title: this.$Route.query.name+'商品列表' || '商品列表' + // }) + // } + // } }, methods: { getShopSelf(){ @@ -178,12 +190,13 @@ width: 32rpx; height: 32rpx; } - .icon { - width: 32rpx; - height: 32rpx; + image { + width: 30rpx; + height: 30rpx; vertical-align: middle; margin-left: $margin / 3; margin-bottom: 4rpx; + } &.show { color: $mian-color;