From e8ec903206cb82e4dbb4687291d5f7788e7ff046 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 06 五月 2024 18:17:47 +0800
Subject: [PATCH] bug修改

---
 packagePersonal/pages/userSetting/index.wxml |  124 ++++++++++++++++++++++++++++++++---------
 1 files changed, 97 insertions(+), 27 deletions(-)

diff --git a/packagePersonal/pages/userSetting/index.wxml b/packagePersonal/pages/userSetting/index.wxml
index 8147931..7e6ac2b 100644
--- a/packagePersonal/pages/userSetting/index.wxml
+++ b/packagePersonal/pages/userSetting/index.wxml
@@ -10,18 +10,36 @@
   </view>
   <view class="itemList">
     <view class="label">鐢ㄦ埛鍚�</view>
-    <view class="content" data-info="{{'nickName'}}" bindtap="editUserInfo">{{userInfo.nickName || '寰俊鐢ㄦ埛'}}</view>
+    <view class="content" data-info="{{'nickName'}}" bindtap="editUserInfo"
+      >{{userInfo.nickName || '寰俊鐢ㄦ埛'}}</view
+    >
     <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" />
   </view>
   <view class="itemList">
     <view class="label">鎵嬫満鍙风爜</view>
-    <view class="content" data-info="{{'phone'}}" bindtap="editUserInfo">{{userInfo.phoneNumber || '鏈粦瀹氭墜鏈哄彿'}}</view>
-    <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" data-info="{{'phone'}}" bindtap="editUserInfo" />
+    <view class="content" data-info="{{'phone'}}" bindtap="editUserInfo"
+      >{{userInfo.phoneNumber || '鏈粦瀹氭墜鏈哄彿'}}</view
+    >
+    <t-icon
+      name="chevron-right"
+      size="40rpx"
+      color="#C2C2C2"
+      data-info="{{'phone'}}"
+      bindtap="editUserInfo"
+    />
   </view>
   <view class="itemList">
     <view class="label">閭</view>
-    <view class="content" data-info="{{'email'}}" bindtap="editUserInfo">{{userInfo.Email}}</view>
-    <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" data-info="{{'email'}}" bindtap="editUserInfo" />
+    <view class="content" data-info="{{'email'}}" bindtap="editUserInfo"
+      >{{userInfo.Email}}</view
+    >
+    <t-icon
+      name="chevron-right"
+      size="40rpx"
+      color="#C2C2C2"
+      data-info="{{'email'}}"
+      bindtap="editUserInfo"
+    />
   </view>
   <!-- <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="center">
     <view class="block">
@@ -91,9 +109,12 @@
       <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" />
     </view>
   </t-popup> -->
-
 </view>
-<view class="popup-box" wx:if="{{userInfoBox}}" bindtap="onCloseProtocol"></view>
+<view
+  class="popup-box"
+  wx:if="{{userInfoBox}}"
+  bindtap="onCloseProtocol"
+></view>
 <view class="info-center" style="top:{{height*0.3}}px;" wx:if="{{userInfoBox}}">
   <view>
     <view class="row-info">
@@ -102,7 +123,12 @@
           <view class="label"> 鏄电О锛� </view>
           <view class="item-content">
             <view class="inputBox1">
-              <t-input placeholder="杈撳叆鏄电О" borderless value="{{userInfoForm.nickName}}" bindchange="onNameInput" />
+              <t-input
+                placeholder="杈撳叆鏄电О"
+                borderless
+                value="{{userInfoForm.nickName}}"
+                bindchange="onNameInput"
+              />
             </view>
           </view>
         </view>
@@ -110,50 +136,81 @@
           <view class="label"> 鎵嬫満鍙凤細 </view>
           <view class="item-content">
             <view class="outsideInputBox1">
-
               <view class="inputBox1">
-                <t-input placeholder="杈撳叆鎵嬫満鍙风爜" borderless value="{{userInfoForm.phone}}" type="number" bindchange="onPhoneInput" />
+                <t-input
+                  placeholder="杈撳叆鎵嬫満鍙风爜"
+                  borderless
+                  value="{{userInfoForm.phone}}"
+                  type="number"
+                  bindchange="onPhoneInput"
+                />
               </view>
-              <view wx:if="{{phoneError}}" style="font-size: 24rpx; color: red;">鎵嬫満鍙疯緭鍏ヤ笉姝g‘</view>
-
-
+              <view wx:if="{{phoneError}}" style="font-size: 24rpx; color: red"
+                >鎵嬫満鍙疯緭鍏ヤ笉姝g‘</view
+              >
             </view>
-
           </view>
         </view>
         <view class="from-item" wx:if="{{editType == 'email'}}">
-          <view class=" label"> 閭锛� </view>
+          <view class="label"> 閭锛� </view>
           <view class="item-content">
             <view class="outsideInputBox1">
               <view class="inputBox1">
-                <t-input placeholder="杈撳叆閭" borderless value="{{userInfoForm.email}}" bindchange="onEmailInput" />
-
+                <t-input
+                  placeholder="杈撳叆閭"
+                  borderless
+                  value="{{userInfoForm.email}}"
+                  bindchange="onEmailInput"
+                />
               </view>
-              <view wx:if="{{emailError}}" style="font-size: 24rpx; color: red;">閭杈撳叆涓嶆纭�</view>
+              <view wx:if="{{emailError}}" style="font-size: 24rpx; color: red"
+                >閭杈撳叆涓嶆纭�</view
+              >
             </view>
-
           </view>
         </view>
         <view class="from-item" wx:if="{{editType !== 'nickName'}}">
           <view class="label"> 鍥惧舰楠岃瘉鐮侊細 </view>
           <view class="item-content">
             <view class="inputBox">
-              <t-input placeholder="杈撳叆鍥惧舰楠岃瘉鐮�" borderless value="{{userInfoForm.captcha}}" type="number" bindchange="onCaptchaInput" />
+              <t-input
+                placeholder="杈撳叆鍥惧舰楠岃瘉鐮�"
+                borderless
+                value="{{userInfoForm.captcha}}"
+                type="number"
+                bindchange="onCaptchaInput"
+              />
             </view>
             <view class="code">
-              <image src="{{imgCode}}" class="imgCode hover" bindtap="getImgCapcha" />
+              <image
+                src="{{imgCode}}"
+                class="imgCode hover"
+                bindtap="getImgCapcha"
+              />
             </view>
           </view>
-
         </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" />
+              <t-input
+                placeholder="杈撳叆鐭俊楠岃瘉鐮�"
+                borderless
+                value="{{userInfoForm.code}}"
+                type="number"
+                bindchange="onCodeInput"
+              />
             </view>
             <view class="code">
-              <button class="{{countDown > 0 ? ' disabled' : 'btn'}}" bindtap="getPhoneCode">{{countDown > 0 ? '楠岃瘉鐮�(' + countDown + 's)' : '鑾峰彇鐭俊楠岃瘉鐮�'}}</button>
+              <button
+                disabled="{{countDown > 0}}"
+                class="{{countDown > 0 ? ' disabled' : 'btn'}}"
+                bindtap="getPhoneCode"
+              >
+                {{countDown > 0 ? '楠岃瘉鐮�(' + countDown + 's)' :
+                '鑾峰彇鐭俊楠岃瘉鐮�'}}
+              </button>
             </view>
           </view>
         </view>
@@ -161,10 +218,23 @@
           <view class="label"> 閭楠岃瘉鐮侊細 </view>
           <view class="item-content">
             <view class="inputBox">
-              <t-input placeholder="杈撳叆閭楠岃瘉鐮�" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" />
+              <t-input
+                placeholder="杈撳叆閭楠岃瘉鐮�"
+                borderless
+                value="{{userInfoForm.code}}"
+                type="number"
+                bindchange="onCodeInput"
+              />
             </view>
             <view class="code">
-              <button class="{{mailCountDown > 0 ? ' disabled' : 'btn'}}" bindtap="getEmailCode"> {{mailCountDown > 0 ? '楠岃瘉鐮�(' + mailCountDown + 's)' : '鑾峰彇閭楠岃瘉鐮�'}}</button>
+              <button
+                disabled="{{mailCountDown > 0}}"
+                class="{{mailCountDown > 0 ? ' disabled' : 'btn'}}"
+                bindtap="getEmailCode"
+              >
+                {{mailCountDown > 0 ? '楠岃瘉鐮�(' + mailCountDown + 's)' :
+                '鑾峰彇閭楠岃瘉鐮�'}}
+              </button>
             </view>
           </view>
         </view>
@@ -175,4 +245,4 @@
       <view class="right-btn" bindtap="confirmInfo">纭</view>
     </view>
   </view>
-</view>
\ No newline at end of file
+</view>

--
Gitblit v1.9.1