From 34dd2d10cf26c86ed170a59aa36718f7c27f24d0 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 03 四月 2024 15:30:29 +0800 Subject: [PATCH] 图书详情bug修改,云学习无销售方法check禁用 --- packagePersonal/pages/userSetting/index.wxml | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packagePersonal/pages/userSetting/index.wxml b/packagePersonal/pages/userSetting/index.wxml index 51c6a17..46bf5f3 100644 --- a/packagePersonal/pages/userSetting/index.wxml +++ b/packagePersonal/pages/userSetting/index.wxml @@ -2,28 +2,38 @@ <view class="itemList"> <view class="label">澶村儚</view> <view class="contentImg"> - <t-avatar image="{{defaultAvatarUrl}}" class="user-center-card__header__avatar" /> + <t-avatar image="{{userInfo.icon}}" class="user-center-card__header__avatar" /> </view> - <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" /> + <view class="iconEdit" data-info="{{'icon'}}" bindtap="editIconInfo"> + <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" /> + </view> </view> <view class="itemList"> <view class="label">鐢ㄦ埛鍚�</view> - <view class="content">{{userInfo.fullName || '寰俊鐢ㄦ埛'}}</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" /> + <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" /> + <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" data-info="{{'email'}}" bindtap="editUserInfo" /> </view> - <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="bottom"> + <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="center"> <view class="block"> <view class="body"> + <view class="from-item" wx:if="{{editType == 'nickName'}}"> + <view class="label"> 鏄电О锛� </view> + <view class="item-content"> + <view class="inputBox1"> + <t-input placeholder="杈撳叆鏄电О" borderless value="{{userInfoForm.nickName}}" bindchange="onNameInput" /> + </view> + </view> + </view> <view class="from-item" wx:if="{{editType == 'phone'}}"> <view class="label"> 鎵嬫満鍙凤細 </view> <view class="item-content"> @@ -40,7 +50,7 @@ </view> </view> </view> - <view class="from-item"> + <view class="from-item" wx:if="{{editType !== 'nickName'}}"> <view class="label"> 鍥惧舰楠岃瘉鐮侊細 </view> <view class="item-content"> <view class="inputBox"> @@ -75,9 +85,10 @@ </view> </view> </view> - </view> - <view class="footer"> - <button class="submit" bindtap="confirmInfo">纭畾</button> + <view class="footer"> + <button class="submit" bindtap="confirmInfo">纭畾</button> + </view> + <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" /> </view> </t-popup> </view> \ No newline at end of file -- Gitblit v1.9.1