From 3d4b24e3833b50c9cc2ba60111b5cd501ae3d123 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 18 Mar 2024 16:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/whole_sale/index.vue | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pages/whole_sale/index.vue b/pages/whole_sale/index.vue index 9e338d4..1b12013 100644 --- a/pages/whole_sale/index.vue +++ b/pages/whole_sale/index.vue @@ -182,10 +182,18 @@ height: 24rpx; } } + + + .comp-color{ + + text { + margin-right: 12rpx; + font-size: 26rpx; + color: #40ae36 !important; + } + + } } - .color{ - color: #40ae36; - } } } </style> @@ -259,14 +267,14 @@ <!-- 综合查询 --> <view class="comprehensive"> - <view class="comprehensive-price" :class="{'color': orderCurr==1}" @click="toOrder('price', 1)"> + <view class="comprehensive-price" :class="{'comp-color': orderCurr==1}" @click="toOrder('price', 1)"> <text>价格</text> <image src="@/static/new_define/priceChange.png"></image> </view> - <view class="comprehensive-sales_num" @click="toOrder('sales', 2)"> + <view class="comprehensive-sales_num" :class="{'comp-color': orderCurr==2}" @click="toOrder('sales', 2)"> <text>销量</text> </view> - <view class="comprehensive-discount" v-if="tabsCurr!=1" @click="toOrder('', 3)"> + <view class="comprehensive-discount" :class="{'comp-color': orderCurr==3}" v-if="tabsCurr!=1" @click="toOrder('', 3)"> <text>综合</text> </view> <view class="comprehensive-discount" v-else > @@ -352,7 +360,8 @@ this.getProductslist(); }, methods: { - toOrder(type){ + toOrder(type, index = -1){ + this.orderCurr = index; if(type=='price'){ if(this.where.order=='price_asc') this.where.order = 'price_desc'; else this.where.order = 'price_asc';