Moss 1 سال پیش
والد
کامیت
9a96799dd1
2فایلهای تغییر یافته به همراه11 افزوده شده و 11 حذف شده
  1. 3 3
      src/pages/goods/detail.vue
  2. 8 8
      src/pages/mine/myIssue/list.vue

+ 3 - 3
src/pages/goods/detail.vue

@@ -223,16 +223,16 @@
       		this.loadStatus = 0;
       		this.loadStatus = 0;
 
 
           let actionList = [
           let actionList = [
-            {name: '已转让', value: 1},
+            // {name: '已转让', value: 1},
             {name: '上架', value: 2},
             {name: '上架', value: 2},
             {name: '下架', value: 3},
             {name: '下架', value: 3},
             {name: '重新上架', value: 4},
             {name: '重新上架', value: 4},
             {name: '编辑', value: 5},
             {name: '编辑', value: 5},
           ]
           ]
           if(this.detail.status === 1) {
           if(this.detail.status === 1) {
-            actionList.splice(1, 1);
+            actionList.splice(0, 1);
           }else if(this.detail.status === 0) {
           }else if(this.detail.status === 0) {
-            actionList.splice(2, 1);
+            actionList.splice(1, 1);
           }
           }
           this.actionList = actionList;
           this.actionList = actionList;
       	}).catch(res => {
       	}).catch(res => {

+ 8 - 8
src/pages/mine/myIssue/list.vue

@@ -132,13 +132,13 @@
 
 
     async onLoad({
     async onLoad({
       tab
       tab
-    }) {
-      this.tabCurrent = tab ? Number(tab) : 0;
-      await this.getList();
-      
+    }) {
       this.crossPage.$on('reloadMyIssueListPage', () => {
       this.crossPage.$on('reloadMyIssueListPage', () => {
         this.refreshList();
         this.refreshList();
-      })
+      })
+
+      this.tabCurrent = tab ? Number(tab) : 0;
+      await this.getList();
     },
     },
 
 
     onUnload() {
     onUnload() {
@@ -183,10 +183,10 @@
       // 触发下拉刷新
       // 触发下拉刷新
       refresherrefresh(e) {
       refresherrefresh(e) {
         this.refresherTriggered = true;
         this.refresherTriggered = true;
-        this.refreshLish();
+        this.refreshList();
       },
       },
 
 
-      refreshLish() {
+      refreshList() {
         this.dataList = [];
         this.dataList = [];
         this.pageNum = 1;
         this.pageNum = 1;
         this.getList();
         this.getList();
@@ -194,7 +194,7 @@
 
 
       clickTab(item) {
       clickTab(item) {
         this.tabCurrent = item.value;
         this.tabCurrent = item.value;
-        this.refreshLish();
+        this.refreshList();
       },
       },
 
 
       toDetail(id) {
       toDetail(id) {