instructions.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="content">
  3. <view class="container">
  4. <view class="item_warp">
  5. <view class="title">使用说明</view>
  6. <view class="item">
  7. <view class="text">1.点【扫码连接】,扫描水表中的二维码;</view>
  8. <view class="text">2.待进度显示“数据通讯”后,点【开启设备】启动水表;</view>
  9. <view class="text">3.在水表上手动滑动,可启动、暂停、停止用水;手机APP也可直接停止用水。</view>
  10. <view class="text">4.示意图如下:</view>
  11. <view class="img">
  12. <image class="img_scan" src="https://wanzai-1306339220.cos.ap-shanghai.myqcloud.com/excelModel/qr-code.png" mode=""></image>
  13. </view>
  14. <view class="bot">
  15. <label class="bot_text" @tap="child_noshow" hover-class="bot_text_hover_color">
  16. <checkbox class="chk" />
  17. <text>以后不再出现</text>
  18. </label>
  19. <text class="bot_text" @tap="child_cancel" hover-class="bot_text_hover_color">我知道了</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. chk: false
  31. }
  32. },
  33. methods: {
  34. child_noshow(e) {
  35. this.chk = !this.chk
  36. this.$emit('parent_noshow', this.chk)
  37. },
  38. child_cancel() {
  39. this.$emit('parent_cancel', false)
  40. }
  41. }
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. .content {
  46. width: 100%;
  47. height: 100%;
  48. .container {
  49. width: 100%;
  50. height: 100%;
  51. position: fixed;
  52. top: 0;
  53. left: 0;
  54. background: rgba(0, 0, 0, 0.4);
  55. .item_warp {
  56. width: 650rpx;
  57. position: absolute;
  58. top: 50%;
  59. left: 50%;
  60. transform: translate(-50%, -50%);
  61. padding: 40rpx 50rpx;
  62. box-sizing: border-box;
  63. background: #fff;
  64. border-radius: 10rpx;
  65. .title {
  66. font-size: 32rpx;
  67. color: #000;
  68. font-weight: bold;
  69. text-align: center;
  70. margin-bottom: 30rpx;
  71. }
  72. .text {
  73. font-size: 32rpx;
  74. color: #333;
  75. line-height: 40rpx;
  76. margin-bottom: 20rpx;
  77. text-indent: 2em;
  78. }
  79. .img {
  80. text-align: center;
  81. margin: 30rpx 0;
  82. .img_scan {
  83. width: 300rpx;
  84. height: 200rpx;
  85. }
  86. }
  87. .bot {
  88. display: flex;
  89. flex-direction: row;
  90. justify-content: space-around;
  91. align-items: center;
  92. .bot_text {
  93. width: 50%;
  94. height: 70rpx;
  95. line-height: 70rpx;
  96. border-radius: 10rpx;
  97. color: $my-color-primary;
  98. font-size: 32rpx;
  99. text-align: center;
  100. .chk {
  101. transform: scale(0.7);
  102. }
  103. }
  104. .bot_text_hover_color {
  105. background-color: $my-color-btn-background;
  106. }
  107. }
  108. }
  109. }
  110. }
  111. </style>