1
This commit is contained in:
parent
7527061444
commit
970216218a
@ -256,36 +256,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
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 @@
|
|||||||
<view class="content-two">
|
<view class="content-two">
|
||||||
<view class="score">
|
<view class="score">
|
||||||
<view class="star">
|
<view class="star">
|
||||||
|
|
||||||
<view
|
<view
|
||||||
:style="{ height:'26rpx', width: ((item.service_score / 5) * 222).toFixed(0) + 'rpx', backgroundImage:`url(${domain}/static/diy/score1${keyColor}.png)`}">
|
:style="{width: `${(item.service_score / 5 * 100).toFixed(0)}%`, backgroundImage: `url(${domain}/static/diy/score1${keyColor}.png)`}">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -552,11 +521,11 @@
|
|||||||
cate_change: 0,
|
cate_change: 0,
|
||||||
cate_change_children: 0,
|
cate_change_children: 0,
|
||||||
isLoading: 0,
|
isLoading: 0,
|
||||||
deduction_rate: false, //是否显示
|
deduction_rate: false, //是否显示
|
||||||
where: {
|
where: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
sale_type: 2, //1为零售, 2为批发
|
sale_type: 2, //1为零售, 2为批发
|
||||||
mer_type: 1,
|
mer_type: 1,
|
||||||
mer_cate_id: '', //
|
mer_cate_id: '', //
|
||||||
cate_id: '',
|
cate_id: '',
|
||||||
@ -588,7 +557,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
initData(re = false, stop = false) {
|
initData(re = false, stop = false) {
|
||||||
if (!stop) this.getStoreCategory();
|
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);
|
else this.getProductslist(re, stop);
|
||||||
},
|
},
|
||||||
changeDeduction(e) {
|
changeDeduction(e) {
|
||||||
@ -650,13 +619,13 @@
|
|||||||
}
|
}
|
||||||
this.cate_change = 0;
|
this.cate_change = 0;
|
||||||
this.cate_change_children = 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);
|
this.initData(true);
|
||||||
},
|
},
|
||||||
changeCate(e) {
|
changeCate(e) {
|
||||||
this.cate_change = e;
|
this.cate_change = e;
|
||||||
this.store_category_children = [];
|
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;
|
this.where.merchant_category_id = this.store_category[e].merchant_category_id;
|
||||||
return this.storeMerchantList(true);
|
return this.storeMerchantList(true);
|
||||||
}
|
}
|
||||||
@ -686,7 +655,7 @@
|
|||||||
if (this.tabsCurr == 1) getStoreCategory(259).then(res => {
|
if (this.tabsCurr == 1) getStoreCategory(259).then(res => {
|
||||||
this.initStoreCate(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 = [{
|
this.store_category = [{
|
||||||
category_name: '全部',
|
category_name: '全部',
|
||||||
merchant_category_id: '',
|
merchant_category_id: '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user