|
|
@@ -175,7 +175,11 @@
|
|
|
<template v-for="(item, index) in list" :key="index">
|
|
|
<product-info dark v-model:info="list[index]" @update:info="init"></product-info>
|
|
|
</template>
|
|
|
- <van-empty v-if="empty" description="什么都没有搜到哦~" :image="require('@assets/kong_png_wusousuo.png')" />
|
|
|
+ <van-empty
|
|
|
+ v-if="empty"
|
|
|
+ description="什么都没有搜到哦~"
|
|
|
+ :image="require('@assets/empty_img_asset_dark.png')"
|
|
|
+ />
|
|
|
</van-list>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -246,7 +250,7 @@ export default {
|
|
|
banners: [],
|
|
|
classification: '',
|
|
|
displayInformation: {},
|
|
|
- rarityLabel: "",
|
|
|
+ rarityLabel: ''
|
|
|
};
|
|
|
},
|
|
|
// watch: {
|
|
|
@@ -315,11 +319,11 @@ export default {
|
|
|
this.$http
|
|
|
.get('/rarityLabel/label/' + search)
|
|
|
.then(res => {
|
|
|
- this.selectOptions = Object.values(res)
|
|
|
- if(Object.values(res).length > 0){
|
|
|
+ this.selectOptions = Object.values(res);
|
|
|
+ if (Object.values(res).length > 0) {
|
|
|
this.classification = true;
|
|
|
- this.rarityLabel = Object.values(res)[0].value
|
|
|
- }else{
|
|
|
+ this.rarityLabel = Object.values(res)[0].value;
|
|
|
+ } else {
|
|
|
this.classification = false;
|
|
|
}
|
|
|
this.getData(true);
|
|
|
@@ -418,10 +422,10 @@ export default {
|
|
|
this.getData(true);
|
|
|
});
|
|
|
},
|
|
|
- changeTabOne(info){
|
|
|
- this.rarityLabel = info.title
|
|
|
+ changeTabOne(info) {
|
|
|
+ this.rarityLabel = info.title;
|
|
|
this.getData(true);
|
|
|
- console.log("fdf",info)
|
|
|
+ console.log('fdf', info);
|
|
|
},
|
|
|
beforeData() {
|
|
|
let sort = this.sort + ',' + this.sortDes;
|
|
|
@@ -979,4 +983,4 @@ export default {
|
|
|
margin-right: 0px !important;
|
|
|
// flex-grow: 1 !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|