平昌-积分兑换

This commit is contained in:
liuye
2023-05-22 17:34:27 +08:00
parent 032b2ec9ea
commit 2202896efd
5 changed files with 74 additions and 33 deletions

View File

@@ -28,7 +28,7 @@
<div class="list-info" v-for="(item, index) in leftList" :key="index">
<div class="item" @click="toProductDetail(item)">
<img :src="item.picUrl" alt="">
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGType', item.type) }}</div>
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGTypeText', item.typeText) }}</div>
<div class="content">
<p class="text">{{item.title}}</p>
<div class="item-money">
@@ -51,7 +51,7 @@
<div class="list-info" v-for="(item, index) in rightList" :key="index">
<div class="item" @click="toProductDetail(item)">
<img :src="item.picUrl" alt="">
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGType', item.type) }}</div>
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGTypeText', item.typeText) }}</div>
<div class="content">
<p class="text">{{item.title}}</p>
<div class="item-money">
@@ -108,7 +108,7 @@ export default {
},
onLoad() {
this.getTotal()
this.$dict.load(['integralSGType']).then(() => {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getList()
})
},
@@ -143,6 +143,7 @@ export default {
if (res.code === 0) {
this.goodsList = this.current == 1 ? res.data.records : [...this.goodsList, ...res.data.records]
res.data.records.map((item, index) => {
item.typeText = item.type == 0 ? 0 : 1
if(index%2 ==0) {
this.leftList.push(item)
}else {
@@ -292,6 +293,9 @@ export default {
top: 0;
right: 0;
}
.type2 {
background-color: #E64E39;
}
.type1 {
background-color: #E64E39;
}