From db8e416fec0ab844026eb7bc91d9f59a457f4e6e Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 16 Jan 2024 17:41:30 +0800
Subject: [PATCH] 标签事件审核调整,优化

---
 subPackage/label/form.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/subPackage/label/form.vue b/subPackage/label/form.vue
index 6e0cd3f..04f4567 100644
--- a/subPackage/label/form.vue
+++ b/subPackage/label/form.vue
@@ -141,14 +141,15 @@
 				goodsImageUrls: [],
 				eventType: 1,
 				isEdit: false,
-				id: ""
+				id: "",
+				status: ""
 			}
 		},
 		onLoad(option) {
 			console.log(option);
 			if (option.id) {
 				this.isEdit = true;
-				this.id = opton.id;
+				this.id = option.id;
 				this.getDetail(option.id);
 			} else {
 				if (option.type != 1) {
@@ -182,8 +183,9 @@
 				}).then(res => {
 					if (res.code == 200) {
 						let data = res.data;
+						this.status = data.confirmFlag;
 						uni.setNavigationBarTitle({
-							title: data.name
+							title: data.labelName
 						})
 						for (let i in this.info) {
 							this.info[i] = data[i]
@@ -200,7 +202,7 @@
 
 						if (data.eventType == 1) {
 							this.$set(this.info, "reportType", 3);
-						} else if (option.type == 2) {
+						} else if (data.eventType == 2) {
 							this.$set(this.info, "reportType", 4);
 						} else {
 							this.$set(this.info, "reportType", 5);
@@ -210,7 +212,7 @@
 			},
 
 			setTitle(type) {
-				if (type == 4) {
+				if (type == 2) {
 					return "二手手机维修"
 				} else if (type == 3) {
 					return "二手车交易"
@@ -302,7 +304,11 @@
 						title: '保存成功'
 					})
 					setTimeout(() => {
-						this.reLoadPrePage()
+						if (this.status == 4) {
+							this.reLoadPrePage()
+						} else {
+							uni.navigateBack();
+						}
 					}, 300)
 				})
 			},

--
Gitblit v1.9.3