|
@@ -19,7 +19,7 @@
|
|
|
<van-field v-model="areaId" :placeholder="$t('lang228')" class="input" right-icon="search" @click-right-icon="search" />
|
|
<van-field v-model="areaId" :placeholder="$t('lang228')" class="input" right-icon="search" @click-right-icon="search" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="" v-if="navActive == 0">
|
|
<div class="" v-if="navActive == 0">
|
|
|
- <div class="bare" v-if="total <= 0">
|
|
|
|
|
|
|
+ <div class="bare" v-if="list.length <= 0">
|
|
|
<span>{{ $t('lang60') }}</span>
|
|
<span>{{ $t('lang60') }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else class="container">
|
|
<div v-else class="container">
|
|
@@ -227,6 +227,7 @@ export default {
|
|
|
changeTab() {
|
|
changeTab() {
|
|
|
this.page = 1;
|
|
this.page = 1;
|
|
|
this.list = []; // 重置列表数据
|
|
this.list = []; // 重置列表数据
|
|
|
|
|
+ this.nft_list = [];
|
|
|
if (this.navActive == 0) {
|
|
if (this.navActive == 0) {
|
|
|
this.getOperateLog(); // 触发重新获取列表数据
|
|
this.getOperateLog(); // 触发重新获取列表数据
|
|
|
} else {
|
|
} else {
|
|
@@ -242,23 +243,23 @@ export default {
|
|
|
cancelButtonText: _this.$t('lang135'),
|
|
cancelButtonText: _this.$t('lang135'),
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- this.loading = true;
|
|
|
|
|
|
|
+ _this.loading = true;
|
|
|
homeApi
|
|
homeApi
|
|
|
.cancelBuying({ buying_id: item.id })
|
|
.cancelBuying({ buying_id: item.id })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- this.loading = false;
|
|
|
|
|
|
|
+ _this.loading = false;
|
|
|
_this.page = 1;
|
|
_this.page = 1;
|
|
|
_this.nft_list = [];
|
|
_this.nft_list = [];
|
|
|
_this.getMyBuyingList();
|
|
_this.getMyBuyingList();
|
|
|
Notify({ type: 'success', message: _this.$t('lang150') });
|
|
Notify({ type: 'success', message: _this.$t('lang150') });
|
|
|
} else {
|
|
} else {
|
|
|
- this.loading = false;
|
|
|
|
|
|
|
+ _this.loading = false;
|
|
|
_this.$toast(res.msg);
|
|
_this.$toast(res.msg);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- this.loading = false;
|
|
|
|
|
|
|
+ _this.loading = false;
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|