open-data.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <import src="../../../common/head.wxml" />
  2. <import src="../../../common/foot.wxml" />
  3. <!--
  4. <open-data type="userAvatarUrl" lang="zh_CN"></open-data>
  5. <open-data type="userGender" lang="zh_CN"></open-data>
  6. <open-data type="userNickName" lang="zh_CN"></open-data>
  7. <open-data type="userCity" lang="zh_CN"></open-data>
  8. <open-data type="userProvince" lang="zh_CN"></open-data>
  9. <open-data type="userCountry" lang="zh_CN"></open-data>
  10. <open-data type="userLanguage" lang="zh_CN"></open-data>
  11. -->
  12. <view class="container page" data-weui-theme="{{theme}}">
  13. <template is="head" data="{{title: 'open-data'}}"/>
  14. <view class="page-body">
  15. <view class="avatar">
  16. <open-data class="avatar-img" type="userAvatarUrl" lang="zh_CN"></open-data>
  17. </view>
  18. <form>
  19. <view class="page-section">
  20. <view class="weui-cells weui-cells_after-title">
  21. <view class="weui-cell weui-cell_input">
  22. <view class="weui-cell__hd">
  23. <view class="weui-label">昵称</view>
  24. </view>
  25. <view class="weui-cell__bd">
  26. <view class="weui-input">
  27. <open-data type="userNickName" lang="zh_CN"></open-data>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="weui-cell weui-cell_input">
  32. <view class="weui-cell__hd">
  33. <view class="weui-label">性别</view>
  34. </view>
  35. <view class="weui-cell__bd">
  36. <view class="weui-input">
  37. <open-data type="userGender" lang="zh_CN"></open-data>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="weui-cell weui-cell_input">
  42. <view class="weui-cell__hd">
  43. <view class="weui-label">地区</view>
  44. </view>
  45. <view class="weui-cell__bd">
  46. <view class="weui-input">
  47. <open-data class="country" type="userCountry" lang="zh_CN"></open-data>
  48. <open-data class="province" type="userProvince" lang="zh_CN"></open-data>
  49. <open-data class="city" type="userCity" lang="zh_CN"></open-data>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="weui-cell weui-cell_input">
  54. <view class="weui-cell__hd">
  55. <view class="weui-label">语言</view>
  56. </view>
  57. <view class="weui-cell__bd">
  58. <view class="weui-input">
  59. <open-data type="userLanguage" lang="zh_CN"></open-data>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </form>
  66. </view>
  67. <template is="foot" />
  68. </view>