From 883ca635ebb2df1ccb9e7f6dc19a88c7ad374cb6 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期日, 21 七月 2024 14:47:00 +0800
Subject: [PATCH] update 部分需求变更

---
 pages/login/supplier-reg.vue |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/pages/login/supplier-reg.vue b/pages/login/supplier-reg.vue
index 5068173..f00fa03 100644
--- a/pages/login/supplier-reg.vue
+++ b/pages/login/supplier-reg.vue
@@ -85,6 +85,7 @@
 				getCodeisWaiting: false,
 				Timer: undefined,
 				protocal: false,
+				source: '',
 				// #ifdef PUB_SUPPLIER
 				apitype: 'supplier',
 				// #endif
@@ -93,6 +94,9 @@
 				// #endif
 
 			};
+		},
+		onLoad(options) {
+			this.source = options.source || ''
 		},
 		methods: {
 			toProtocol() {
@@ -230,9 +234,42 @@
 						title: '注册成功!',
 						icon: 'none'
 					});
-					setTimeout(() => {
-						this.toLogin()
-					}, 1000);
+					if (this.source == 'step') {
+						// cache_partner_info
+						var tjson = this.$storage.getItem('cache_partner_info')
+						if (tjson) {
+							var dto = JSON.parse(tjson)
+							{
+								
+								this.$message.showLoading()
+								const re = await this.$http.request('post', '/api/partner/addOrUpdate', {
+									data: dto
+								})
+								this.$message.hideLoading()
+								if (re.code == 2000 || re.code == 0) {
+									this.toLogin()
+								} else {
+									this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核')
+									setTimeout(() => {
+											this.toLogin()
+										}, 1000);
+									}
+								}
+							}
+							
+						}else{
+							this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核')
+							setTimeout(() => {
+								this.toLogin()
+							}, 1000);
+						}
+
+					} else {
+						setTimeout(() => {
+							this.toLogin()
+						}, 1000);
+					}
+
 
 				} else {
 					// uni.showToast({

--
Gitblit v1.9.3