修复bug
This commit is contained in:
parent
b381faf0cf
commit
3d4b24e383
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user