USER-20230908AJ\Administrator před 1 rokem
rodič
revize
6ffb6586c8

+ 7 - 1
page_subpack/message/message.vue

@@ -84,6 +84,7 @@
 			goToInfo(index) {
 
 				let item = this.list[index];
+        console.log(item)
 				if (item.type === 1) {
 					this.list[index].is_read = 1;
 					//跳转详情
@@ -102,7 +103,12 @@
 						uni.navigateTo({
 							url: '/page_task/task_details/task_details?taskId=' + item.relevance_id
 						});
-					} else {
+					}else if(item.type === 3){
+            uni.setStorageSync('taskType',1)
+            uni.switchTab({
+              url: '/pages/task/task'
+            });
+          }else {
 						//领取列表
 						uni.navigateTo({
 							url: '/page_task/gain_task/gain_task'

+ 1 - 0
page_task/credit_upload/credit_upload.vue

@@ -58,6 +58,7 @@
     },
     methods: {
       previewImage(index){
+        uni.setStorageSync('creditImg', this.formData.credit_img)
         uni.previewImage({
           urls: this.formData.credit_img,
           current: index,

+ 13 - 9
page_task/information/information.vue

@@ -194,11 +194,14 @@
 				}
 				this.informationList.forEach(item => {
 					item.is_show = productTypes.indexOf(item.type + '') >= 0;
-					this.productInfo.type_data.forEach(val => {
-						if (val.type === item.type + '') {
-							item.type_keys = val.type_keys
-						}
-					})
+          if(this.productInfo.type_data){
+            this.productInfo.type_data.forEach(val => {
+              if (val.type === item.type + '') {
+                item.type_keys = val.type_keys
+              }
+            })
+          }
+
 				})
 			}
 		},
@@ -448,10 +451,11 @@
 					if (res.code === 1) {
 						this.productInfo = res.data.productInfo
 						this.taskData = res.data.taskData
-            this.productInfo.product_types.forEach(item=>{
-              this.verifyBusinessModuleKey(item*1)
-            })
-						// this.getTaskTypeInfo(this.taskData.productId)
+            for (const resKey in  this.productInfo.product_types) {
+              let productType=this.productInfo.product_types[resKey]*1
+              this.verifyBusinessModuleKey(productType)
+            }
+						this.getTaskTypeInfo(this.taskData.productId)
 					} else {
 						this.closePage();
 					}

+ 9 - 1
pages/task/task.vue

@@ -81,8 +81,16 @@
 				backlogList: [],
 			}
 		},
+    onLoad() {
+      let taskType=uni.getStorageSync('taskType')
+      if(taskType){
+        uni.removeStorage('taskType')
+        this.current=taskType
+      }
+      this.startList()
+    },
 		mounted() {
-			this.startList()
+
 		},
 		methods: {
 			setProductId(productId) {