userInfo.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="container">
  2. <view class='top'>
  3. <view class="user-avater" bind:tap="chooseImg">
  4. <van-image width="200rpx" height="200rpx" round src="{{formData.picUrl}}" class="user-avater-img"
  5. wx:if="{{formData.picUrl}}" fit="cover"/>
  6. <open-data type="userAvatarUrl" wx:else></open-data>
  7. </view>
  8. <view class="user-avater-tip" bind:tap="chooseImg">更换头像</view>
  9. </view>
  10. <van-cell title="姓名" value="{{formData.name}}" border="{{false}}" custom-class="cell" center
  11. title-class="label-class">
  12. </van-cell>
  13. <edu-line style="width:100%;" color="rgba(125, 125, 125, 0.25)"/>
  14. <van-cell title="微信" is-link="{{!userInfo.wechatOpenId}}" value="{{userInfo.wechatOpenId?'已绑定':'去绑定'}}"
  15. border="{{false}}" custom-class="cell" center
  16. value-class="{{userInfo.wechatOpenId?'':'tip-class'}}" title-class="label-class"
  17. bind:click="loginByWechat">
  18. </van-cell>
  19. <edu-line style="width:100%;" color="rgba(125, 125, 125, 0.25)"/>
  20. <van-cell title="手机号" is-link value="{{userInfo.phone}}" border="{{false}}" bind:click="changePhone"
  21. custom-class="cell" center title-class="label-class">
  22. </van-cell>
  23. <edu-line style="width:100%;" color="rgba(125, 125, 125, 0.25)"/>
  24. <edu-button title="提交" bind:click="put" class="put-btn"></edu-button>
  25. </view>