From 090819b136cc0903bf2ac25845c9b275ddbcba89 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 01 八月 2025 17:32:29 +0800
Subject: [PATCH] dataobjcreat而返回处理

---
 pages/modal/3018.vue |   81 +++++++++++++++++++++-------------------
 1 files changed, 42 insertions(+), 39 deletions(-)

diff --git a/pages/modal/3018.vue b/pages/modal/3018.vue
index 6ce37fb..c4285b8 100644
--- a/pages/modal/3018.vue
+++ b/pages/modal/3018.vue
@@ -1547,46 +1547,48 @@
 						console.log(res);
 						uni.hideLoading();
 						let data = res.lua_result
-						if (data.ret != 0) {
-							var tip = data.err_info ? typeof data.err_info == 'string' ? data
-								.err_info :
-								data
-								.err_info.join('<br/>') : '';
-							if (data.ret == 801) uni.showModal({
-								title: this.translateSys('tip'),
-								content: tip,
-								showCancel: false,
-								confirmText: this.translateSys('close')
-							});
-							else uni.showModal({
-								title: this.translateSys('tip'),
-								content: tip + ',' + this.translateSys('tip') + ':' + data
-									.ret,
-								showCancel: false,
-								confirmText: this.translateSys('close')
-							});
-							return false
-						} else {
-							var tip = data.info ? typeof data.info == 'string' ? data.info : data
-								.info
-								.join(
-									'<br/>') : '';
-							if (tip) uni.showModal({
-								title: this.translateSys('tip'),
-								content: tip,
-								showCancel: false,
-								confirmText: this.translateSys('close')
-							});
-							uni.showToast({
-								title: this.translate('create_success'),
-								icon: "success",
-								duration: 3000
-							});
+						if (data) {
+							if (data.ret != 0) {
+								var tip = data.err_info ? typeof data.err_info == 'string' ? data
+									.err_info :
+									data
+									.err_info.join('<br/>') : '';
+								if (data.ret == 801) uni.showModal({
+									title: this.translateSys('tip'),
+									content: tip,
+									showCancel: false,
+									confirmText: this.translateSys('close')
+								});
+								else uni.showModal({
+									title: this.translateSys('tip'),
+									content: tip + ',' + this.translateSys('tip') + ':' + data
+										.ret,
+									showCancel: false,
+									confirmText: this.translateSys('close')
+								});
+								return false
+							} else {
+								var tip = data.info ? typeof data.info == 'string' ? data.info : data
+									.info
+									.join(
+										'<br/>') : '';
+								tip = tip || data.err_info
+								if (tip) uni.showModal({
+									title: this.translateSys('tip'),
+									content: tip,
+									showCancel: false,
+									confirmText: this.translateSys('close')
+								});
+								uni.showToast({
+									title: this.translate('create_success'),
+									icon: "success",
+									duration: 3000
+								});
+							}
+
+
+
 						}
-
-
-
-
 						//鍒锋柊
 						uni.redirectTo({
 							url: '../modal/3018?param=' + JSON.stringify(this.$data
@@ -2066,6 +2068,7 @@
 								.info
 								.join(
 									'<br/>') : '';
+							tip = tip || data.err_info
 							if (tip) uni.showModal({
 								title: this.translateSys('tip'),
 								content: tip,

--
Gitblit v1.9.1