xiaomei 6 달 전
부모
커밋
4850251f4c
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      src/views/mine/operationLog.vue

+ 6 - 5
src/views/mine/operationLog.vue

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