From 20383f07090f34cfe221d46a8ec0d3335de4f9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Sun, 29 Jan 2023 15:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/ProductList/ProductList.vue | 6 +++--- pages/ServiceDetails/ServiceDetails.vue | 1 - pages/classification/classification.vue | 21 +++++++++++++++++---- pages/toptabbar/toptabbar.vue | 4 ++-- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/pages/ProductList/ProductList.vue b/pages/ProductList/ProductList.vue index aa3d93b..9df4f55 100644 --- a/pages/ProductList/ProductList.vue +++ b/pages/ProductList/ProductList.vue @@ -2,7 +2,7 @@ + selectedBottomColor="#D43953" selectedTextColor="#D43953" textColor="#7d7e80" bgColor="#ffffff"> @@ -100,7 +100,7 @@ toggleTab(index) { if (index == 1111111111111) { uni.navigateTo({ - url: `/pages/classification/classification?goodsCategoryId=${this.GoodsCategorychildrenid}` + url: `/pages/classification/classification?goodsCategoryId=${this.goodsCategoryId}&index=${this.tabIndex}&GoodsCategorychildrenid=${this.GoodsCategorychildrenid}` }) } else if (index == 0) { this.GoodsCategorychildrenid = this.goodsCategoryId @@ -143,7 +143,7 @@ // 查询商品列表 goodsListinfo() { this.pageNum = 1; - goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => { + goodsList(this.pageSize, this.pageNum, this.GoodsCategorychildrenid, this.goodsName).then(res => { if (res.code == 200) { res.rows.forEach(e => { this.goodsList.push(e) diff --git a/pages/ServiceDetails/ServiceDetails.vue b/pages/ServiceDetails/ServiceDetails.vue index eeba129..52859cc 100644 --- a/pages/ServiceDetails/ServiceDetails.vue +++ b/pages/ServiceDetails/ServiceDetails.vue @@ -163,7 +163,6 @@ methods: { //查看评价 lookrate(item) { - console.log(item) this.rateimgtitle.img = item.itemPictureUrl this.rateimgtitle.title = item.nurseItemName lookrate(item.orderNo).then(res => { diff --git a/pages/classification/classification.vue b/pages/classification/classification.vue index ae706b6..afa0c7b 100644 --- a/pages/classification/classification.vue +++ b/pages/classification/classification.vue @@ -5,7 +5,7 @@ @scrolltolower="lower" @scroll="scroll"> - + {{item.goodsCategoryName}} @@ -81,7 +81,8 @@ }, onLoad(options) { //获取传值 this.goodsCategoryId = options.goodsCategoryId //请求id - this.GoodsCategorychildrenid = options.goodsCategoryId //请求id + this.GoodsCategorychildrenid = options.GoodsCategorychildrenid //请求id + this.tabIndex = options.index this.baseurl = baseurl; this.goodsListinfo() this.GoodsCategorychildren(this.goodsCategoryId); @@ -135,7 +136,7 @@ // 查询商品列表 goodsListinfo() { this.pageNum = 1; - goodsList(this.pageSize, this.pageNum, this.goodsCategoryId, this.goodsName).then(res => { + goodsList(this.pageSize, this.pageNum, this.GoodsCategorychildrenid, this.goodsName).then(res => { if (res.code == 200) { res.rows.forEach(e => { this.goodsList.push(e) @@ -204,6 +205,7 @@ height: 100%; .lefttabbar { + position: fixed; width: 20%; height: 100%; display: inline-block; @@ -212,9 +214,19 @@ height: 100%; } - .active { + + .actives { color: red; font-size: 34rpx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .active { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .scroll-view-item { @@ -223,6 +235,7 @@ line-height: 100rpx; text-align: center; font-size: 30rpx; + padding: 0 10rpx; } } diff --git a/pages/toptabbar/toptabbar.vue b/pages/toptabbar/toptabbar.vue index 8a6d6e3..f491825 100644 --- a/pages/toptabbar/toptabbar.vue +++ b/pages/toptabbar/toptabbar.vue @@ -64,7 +64,7 @@ //选中时底部横条颜色 selectedBottomColor: { type: String, - default: '#30c58d' + default: '#D43953' }, //导航区背景颜色 @@ -76,7 +76,7 @@ //选中时文字颜色 selectedTextColor: { type: String, - default: '#343434' + default: '#D43953' }, //默认文本颜色