From a59ff44b2eaa7020f0529632d9ec064c4dc38e27 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 28 四月 2026 22:08:46 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun

---
 small-program/shop/pages/login/login.vue |   59 ++++++++++++++++++++++-------------------------------------
 1 files changed, 22 insertions(+), 37 deletions(-)

diff --git a/small-program/shop/pages/login/login.vue b/small-program/shop/pages/login/login.vue
index 105b659..954e918 100644
--- a/small-program/shop/pages/login/login.vue
+++ b/small-program/shop/pages/login/login.vue
@@ -26,9 +26,9 @@
 			<image class="agree-icon" :src="agreed ? '/static/icon/ic_accept_sel@2x.png' : '/static/icon/ic_accept@2x.png'" mode="aspectFit" @tap="agreed = !agreed"></image>
 			<view class="agreement-text-wrap">
 				<text class="agreement-text">鎴戝凡闃呰骞跺悓鎰�</text>
-				<text class="agreement-link" @click="goToService(0)">銆婄敤鎴锋湇鍔″崗璁��</text>
+				<text class="agreement-link" @click="goToService(2)">銆婇棬搴楁湇鍔″崗璁��</text>
 				<text class="agreement-text">鍙�</text>
-				<text class="agreement-link" @click="goToService(1)">銆婄敤鎴烽殣绉佹斂绛栥��</text>
+				<text class="agreement-link" @click="goToService(3)">銆婇棬搴楅殣绉佹斂绛栥��</text>
 			</view>
 		</view>
 	</view>
@@ -52,7 +52,6 @@
 		},
 		onLoad() {
 			// 闈欓粯鐧诲綍
-		
 			if (this.userInfo.bindShopId) {
 				uni.showLoading({
 					title:'鐧诲綍涓�...'
@@ -71,7 +70,7 @@
 									}
 									uni.hideLoading();
 									// setTimeout(() => {
-										uni.reLaunch({
+										uni.navigateTo({
 											url: '/shop/pages/store-home/store-home'
 										});
 									// }, 1000)
@@ -111,39 +110,26 @@
 					return
 				}
 				uni.showLoading({ title: '鐧诲綍涓�...', mask: true })
-				try {
-					const res = await this.$u.api.shopLogin({
-						openid: this.openid,
-						password: this.form.password,
-						telephone: this.form.telephone
-					})
-					uni.hideLoading()
-					if (res.code === 200) {
-						this.$store.commit('setUserType', 1)
-						this.$store.commit('setShopToken', res.data.token)
-						// 鑾峰彇闂ㄥ簵淇℃伅
-						const shopInfoRes = await this.$u.api.getShopInfo({})
-						if (shopInfoRes.code === 200) {
-							this.$store.commit('setShopInfo', shopInfoRes.data)
-						}
-						uni.showToast({ title: '鐧诲綍鎴愬姛', icon: 'success' })
-						setTimeout(() => {
-							uni.reLaunch({
-								url: '/shop/pages/store-home/store-home'
-							});
-						}, 1500)
-					} else {
-						uni.showToast({
-							title: res.msg || '鐧诲綍澶辫触',
-							icon: 'none'
-						})
+				const res = await this.$u.api.shopLogin({
+					openid: this.openid,
+					password: this.form.password,
+					telephone: this.form.telephone
+				})
+				uni.hideLoading()
+				if (res.code === 200) {
+					this.$store.commit('setUserType', 1)
+					this.$store.commit('setShopToken', res.data.token)
+					// 鑾峰彇闂ㄥ簵淇℃伅
+					const shopInfoRes = await this.$u.api.getShopInfo({})
+					if (shopInfoRes.code === 200) {
+						this.$store.commit('setShopInfo', shopInfoRes.data)
 					}
-				} catch (err) {
-					uni.hideLoading()
-					uni.showToast({
-						title: '鐧诲綍澶辫触',
-						icon: 'none'
-					})
+					uni.showToast({ title: '鐧诲綍鎴愬姛', icon: 'success' })
+					setTimeout(() => {
+						uni.reLaunch({
+							url: '/shop/pages/store-home/store-home'
+						});
+					}, 1500)
 				}
 			},
 			goToService(type) {
@@ -229,7 +215,6 @@
 	}
 
 	.agreement-row {
-		background: #D9F3FF;
 		margin-top: 60rpx;
 		display: flex;
 		align-items: flex-start;

--
Gitblit v1.9.3