Tang 3 жил өмнө
parent
commit
a93e587a46

+ 58 - 24
pages2/class/detail.vue

@@ -236,38 +236,72 @@ export default {
 					self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId }).then(result => {
 						if (result.data.code === 200) {
 							if (!result.data.data || (result.data.data.status === 3 && result.data.data.changeStatus === 1)) {
-								uni.showModal({
-									content: '资料审核不通过,请前往重新填写',
-									cancelText: '返回',
-									success: function(resultst) {
-										if (resultst.confirm) {
-											self.$navTo.togo('/pages2/verify/input', {
-												id: self.goodsId
-											});
+								if (!result.data.data) {
+									uni.showModal({
+										content: '请前往填写资料',
+										cancelText: '返回',
+										success: function(resultst) {
+											if (resultst.confirm) {
+												self.$navTo.togo('/pages2/verify/input', {
+													id: self.goodsId
+												});
+											}
+											if (resultst.cancel) {
+												uni.navigateBack();
+											}
 										}
-										if (resultst.cancel) {
-											uni.navigateBack();
+									});
+								} else {
+									uni.showModal({
+										content: '资料审核不通过,请前往重新填写',
+										cancelText: '返回',
+										success: function(resultst) {
+											if (resultst.confirm) {
+												self.$navTo.togo('/pages2/verify/input', {
+													id: self.goodsId
+												});
+											}
+											if (resultst.cancel) {
+												uni.navigateBack();
+											}
 										}
-									}
-								});
+									});
+								}
 							} else if (result.data.data.status === 1 && res.data.rows[0].keyValue2) {
 								self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(k => {
 									if (k.data.code === 200) {
 										if (!k.data.data || (k.data.data.status === 3 && k.data.data.changeStatus === 1)) {
-											uni.showModal({
-												cancelText: '返回',
-												content: '资料盖章审核不通过,请前往重新填写',
-												success: function(resultst) {
-													if (resultst.confirm) {
-														self.$navTo.togo('/pages2/verify/input2', {
-															id: self.goodsId
-														});
+											if (!k.data.data) {
+												uni.showModal({
+													cancelText: '返回',
+													content: '请前往填写盖章资料',
+													success: function(resultst) {
+														if (resultst.confirm) {
+															self.$navTo.togo('/pages2/verify/input2', {
+																id: self.goodsId
+															});
+														}
+														if (resultst.cancel) {
+															uni.navigateBack();
+														}
 													}
-													if (resultst.cancel) {
-														uni.navigateBack();
+												});
+											} else {
+												uni.showModal({
+													cancelText: '返回',
+													content: '资料盖章审核不通过,请前往重新填写',
+													success: function(resultst) {
+														if (resultst.confirm) {
+															self.$navTo.togo('/pages2/verify/input2', {
+																id: self.goodsId
+															});
+														}
+														if (resultst.cancel) {
+															uni.navigateBack();
+														}
 													}
-												}
-											});
+												});
+											}
 										}
 									}
 								});

+ 3 - 1
pages2/msg/detail.vue

@@ -81,7 +81,9 @@ export default {
 					break;
 				case 2:
 				case 4:
-					this.$navTo.togo('/pages2/verify/input');
+					this.$navTo.togo('/pages2/verify/input',{
+						id:item.goodsId
+					});
 					break;
 				case 10:
 				case 12:

+ 3 - 1
pages2/msg/index.vue

@@ -62,7 +62,9 @@ export default {
 				uni.stopPullDownRefresh();
 			});
 	},
-	onLoad(option) {},
+	onLoad(option) {
+		this.$store.getters.dictObj
+	},
 	onShow() {
 		this.getInfo();
 	},

+ 3 - 0
pages2/verify/input.vue

@@ -450,6 +450,9 @@ export default {
 			}
 		};
 	},
+	created() {
+		this.$store.getters.dictObj
+	},
 	onLoad(option) {
 		this.goodsId = Number(option.id);
 		this.getInfo();

+ 1 - 1
pages2/wd/course.vue

@@ -40,8 +40,8 @@ export default {
 		this.goodsId = Number(option.id);
 		// uni.setStorageSync('courseGoodsId', this.goodsId);
 		this.courseCourseList();
+		this.$store.getters.dictObj
 	},
-	onShow() {},
 	onReachBottom() {
 		if (this.courseList.length < this.param.total) {
 			this.param.pageNum++;