index.wxml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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="aspectFill"></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. <van-popup show="{{ show1 }}" round bind:close="onClose">
  64. <view class="popup-box-1 flex-column flex-level-center">
  65. <view class="popup-title-1">巡检人员绑定</view>
  66. <view class="popup-text-1 flex-level-center">确定要绑定该微信号为巡检人员吗?</view>
  67. <view class="flex-level-center">
  68. <view bind:tap="bindAccountPopup" class="popup-btn-b end-see-aico-btn-color-1 flex-vertical-center flex-level-center" style="margin-right: 20rpx">
  69. 确定
  70. </view >
  71. <view bind:tap="onClose" class="popup-btn-b end-see-aico-btn-color-2 flex-vertical-center flex-level-center">
  72. 关闭
  73. </view>
  74. </view>
  75. </view>
  76. </van-popup>
  77. <painter
  78. customActionStyle="{{customActionStyle}}"
  79. palette="{{paintPallette}}"
  80. bind:imgOK="onImgOK"
  81. bind:touchEnd="touchEnd"
  82. widthPixels="1000"
  83. />
  84. <van-overlay show="{{ showImg }}" bind:click="onClickHide">
  85. <view class="wrapper">
  86. <view class="block" >
  87. <image src="{{image}}" style="width: 630rpx; height: 100%;"/>
  88. </view>
  89. <view class="btns-box">
  90. <view class="print-btn">
  91. <image class="btn-img" src="/static/painter/dy-1.png" ></image>
  92. 酒店打印
  93. </view>
  94. <view class="save-btn" bind:tap="saveImage">
  95. <image class="btn-img" src="/static/painter/bc-1.png" ></image>
  96. 保存到本地
  97. </view>
  98. </view>
  99. </view>
  100. </van-overlay>
  101. <!-- widthPixels="1000"-->
  102. </view>