permission.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="entery-container">
  2. <block wx:if="{{!showCreateForm}}">
  3. <button class="permission-btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号</button>
  4. <button class="permission-btn" bindtap="getUser">获取用户信息</button>
  5. <button class="permission-btn" bindtap="fillInfo">填写信息</button>
  6. </block>
  7. <block wx:else>
  8. <view class="form-box">
  9. <view class="avatar">
  10. <view class="img-item" bindtap="handleChooseMedia">
  11. <image class="logo-img" src="{{logoImgSrc}}"></image>
  12. </view>
  13. </view>
  14. <view class="form">
  15. <view class="form-item username">
  16. <view class="title">真实姓名:</view>
  17. <view class="username-input">
  18. <input class="weui-input" style="width:270rpx;" placeholder="请输入" placeholder-style="font-size: 26rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #999999;text-align:right"/>
  19. </view>
  20. </view>
  21. <view class="form-item form-item-date date">
  22. <view class="title">生日:</view>
  23. <picker class="my-picker" mode="date" bindchange="bindDateChange">
  24. <view class="picker-item ittflex">
  25. <text class="picker-text">{{pickerText}}</text>
  26. </view>
  27. </picker>
  28. </view>
  29. <view class="form-item sex">
  30. <view class="title">性别:</view>
  31. <view class="radio">
  32. <block wx:for="{{sexList}}" wx:key="unique">
  33. <view class="radio-item">
  34. <view class="radio-cricle {{index == sexActive ? 'radio-cricle-active' : ''}}" data-index="{{index}}" bindtap="handleSex">
  35. <view class="inner-cricle"></view>
  36. </view>
  37. <text class="radio-text">{{item.title}}</text>
  38. </view>
  39. </block>
  40. </view>
  41. </view>
  42. <view class="submit-btn" bindtap="handleConfirmBind">确认绑定</view>
  43. </view>
  44. </view>
  45. </block>
  46. </view>