积分类型
This commit is contained in:
@@ -71,8 +71,9 @@
|
|||||||
<div class="img-content">
|
<div class="img-content">
|
||||||
<img :src="row.goodsPicUrl" alt="" v-viewer>
|
<img :src="row.goodsPicUrl" alt="" v-viewer>
|
||||||
|
|
||||||
<span class="type type0" v-if="row.goodsType === '0'">积分兑换</span>
|
<!-- <span class="type type0" v-if="row.goodsType === '0'">积分兑换</span>
|
||||||
<span class="type type1" v-else>京东低价商品</span>
|
<span class="type type1" v-else>京东低价商品</span> -->
|
||||||
|
<span class="type" :class="`type${row.typeText}`">{{dict.getLabel('integralSGTypeText', row.typeText)}}</span>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ row.goodsTitle }}</p>
|
<p>{{ row.goodsTitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,7 +153,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.dict.load('integralSGType', 'integralSGOStatus').then(() => {
|
this.dict.load('integralSGType', 'integralSGOStatus', 'integralSGTypeText').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -165,6 +166,9 @@
|
|||||||
}
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
res.data.records.map((item) => {
|
||||||
|
item.typeText = item.goodsType == 0 ? 0 : 1
|
||||||
|
})
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,8 +77,9 @@
|
|||||||
<div class="img-content">
|
<div class="img-content">
|
||||||
<img :src="row.goodsPicUrl" alt="" v-viewer>
|
<img :src="row.goodsPicUrl" alt="" v-viewer>
|
||||||
|
|
||||||
<span class="type type0" v-if="row.goodsType === '0'">积分兑换</span>
|
<!-- <span class="type type0" v-if="row.goodsType === '0'">积分兑换</span>
|
||||||
<span class="type type1" v-else>京东低价商品</span>
|
<span class="type type1" v-else>京东低价商品</span> -->
|
||||||
|
<span class="type" :class="`type${row.typeText}`">{{dict.getLabel('integralSGTypeText', row.typeText)}}</span>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ row.goodsTitle }}</p>
|
<p>{{ row.goodsTitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -164,7 +165,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.dict.load('integralSGType', 'integralSGOStatus', 'yesOrNo').then(() => {
|
this.dict.load('integralSGType', 'integralSGOStatus', 'yesOrNo', 'integralSGTypeText').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -178,6 +179,9 @@
|
|||||||
}
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
res.data.records.map((item) => {
|
||||||
|
item.typeText = item.goodsType == 0 ? 0 : 1
|
||||||
|
})
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,8 +54,9 @@
|
|||||||
</ai-uploader> -->
|
</ai-uploader> -->
|
||||||
<div class="img-content">
|
<div class="img-content">
|
||||||
<img :src="row.picUrl" alt="" v-viewer>
|
<img :src="row.picUrl" alt="" v-viewer>
|
||||||
<span class="type type0" v-if="row.type === '0'">积分兑换</span>
|
<!-- <span class="type type0" v-if="row.type === '0'">积分兑换</span>
|
||||||
<span class="type type1" v-else>京东低价商品</span>
|
<span class="type type1" v-else>京东低价商品</span> -->
|
||||||
|
<span class="type" :class="`type${row.typeText}`">{{dict.getLabel('integralSGTypeText', row.typeText)}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>{{ row.title }}</p>
|
<p>{{ row.title }}</p>
|
||||||
@@ -116,7 +117,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.dict.load('integralSGType', 'integralSGStatus').then(() => {
|
this.dict.load('integralSGType', 'integralSGStatus', 'integralSGTypeText').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -129,6 +130,9 @@
|
|||||||
}
|
}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
res.data.records.map((item) => {
|
||||||
|
item.typeText = item.type == 0 ? 0 : 1
|
||||||
|
})
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user