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.7KB

1 anno fa
1 anno fa
1 anno fa
1 anno fa
2 anni fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. console.log("11111")
  69. uni.openBluetoothAdapter()
  70. /* 判断是否打开蓝牙 */
  71. uni.getBluetoothAdapterState({
  72. success(res) {
  73. console.log("2222",res)
  74. //如果res.avaliable==false 说明没打开蓝牙 反之则打开
  75. if (res.available == false) {
  76. uni.showToast({
  77. title: '请打开手机蓝牙',
  78. icon: "error",
  79. duration: 2000
  80. })
  81. return
  82. } else {
  83. navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`)
  84. }
  85. }
  86. })
  87. });
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .main {
  92. padding-bottom: 40rpx;
  93. .title {
  94. font-size: 36rpx;
  95. color: #333333;
  96. font-weight: 600;
  97. text-align: center;
  98. padding: 48rpx 0px;
  99. }
  100. .center {
  101. width: 100%;
  102. height: auto;
  103. margin-top: 70rpx;
  104. position: relative;
  105. .center-bg {
  106. width: 100%;
  107. }
  108. .dialog-content {
  109. position: absolute;
  110. image {
  111. width: 100%;
  112. }
  113. .dialog-text {
  114. position: absolute;
  115. font-size: 26rpx;
  116. line-height: 40rpx;
  117. color: #666;
  118. .orange {
  119. color: #FF8000;
  120. }
  121. .green {
  122. color: #00B38B;
  123. }
  124. }
  125. }
  126. .first {
  127. width: 419rpx;
  128. height: 144rpx;
  129. top: -40rpx;
  130. left: 250rpx;
  131. .dialog-text {
  132. width: calc(100% - 108rpx);
  133. left: 90rpx;
  134. top: 15rpx;
  135. }
  136. }
  137. .second {
  138. width: 403rpx;
  139. height: 217rpx;
  140. bottom: 200rpx;
  141. right: 115rpx;
  142. .dialog-text {
  143. width: calc(100% - 50rpx);
  144. left: 30rpx;
  145. top: 80rpx;
  146. }
  147. }
  148. }
  149. .hint {
  150. margin: 0rpx 30rpx 0px;
  151. .orange-txt {
  152. font-size: 30rpx;
  153. color: #ff8000;
  154. text-align: center;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. margin-bottom: 50rpx;
  159. image {
  160. width: 30rpx;
  161. height: 30rpx;
  162. margin-right: 10rpx;
  163. }
  164. }
  165. .grey-txt {
  166. font-size: 26rpx;
  167. color: #666666;
  168. line-height: 40rpx;
  169. margin-top: 16rpx;
  170. }
  171. }
  172. .btn {
  173. margin: 70rpx 40rpx;
  174. }
  175. }
  176. .grey-txt {
  177. font-size: 26rpx;
  178. color: #666666;
  179. line-height: 40rpx;
  180. margin-top: 16rpx;
  181. }
  182. .red {
  183. display: inline-block;
  184. color: red;
  185. background-color: red;
  186. width: 26rpx;
  187. height: 26rpx;
  188. border-radius: 100%;
  189. }
  190. </style>