user.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- pages/user/user.wxml -->
  2. <block wx:if="{{!login}}">
  3. <!-- logo -->
  4. <view class="logo">
  5. <image class="logoImg" src="/image/logo.png" mode="widthFix"></image>
  6. </view>
  7. <!-- 登录按钮 -->
  8. <view class="loginButton">
  9. <!-- 在本小程序中只实现了微信登录 -->
  10. <view class="wechatLogin">
  11. <button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">
  12. <text class="icon-github"></text>
  13. 微信登录
  14. </button>
  15. </view>
  16. <view class="phoneLogin">
  17. <button>手机号登录</button>
  18. </view>
  19. </view>
  20. </block>
  21. <!-- 已经登录显示界面 -->
  22. <block wx:else>
  23. <view class="body" style="height:{{phoneHeight}}px">
  24. <!-- 头像昵称签到部分 -->
  25. <view class="topBar">
  26. <!-- 头像昵称 -->
  27. <view class="userImg">
  28. <view class="avatar_nickname">
  29. <view class="avatar">
  30. <image class="avatarImg" src="{{avatarUrl}}"></image>
  31. </view>
  32. <view class="nickname">
  33. <text class="#">{{nickName}}</text>
  34. <!-- vip勋章 -->
  35. <text class="icon-vip" style="margin-left:30rpx"></text>
  36. </view>
  37. </view>
  38. <view class="kefu">
  39. <text class="icon-service"></text>
  40. 客服服务
  41. </view>
  42. </view>
  43. <!-- 签到 -->
  44. <view class="qiandao">
  45. <view class="qianText">
  46. <text class="icon-calendar text-gray"></text>
  47. 签到
  48. </view>
  49. <view class="icon_">
  50. <text class="icon-right text-gray"></text>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 选项卡部分 -->
  55. <view class="chioce">
  56. <!-- 选项卡item -->
  57. <view class="choiceItem">
  58. <view class="">
  59. <text class="icon-time text-gray"></text>
  60. 定时关闭
  61. </view>
  62. <text class="icon-right text-gray"></text>
  63. </view>
  64. <view class="choiceItem">
  65. <view class="">
  66. <text class="icon-creative text-gray"></text>
  67. 夜间模式
  68. <!-- <button class="switch"></button> -->
  69. </view>
  70. <text class="icon-right text-gray"></text>
  71. </view>
  72. <view class="choiceItem">
  73. <view class="">
  74. <text class="icon-post text-gray"></text>
  75. 意见反馈
  76. </view>
  77. <text class="icon-right text-gray"></text>
  78. </view>
  79. <view class="choiceItem">
  80. <view class="">
  81. <text class="icon-order text-gray"></text>
  82. 切换账号
  83. </view>
  84. <text class="icon-right text-gray"></text>
  85. </view>
  86. </view>
  87. </view>
  88. </block>