Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

operation-tips.vue 5.3KB

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