index.wxml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--pages/mine/mine.wxml-->
  2. <view class="container">
  3. <view class="top-box" bindtap="showDialog">
  4. <image class="top-bg" src="../../static/bg/index_bg.png" mode="widthFix"></image>
  5. <view class="user-bg">
  6. </view>
  7. <view class="userInfo-box">
  8. <view class="user-h-view" style="align-items: center;">
  9. <image class="avatar" src="{{avatarUrl}}" mode="widthFix"></image>
  10. <view class="user-v-view" style="flex: 1;height: fit-content;margin:64rpx 30rpx 0 30rpx;">
  11. <text class="username">{{nickName}}</text>
  12. <view class="user-h-view" style="align-items: center;">
  13. <text class="phoneNumber">{{phoneNumber}}</text>
  14. <text wx:if="{{hasAuth}}" class="edit-btn">编辑资料</text>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <image class="ad-banner" src="../../static/bg/mine-ad.png" mode="widthFix"></image>
  21. <view class="card-menu">
  22. <view class="card-menu-item" wx:for="{{ menuCardList }}" wx:key="index" bindtap="onMenuCardClick"
  23. data-index="{{ index }}" style="background-color: {{item.bgColor}};">
  24. <image class="bg-card-menu" src="{{item.bgIcon}}" mode="widthFix"></image>
  25. <text class="card-menu-title" style="color: {{item.color}};">{{item.title}}</text>
  26. <image class="ic-card-menu" src="{{item.icon}}" mode="widthFix"></image>
  27. </view>
  28. </view>
  29. <view class="menu-card">
  30. <view class="menu-item" wx:for="{{ menuList }}" wx:key="index" bindtap="onMenuClick" data-index="{{ index }}">
  31. <image class="ic-menu" src="{{item.icon}}" mode="widthFix"></image>
  32. <text class="menu-title">{{item.title}}</text>
  33. <button wx:if="{{item.type == 'contact'}}" open-type="contact"></button>
  34. </view>
  35. </view>
  36. <authorized-login-dialog showDialog="{{showAuthorizedDialog}}"
  37. bind:authorizationSuccessful="authorizationSuccessful"></authorized-login-dialog>
  38. <van-popup show="{{ showTipsA }}" bind:close="onCloseTipsDialog" custom-style="background-color: transparent;">
  39. <view class="tips-box">
  40. <view class="tips-content">
  41. <image class="ic-tips" src="/static/index/icon/ic_zwqx1.png" mode="widthFix"></image>
  42. <text class="tips-title">暂无权限</text>
  43. <text
  44. class="tips-desc">{{'暂无权限的原因如下:\n1、您不是酒店住客或者爱眠客床垫用户,没有权限查看睡眠报告。\n2、您是酒店住客,但是没有获取到您的信息,请联系前台。\n3、您是爱眠客床垫用户,请联系客服。'}}</text>
  45. </view>
  46. <view class="tips-close-btn" bindtap="onCloseTipsDialog">
  47. <van-icon name="close" color="#FFFFFF" size="56rpx" />
  48. </view>
  49. </view>
  50. </van-popup>
  51. <van-popup show="{{ showTipsB }}" bind:close="onCloseTipsDialog" custom-style="background-color: transparent;">
  52. <view class="tips-box">
  53. <view class="tips-contentB">
  54. <image class="ic-tips" src="/static/index/icon/ic_zwqx2.png" mode="widthFix"></image>
  55. <text class="tips-title">暂无权限</text>
  56. <text class="tips-desc">{{'暂无权限的原因如下:\n1、您不是酒店住客,没有权限控制房间智能设备。\n2、您是酒店住客,但是没有获取到您的信息,请联系前台。'}}</text>
  57. </view>
  58. <view class="tips-close-btn" bindtap="onCloseTipsDialog">
  59. <van-icon name="close" color="#FFFFFF" size="56rpx" />
  60. </view>
  61. </view>
  62. </van-popup>
  63. </view>