1
This commit is contained in:
parent
7527061444
commit
970216218a
@ -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 @@
|
||||
<view class="content-two">
|
||||
<view class="score">
|
||||
<view class="star">
|
||||
|
||||
<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>
|
||||
@ -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: '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user