From 7a0b33a5f2e0ba589bf35a1b8d896700a21f94a4 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 30 四月 2026 16:00:55 +0800
Subject: [PATCH] 支付宝支付dddadd

---
 small-program/pages/settings/settings.vue |   63 ++++++++++++++++---------------
 1 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/small-program/pages/settings/settings.vue b/small-program/pages/settings/settings.vue
index c785e4d..bb5d768 100644
--- a/small-program/pages/settings/settings.vue
+++ b/small-program/pages/settings/settings.vue
@@ -2,7 +2,7 @@
 	<view class="box">
 		<view class="box-tx">
 			<view class="box-tx-image">
-				<image :src="form.imgFullUrl || '/static/image/tx@2x.png'" mode="widthFix"></image>
+				<image :src="form.fullCoverImage || '/static/image/tx@2x.png'" mode="widthFix"></image>
 			</view>
 			<button open-type="chooseAvatar" @chooseavatar="getAvatar">鏇存崲澶村儚</button>
 		</view>
@@ -10,32 +10,28 @@
 			<view class="list-item">
 				<view class="list-item-label">鏄电О</view>
 				<view class="list-item-val">
-					<input type="text" v-model="form.nickname" @blur="updateUserInfo" placeholder="璇疯緭鍏�" />
+					<input type="text" v-model="form.nickName" @blur="updateUserInfo" placeholder="璇疯緭鍏�" />
+					<u-icon name="arrow-right" color="#999999" size="17"></u-icon>
 				</view>
 			</view>
 			<view class="list-item">
 				<view class="list-item-label">鐪熷疄濮撳悕</view>
 				<view class="list-item-val">
 					<input type="text" v-model="form.name" @blur="updateUserInfo" placeholder="璇疯緭鍏�" />
+					<u-icon name="arrow-right" color="#999999" size="17"></u-icon>
 				</view>
 			</view>
 			<view class="list-item">
 				<view class="list-item-label">缁戝畾鎵嬫満</view>
 				<view class="list-item-val" @click="show = true">
 					<text>{{form.phone1}}</text>
-					<image src="/static/icon/ar_next@2x.png" mode="widthFix"></image>
+					<u-icon name="arrow-right" color="#999999" size="17"></u-icon>
 				</view>
 			</view>
 			<view class="list-item" @click="jumpAddr">
 				<view class="list-item-label">鏀惰揣鍦板潃</view>
 				<view class="list-item-val">
-					<image src="/static/icon/ar_next@2x.png" mode="widthFix"></image>
-				</view>
-			</view>
-			<view class="list-item" @click="jumpxy">
-				<view class="list-item-label">鍗忚涓庤鏄�</view>
-				<view class="list-item-val">
-					<image src="/static/icon/ar_next@2x.png" mode="widthFix"></image>
+					<u-icon name="arrow-right" color="#999999" size="17"></u-icon>
 				</view>
 			</view>
 		</view>
@@ -46,7 +42,7 @@
 				<view class="tc-contemt">
 					<view class="tc-contemt-title">鏇存崲缁戝畾鎵嬫満鍙凤紵</view>
 					<view class="tc-contemt-nr">
-						鏇存崲鍚庣幇鎵嬫満鍙穥{returnPhone(form.phone)}}灏嗕笉鑳界敤浜庣櫥褰曪紝180澶╁唴鍙彲鏇存崲涓�娆�
+						鏇存崲鍚庣幇鎵嬫満鍙穥{returnPhone(userInfo.telephone)}}灏嗕笉鑳界敤浜庣櫥褰�
 					</view>
 				</view>
 				<view class="tc-btn">
@@ -55,6 +51,7 @@
 				</view>
 			</view>
 		</u-popup>
+		<auth-login v-if="showLogin" @close="showLogin = false"></auth-login>
 	</view>
 </template>
 
@@ -68,26 +65,27 @@
 		data() {
 			return {
 				show: false,
+				showLogin: false,
 				form: {
-					nickname: '',
+					nickName: '',
 					name: '',
-					phone: '',
+					telephone: '',
 					phone1: '',
-					imgFullUrl: '',
-					imgurl: ''
+					fullCoverImage: '',
+					coverImage: ''
 				}
 			};
 		},
 		onLoad() {
-			this.form.nickname = this.userInfo.nickname
+			this.form.nickName = this.userInfo.nickName
 			this.form.name = this.userInfo.name
-			this.form.phone = this.userInfo.phone
-			this.form.phone1 = this.returnPhone(this.userInfo.phone)
-			this.form.imgFullUrl = this.userInfo.imgFullUrl
-			this.form.imgurl = this.userInfo.imgurl
+			this.form.telephone = this.userInfo.telephone
+			this.form.phone1 = this.returnPhone(this.userInfo.telephone)
+			this.form.fullCoverImage = this.userInfo.fullCoverImage
+			this.form.coverImage = this.userInfo.coverImage
 			uni.$on('phone', () => {
-				this.form.phone = this.userInfo.phone
-				this.form.phone1 = this.returnPhone(this.userInfo.phone)
+				this.form.telephone = this.userInfo.telephone
+				this.form.phone1 = this.returnPhone(this.userInfo.telephone)	
 			})
 		},
 		methods: {
@@ -102,8 +100,11 @@
 			jumpPhone() {
 				this.show = false
 				uni.navigateTo({
-					url: '/pages/change-binding/change-binding'
+					url: '/shop/pages/change-binding/change-binding'
 				})
+			},
+			handleBindPhone() {
+				this.showLogin = true
 			},
 			jumpAddr() {
 				uni.navigateTo({
@@ -114,7 +115,7 @@
 			getAvatar(e) {
 				var that = this;
 				uni.uploadFile({
-					url: `${this.$baseUrl}public/upload`,
+					url: `${this.$baseUrl}/web/public/upload`,
 					filePath: e.detail.avatarUrl,
 					name: 'file',
 					fileType: 'image',
@@ -122,8 +123,8 @@
 					formData: { folder: 'member' },
 					success: (uploadFileRes) => {
 						let result = JSON.parse(uploadFileRes.data)
-						that.form.imgurl = result.data.imgaddr
-						that.form.imgFullUrl = result.data.url
+						that.form.coverImage = result.data.imgaddr
+						that.form.fullCoverImage = result.data.url
 						that.updateUserInfo()
 					}
 				});
@@ -139,10 +140,10 @@
 			},
 			// 缂撳瓨鏈�鏂扮敤鎴蜂俊鎭�
 			async setUserInfo() {
-				let res = await this.$u.api.getUserInfo()
+				let res = await this.$u.api.getMemberInfo()
 				if (res.code === 200) {
 					await this.$store.commit('setUserInfo', res.data)
-					await this.$store.commit('setOpenId', res.data.openId)
+					await this.$store.commit('setOpenid', res.data.openId)
 				}
 			},
 			// 閫�鍑虹櫥褰�
@@ -150,7 +151,7 @@
 				this.$u.api.logOut()
 					.then(res => {
 						if (res.code === 200) {
-							this.$store.commit('clear')
+							this.$store.commit('empty')
 							uni.$emit('loginOut')
 							uni.switchTab({
 								url: '/pages/index/index'
@@ -253,10 +254,10 @@
 				line-height: 48rpx;
 				text-align: center;
 				border-radius: 32rpx;
-				border: 1rpx solid #004096;
+				border: 1rpx solid #10B2FA;
 				font-weight: 400;
 				font-size: 24rpx;
-				color: #004096;
+				color: #10B2FA;
 				margin-top: 24rpx;
 			}
 		}

--
Gitblit v1.9.3