instructions.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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.在水表上手动滑动,可启动、暂停、停止用水;手机APP也可直接停止用水。
  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">
  25. <label class="bot_text" @tap="child_noshow" hover-class="bot_text_hover_color">
  26. <checkbox class="chk" /><text>以后不再出现</text>
  27. </label>
  28. <text class="bot_text" @tap="child_cancel" hover-class="bot_text_hover_color">我知道了</text>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. chk: false
  40. }
  41. },
  42. methods: {
  43. child_noshow(e) {
  44. this.chk = !this.chk
  45. this.$emit('parent_noshow', this.chk)
  46. },
  47. child_cancel() {
  48. this.$emit('parent_cancel', false)
  49. }
  50. }
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .content {
  55. width: 100%;
  56. height: 100%;
  57. .container {
  58. width: 100%;
  59. height: 100%;
  60. position: fixed;
  61. top: 0;
  62. left: 0;
  63. background: rgba(0, 0, 0, .4);
  64. .item_warp {
  65. width: 650rpx;
  66. position: absolute;
  67. top: 50%;
  68. left: 50%;
  69. transform: translate(-50%, -50%);
  70. padding: 40rpx 50rpx;
  71. box-sizing: border-box;
  72. background: #fff;
  73. border-radius: 10rpx;
  74. .title {
  75. font-size: 32rpx;
  76. color: #000;
  77. font-weight: bold;
  78. text-align: center;
  79. margin-bottom: 30rpx;
  80. }
  81. .text {
  82. font-size: 32rpx;
  83. color: #333;
  84. line-height: 40rpx;
  85. margin-bottom: 20rpx;
  86. text-indent: 2em;
  87. }
  88. .img {
  89. text-align: center;
  90. margin: 30rpx 0;
  91. .img_scan {
  92. width: 300rpx;
  93. height: 200rpx;
  94. }
  95. }
  96. .bot {
  97. display: flex;
  98. flex-direction: row;
  99. justify-content: space-around;
  100. align-items: center;
  101. .bot_text {
  102. width: 50%;
  103. height: 70rpx;
  104. line-height: 70rpx;
  105. border-radius: 10rpx;
  106. color: $my-color-primary;
  107. font-size: 32rpx;
  108. text-align: center;
  109. .chk {
  110. transform:scale(0.7);
  111. }
  112. }
  113. .bot_text_hover_color {
  114. background-color: $my-color-btn-background;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. </style>