diff --git a/pages/whole_sale/index.vue b/pages/whole_sale/index.vue index 8882f59..83a2426 100644 --- a/pages/whole_sale/index.vue +++ b/pages/whole_sale/index.vue @@ -256,36 +256,6 @@ display: flex; font-size: 24rpx; color: #666; - - .score { - display: flex; - align-items: center; - font-weight: 500; - font-size: 24rpx; - line-height: 1; - color: #FFFFFF; - - .star { - position: relative; - width: 111rpx; - height: 19rpx; - background: url(../columnGoods/images/star.png) left top/100% 100% no-repeat; - overflow: hidden; - - view { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: url(../columnGoods/images/star_active.png) left top/111rpx 19rpx no-repeat; - - &.star_purple { - background: url(../columnGoods/images/star_active_purple.png) left top/111rpx 19rpx no-repeat; - } - } - } - } } } } @@ -452,9 +422,8 @@ - + :style="{width: `${(item.service_score / 5 * 100).toFixed(0)}%`, backgroundImage: `url(${domain}/static/diy/score1${keyColor}.png)`}"> @@ -552,11 +521,11 @@ cate_change: 0, cate_change_children: 0, isLoading: 0, - deduction_rate: false, //是否显示 + deduction_rate: false, //是否显示 where: { page: 1, limit: 20, - sale_type: 2, //1为零售, 2为批发 + sale_type: 2, //1为零售, 2为批发 mer_type: 1, mer_cate_id: '', // cate_id: '', @@ -588,7 +557,7 @@ methods: { initData(re = false, stop = false) { if (!stop) this.getStoreCategory(); - if (this.tabsCurr == 2 && this.subCurr == 1) this.storeMerchantList(re, stop); + if (this.tabsCurr == 2 && this.subCurr == 0) this.storeMerchantList(re, stop); else this.getProductslist(re, stop); }, changeDeduction(e) { @@ -650,13 +619,13 @@ } this.cate_change = 0; this.cate_change_children = 0; - if (this.tabsCurr != 2 || (this.tabsCurr == 2 && this.subCurr != 0)) this.where.mer_type = e; + if (this.tabsCurr != 2 || (this.tabsCurr == 2 && this.subCurr != 1)) this.where.mer_type = e; this.initData(true); }, changeCate(e) { this.cate_change = e; this.store_category_children = []; - if (this.tabsCurr == 2 && this.subCurr == 0) { + if (this.tabsCurr == 2 && this.subCurr == 1) { this.where.merchant_category_id = this.store_category[e].merchant_category_id; return this.storeMerchantList(true); } @@ -686,7 +655,7 @@ if (this.tabsCurr == 1) getStoreCategory(259).then(res => { this.initStoreCate(res); }) - else if (this.tabsCurr == 2 && this.subCurr == 0) merClassifly().then(res => { + else if (this.tabsCurr == 2 && this.subCurr == 1) merClassifly().then(res => { this.store_category = [{ category_name: '全部', merchant_category_id: '',