instructions.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="content">
  3. <view class="container">
  4. <view class="item_warp">
  5. <view class="title">
  6. 使用说明
  7. </view>
  8. <view class="item">
  9. <view class="text">
  10. 1.点击"扫码连接",扫码水表上的二维码;
  11. </view>
  12. <view class="text">
  13. 2.水表连接成功后"开始使用"按钮;
  14. </view>
  15. <view class="text">
  16. 3.使用完成后点击"停止用水"即关闭热水;
  17. </view>
  18. <view class="text">
  19. 4.或者连接水表后直接在表上进行操作,如下图:
  20. </view>
  21. <view class="img">
  22. <image class="img_scan" src="../static/images/qr-code.png" mode=""></image>
  23. </view>
  24. <view class="bot_text" @click="child_cancel" hover-class="bot_text_hover_color">
  25. 我知道了
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. methods: {
  35. child_cancel() {
  36. this.$emit('parent_cancel', false)
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .content {
  43. width: 100%;
  44. height: 100%;
  45. .container {
  46. width: 100%;
  47. height: 100%;
  48. position: fixed;
  49. top: 0;
  50. left: 0;
  51. background: rgba(0, 0, 0, .4);
  52. .item_warp {
  53. width: 650rpx;
  54. position: absolute;
  55. top: 50%;
  56. left: 50%;
  57. transform: translate(-50%, -50%);
  58. padding: 40rpx 50rpx;
  59. box-sizing: border-box;
  60. background: #fff;
  61. border-radius: 10rpx;
  62. .title {
  63. font-size: 32rpx;
  64. color: #000;
  65. font-weight: bold;
  66. text-align: center;
  67. margin-bottom: 30rpx;
  68. }
  69. .text {
  70. font-size: 32rpx;
  71. color: #333;
  72. line-height: 40rpx;
  73. margin-bottom: 20rpx;
  74. }
  75. .img {
  76. text-align: center;
  77. margin: 30rpx 0;
  78. .img_scan {
  79. width: 300rpx;
  80. height: 200rpx;
  81. }
  82. }
  83. .bot_text {
  84. padding: 5rpx;
  85. height: 65rpx;
  86. line-height: 65rpx;
  87. border-radius: 10rpx;
  88. color: $my-color-primary;
  89. font-size: 32rpx;
  90. text-align: center;
  91. }
  92. .bot_text_hover_color {
  93. background-color: $my-color-btn-background;
  94. }
  95. }
  96. }
  97. }
  98. </style>