You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

operation-tips.vue 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!-- 设备激活1-操作提示 -->
  2. <template>
  3. <view class="main">
  4. <view class="center">
  5. <image class="center-bg" :src="`${$imgUrl}bluetooth/device-active-bg.png`" mode="widthFix"
  6. style="width: 100%;"></image>
  7. <view class="dialog-content first">
  8. <image :src="`${$imgUrl}bluetooth/device-active-left.png`" mode="widthFix"></image>
  9. <view class="dialog-text">
  10. <text class="orange" space="emsp"> &nbsp;&nbsp;&nbsp;&nbsp;撕掉双面胶背面贴纸</text>
  11. 贴在汽车前挡风玻璃并用力按紧。
  12. </view>
  13. </view>
  14. <view class="dialog-content second">
  15. <image :src="`${$imgUrl}bluetooth/device-active-top.png`" mode="widthFix"></image>
  16. <view class="dialog-text">
  17. &nbsp;&nbsp;&nbsp;&nbsp;请你在<text class="orange">激活前</text>将<text
  18. class="green">OBU</text>贴在申办车辆挡风玻璃<text class="orange">后视镜附近阴影区域</text>。
  19. </view>
  20. </view>
  21. </view>
  22. <!-- <view class="hint">
  23. <image :src="`${$imgUrl}common/icon-hint.png`" class="icon"></image>
  24. <view>激活时,确保OBU蓝牙和手机蓝牙处于打开状态。</view>
  25. </view> -->
  26. <view class="hint">
  27. <view class="orange-txt ">
  28. <text class="red"></text>
  29. <view style="margin: 0 24rpx;">重要提示</view>
  30. <text class="red"></text>
  31. </view>
  32. <view class="grey-txt">1.激活前必须将ETC设备安装到相应车辆上,确保安装车辆信息与激活后OBU内信息一致后才能正常使用。</view>
  33. <view class="grey-txt">2.如因激活的ETC设备未安装到对应车辆上产生的异常扣费,我司不承担任何赔偿责任。</view>
  34. <view class="grey-txt">3.激活时,需要录入您的车牌号和手机号并确保OBU蓝牙和手机蓝牙处于打开状态。</view>
  35. </view>
  36. <view class="btn">
  37. <submit-button @submit="gotoNextStep" title="已知悉,下一步"></submit-button>
  38. </view>
  39. </view>
  40. </template>
  41. <script setup lang="ts">
  42. import {
  43. msg,
  44. navTo,
  45. noticeUser
  46. } from '@/utils/utils';
  47. import { setItem } from "@/utils/storage";
  48. import { onLoad } from "@dcloudio/uni-app";
  49. let transfer = 0;
  50. onLoad((option) => {
  51. console.log(option);
  52. const orderInfo = {
  53. orderId: "",
  54. id: "",
  55. cardStatus: "",
  56. obuStatus: "",
  57. }
  58. orderInfo.orderId = option.orderId;
  59. orderInfo.id = option.id;
  60. orderInfo.cardStatus = option.cardStatus;
  61. orderInfo.obuStatus = option.obuStatus;
  62. transfer = option.transfer;
  63. setItem("orderInfo", orderInfo)
  64. console.log(orderInfo);
  65. })
  66. const gotoNextStep = () => {
  67. noticeUser(() => {
  68. uni.openBluetoothAdapter()
  69. /* 判断是否打开蓝牙 */
  70. uni.getBluetoothAdapterState({
  71. success(res) {
  72. //如果res.avaliable==false 说明没打开蓝牙 反之则打开
  73. if (res.available == false) {
  74. uni.showToast({
  75. title: '请打开手机蓝牙',
  76. icon: "error",
  77. duration: 2000
  78. })
  79. return
  80. } else {
  81. navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`)
  82. }
  83. }
  84. })
  85. });
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .main {
  90. padding-bottom: 40rpx;
  91. .title {
  92. font-size: 36rpx;
  93. color: #333333;
  94. font-weight: 600;
  95. text-align: center;
  96. padding: 48rpx 0px;
  97. }
  98. .center {
  99. width: 100%;
  100. height: auto;
  101. margin-top: 70rpx;
  102. position: relative;
  103. .center-bg {
  104. width: 100%;
  105. }
  106. .dialog-content {
  107. position: absolute;
  108. image {
  109. width: 100%;
  110. }
  111. .dialog-text {
  112. position: absolute;
  113. font-size: 26rpx;
  114. line-height: 40rpx;
  115. color: #666;
  116. .orange {
  117. color: #FF8000;
  118. }
  119. .green {
  120. color: #00B38B;
  121. }
  122. }
  123. }
  124. .first {
  125. width: 419rpx;
  126. height: 144rpx;
  127. top: -40rpx;
  128. left: 250rpx;
  129. .dialog-text {
  130. width: calc(100% - 108rpx);
  131. left: 90rpx;
  132. top: 15rpx;
  133. }
  134. }
  135. .second {
  136. width: 403rpx;
  137. height: 217rpx;
  138. bottom: 200rpx;
  139. right: 115rpx;
  140. .dialog-text {
  141. width: calc(100% - 50rpx);
  142. left: 30rpx;
  143. top: 80rpx;
  144. }
  145. }
  146. }
  147. .hint {
  148. margin: 0rpx 30rpx 0px;
  149. .orange-txt {
  150. font-size: 30rpx;
  151. color: #ff8000;
  152. text-align: center;
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. margin-bottom: 50rpx;
  157. image {
  158. width: 30rpx;
  159. height: 30rpx;
  160. margin-right: 10rpx;
  161. }
  162. }
  163. .grey-txt {
  164. font-size: 26rpx;
  165. color: #666666;
  166. line-height: 40rpx;
  167. margin-top: 16rpx;
  168. }
  169. }
  170. .btn {
  171. margin: 70rpx 40rpx;
  172. }
  173. }
  174. .grey-txt {
  175. font-size: 26rpx;
  176. color: #666666;
  177. line-height: 40rpx;
  178. margin-top: 16rpx;
  179. }
  180. .red {
  181. display: inline-block;
  182. color: red;
  183. background-color: red;
  184. width: 26rpx;
  185. height: 26rpx;
  186. border-radius: 100%;
  187. }
  188. </style>