Browse Source

no message

USER-20230908AJ\Administrator 1 year ago
parent
commit
95d7519e8a
4 changed files with 16 additions and 11 deletions
  1. 11 3
      common/task/task_ima_tab.vue
  2. 2 2
      page_subpack/message/message.vue
  3. 3 5
      page_task/draft/index.vue
  4. 0 1
      pages/task/task.vue

+ 11 - 3
common/task/task_ima_tab.vue

@@ -79,16 +79,24 @@
 							this.navList[0].num += item.num
 							if (this.numType > 0) {
 								item.name = item.product_name + '(' + item.num + ')'
-								this.navList[0].name = this.navList[0].product_name + '(' + this.navList[0]
-									.num + ')'
+								this.navList[0].name = this.navList[0].product_name + '(' + this.navList[0].num + ')'
 							} else {
 								item.name = item.product_name
 							}
-							this.navList.push(item)
+              this.setNavItem(item)
 						})
 					}
 				})
 			},
+      setNavItem(item){
+        for (const navItemKey in this.navList) {
+          if(this.navList[navItemKey].id===item.id){
+            this.navList[navItemKey]=item
+            return
+          }
+        }
+        this.navList.push(item)
+      },
 
 			changeTab(current) {
 				this.$emit('setProductId', this.navList[current].id)

+ 2 - 2
page_subpack/message/message.vue

@@ -66,8 +66,8 @@
 					dot_color: '',
 					disabled: false
 				}],
-				leftImg: ['task-house', 'task-house', 'task-business', 'task-repayment'],
-				iconList: ['task-audit', 'task-do', 'task-stay'],
+				leftImg: ['task-house', 'task-house', 'task-business', 'task-repayment', 'task-repayment'],
+				iconList: ['task-audit', 'task-do', 'task-stay', 'task-stay', 'task-stay'],
 				list: [],
 				page: 1,
 				isEnd: false,

+ 3 - 5
page_task/draft/index.vue

@@ -75,8 +75,7 @@ import {
 				this.list = [];
 				this.page = 1;
 				this.isAjax = false;
-				this.getDraftList();
-
+        this.getDraftList();
 			},
 			delDraft(draftId, index) {
 				uni.showModal({
@@ -108,11 +107,11 @@ import {
 					'selectText': this.selectText,
 					'page': this.page,
 				}).then((res) => {
+          this.isAjax = false
 					if (res.code === 1) {
 						this.list.push(...res.data.items)
 						this.total = res.data.total
-						this.isAjax = false
-							++this.page;
+            ++this.page;
 					}
 				})
 			},
@@ -121,7 +120,6 @@ import {
         setTimeout(() => {
 
           this.$refs.scroll.onEndPulling()
-          this.startList()
         }, 200)
 				this.startList()
 

+ 0 - 1
pages/task/task.vue

@@ -162,7 +162,6 @@
 			onRefresh() {
         setTimeout(() => {
           this.$refs.scroll.onEndPulling()
-          this.startList()
         }, 200)
 				this.startList()
 			},