From 05707c8c6adb1042597c52091ad25ed64d15bb55 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 21 三月 2024 14:38:19 +0800
Subject: [PATCH] 设置

---
 packagePersonal/pages/userSetting/index.wxml |   71 ++++++++++++++++++++++++++++-------
 1 files changed, 57 insertions(+), 14 deletions(-)

diff --git a/packagePersonal/pages/userSetting/index.wxml b/packagePersonal/pages/userSetting/index.wxml
index 52ab0e9..51c6a17 100644
--- a/packagePersonal/pages/userSetting/index.wxml
+++ b/packagePersonal/pages/userSetting/index.wxml
@@ -13,28 +13,71 @@
   </view>
   <view class="itemList">
     <view class="label">鎵嬫満鍙风爜</view>
-    <view class="content">{{userInfo.phoneNumber || '鏈粦瀹氭墜鏈哄彿'}}</view>
+    <view class="content" data-info="{{'phone'}}" bindtap="editUserInfo">{{userInfo.phoneNumber || '鏈粦瀹氭墜鏈哄彿'}}</view>
     <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" />
   </view>
   <view class="itemList">
     <view class="label">閭</view>
-    <view class="content">{{userInfo.Email}}</view>
+    <view class="content" data-info="{{'email'}}" bindtap="editUserInfo">{{userInfo.Email}}</view>
     <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" />
   </view>
-</view>
-<t-popup visible="{{visible}}" bind:visible-change="onVisibleChange" placement="bottom">
-  <view class="block">
-    <view class="header">
-      <view class="title">璇烽�夋嫨鎮ㄧ殑鐢ㄦ埛绫诲瀷</view>
-    </view>
-    <view class="body">
+  <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="bottom">
+    <view class="block">
+      <view class="body">
+        <view class="from-item" wx:if="{{editType == 'phone'}}">
+          <view class="label"> 鎵嬫満鍙凤細 </view>
+          <view class="item-content">
+            <view class="inputBox1">
+              <t-input placeholder="杈撳叆鎵嬫満鍙风爜" borderless value="{{userInfoForm.phone}}" type="number" tips="{{phoneError ? '鎵嬫満鍙疯緭鍏ヤ笉姝g‘' : ''}}" bindchange="onPhoneInput" />
+            </view>
+          </view>
+        </view>
+        <view class="from-item" wx:if="{{editType == 'email'}}">
+          <view class=" label"> 閭锛� </view>
+          <view class="item-content">
+            <view class="inputBox1">
+              <t-input placeholder="杈撳叆閭" borderless value="{{userInfoForm.email}}" type="number" tips="{{emailError ? '閭杈撳叆涓嶆纭�' : ''}}" bindchange="onEmailInput" />
+            </view>
+          </view>
+        </view>
+        <view class="from-item">
+          <view class="label"> 鍥惧舰楠岃瘉鐮侊細 </view>
+          <view class="item-content">
+            <view class="inputBox">
+              <t-input placeholder="杈撳叆鍥惧舰楠岃瘉鐮�" borderless value="{{userInfoForm.captcha}}" type="number" bindchange="onCaptchaInput" />
+            </view>
+            <view class="code">
+              <image src="{{imgCode}}" class="imgCode hover" bindtap="getImgCapcha" />
+            </view>
+          </view>
 
-      <view wx:for="{{userTypeList}}" wx:for-item="item" wx:for-index="index" wx:key="index" data-info="{{item}}" bindtap="tabUserTypeClick" class="{{item.value === userTypeActive ? 'activeItem item' : 'item'}}">
-        {{ item.lable }}
+        </view>
+        <view class="from-item" wx:if="{{editType == 'phone'}}">
+          <view class="label"> 鐭俊楠岃瘉鐮侊細 </view>
+          <view class="item-content">
+            <view class="inputBox">
+              <t-input placeholder="杈撳叆鐭俊楠岃瘉鐮�" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" />
+            </view>
+            <view class="code">
+              <button class="btn" bindtap="getPhoneCode">{{countDown > 0 ? countDown : '鑾峰彇鐭俊楠岃瘉鐮�'}}</button>
+            </view>
+          </view>
+        </view>
+        <view class="from-item" wx:if="{{editType == 'email'}}">
+          <view class="label"> 閭楠岃瘉鐮侊細 </view>
+          <view class="item-content">
+            <view class="inputBox">
+              <t-input placeholder="杈撳叆閭楠岃瘉鐮�" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" />
+            </view>
+            <view class="code">
+              <button class="btn" bindtap="getEmailCode">鑾峰彇閭楠岃瘉鐮�</button>
+            </view>
+          </view>
+        </view>
       </view>
     </view>
     <view class="footer">
-      <button class="submit" bindtap="submit">纭畾</button>
+      <button class="submit" bindtap="confirmInfo">纭畾</button>
     </view>
-  </view>
-</t-popup>
\ No newline at end of file
+  </t-popup>
+</view>
\ No newline at end of file

--
Gitblit v1.9.1