From b62597cb3f2651e26ed4866419cd84bfdb72b23a Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期日, 21 七月 2024 18:19:43 +0800
Subject: [PATCH] 1

---
 pages/login/supplier-reg.vue |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 51 insertions(+), 4 deletions(-)

diff --git a/pages/login/supplier-reg.vue b/pages/login/supplier-reg.vue
index 5068173..9731ee2 100644
--- a/pages/login/supplier-reg.vue
+++ b/pages/login/supplier-reg.vue
@@ -3,7 +3,17 @@
 		<image class="component-bg"
 			src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/a5/a54508de179a4942918ecb2c5a4aa9f5bg.png"
 			mode="scaleToFill" />
-
+			
+		<view v-if="source==='step'" style="padding: 20rpx 0rpx;color: red;">
+			<view style="padding: 20rpx;text-align: center;background-color: #fff;">先阶段仅限云南产地的供应商入住</view>
+		</view>
+		<view v-if="source==='step'" >
+			<u-steps current="0">
+				<u-steps-item title="信息填写">
+				</u-steps-item>
+				<u-steps-item title="提交申请"  ></u-steps-item>
+			</u-steps>
+		</view>
 
 		<view class="t-login top-bg">
 			<view class="nav-title">注册</view>
@@ -85,6 +95,7 @@
 				getCodeisWaiting: false,
 				Timer: undefined,
 				protocal: false,
+				source: '',
 				// #ifdef PUB_SUPPLIER
 				apitype: 'supplier',
 				// #endif
@@ -93,6 +104,9 @@
 				// #endif
 
 			};
+		},
+		onLoad(options) {
+			this.source = options.source || ''
 		},
 		methods: {
 			toProtocol() {
@@ -230,9 +244,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