edit.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view class="bory">
  2. <view class="gapleft">
  3. <view class="borbot row crosscenter item">
  4. <text>姓名     </text>
  5. <view class="subtxt flexible">{{user.actualName ||user.nickname}}</view>
  6. <view class="cuIcon-right wrpy wrprlg" bindtap="clickInfo" data-key="actualName"></view>
  7. </view>
  8. <view class="borbot row crosscenter item">
  9. <text>性别     </text>
  10. <view class="subtxt flexible">{{['','男','女'][user.sex]}}</view>
  11. <text class="cuIcon-right wrpy wrprlg" bindtap="clickInfo" data-key="sex"></text>
  12. </view>
  13. <view class="wrpy wrprlg borbot row crosscenter item">
  14. <text>出生年月   </text>
  15. <picker mode="date" class="flexible" start='1940-01-01' end='{{endDate}}' value="{{user.birthday}}" bindchange="changeBirthday">
  16. <view class="row crosscenter full">
  17. <view class="flexible subtxt">{{user.birthday||'-'}}</view>
  18. <text class="cuIcon-right"></text>
  19. </view>
  20. </picker>
  21. </view>
  22. <view class="borbot row crosscenter item">
  23. <text>联系方式   </text>
  24. <view class="subtxt flexible">{{user.phone||'-'}}</view>
  25. <text class="wrpy wrprlg cuIcon-right" bindtap="clickInfo" data-key="phone"></text>
  26. </view>
  27. <view class="borbot row crosscenter item">
  28. <text>自我介绍   </text>
  29. <view class="subtxt flexible">{{user.introduction||'介绍一下,让更多朋友认识你'}}</view>
  30. <text class="wrpy wrprlg cuIcon-right" bindtap="clickInfo" data-key="introduction"></text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="cu-modal {{modalKey&&'show'}}">
  35. <view class="cu-dialog">
  36. <view class="cu-bar bg-white justify-end">
  37. <view class="content">{{modalKeys[modalKey]}}</view>
  38. <view class="action" bindtap="hideModal">
  39. <text class="cuIcon-close text-red"></text>
  40. </view>
  41. </view>
  42. <view class="padding-xl">
  43. <view class="radioGroup row maincenter" wx:if="{{modalKey=='sex'}}">
  44. <view class="radio row crosscenter" bindtap="clickRadio" data-v="{{1}}">
  45. <image src="../../../../imgs/radio{{inputInfo==1?'-checked':''}}.png" mode="aspectFit"></image>
  46. <text>男</text>
  47. </view>
  48. <view class="radio row crosscenter" bindtap="clickRadio" data-v="{{2}}">
  49. <image src="../../../../imgs/radio{{inputInfo==2?'-checked':''}}.png" mode="aspectFit"></image>
  50. <text>女</text>
  51. </view>
  52. </view>
  53. <input placeholder="{{placeholder[modalKey]}}" class="borbot" bindinput="inputInfo" value="{{inputText}}" wx:if="{{modalKey!='sex'}}" maxlength="{{modalKey=='phone'?11:100}}"></input>
  54. </view>
  55. <view class="cu-bar bg-white justify-end">
  56. <view class="action">
  57. <button class="cu-btn line-green text-green" bindtap="hideModal">取消</button>
  58. <button class="cu-btn bg-green margin-left" bindtap="clickConfirm">确定</button>
  59. </view>
  60. </view>
  61. </view>
  62. </view>