Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

operation-tips.vue 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. let isAfter = '';
  51. onLoad((option) => {
  52. console.log(option);
  53. const orderInfo = {
  54. orderId: "",
  55. id: "",
  56. cardStatus: "",
  57. obuStatus: "",
  58. }
  59. orderInfo.orderId = option.orderId;
  60. orderInfo.id = option.id;
  61. orderInfo.cardStatus = option.cardStatus;
  62. orderInfo.obuStatus = option.obuStatus;
  63. transfer = option.transfer;
  64. isAfter = option.isAfter;
  65. setItem("orderInfo", orderInfo)
  66. console.log(orderInfo);
  67. })
  68. const gotoNextStep = () => {
  69. uni.openBluetoothAdapter({
  70. success(res) {
  71. noticeUser(() => {
  72. console.log("11111")
  73. /* 判断是否打开蓝牙 */
  74. uni.getBluetoothAdapterState({
  75. success(res) {
  76. console.log("2222", res)
  77. //如果res.avaliable==false 说明没打开蓝牙 反之则打开
  78. if (res.available == false) {
  79. uni.showToast({
  80. title: '请打开手机蓝牙',
  81. icon: "error",
  82. duration: 2000
  83. })
  84. return
  85. } else {
  86. navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}&&isAfter=${isAfter}`)
  87. }
  88. }
  89. })
  90. });
  91. },
  92. fail(err){
  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. </script>
  113. <style lang="scss" scoped>
  114. .main {
  115. padding-bottom: 40rpx;
  116. .title {
  117. font-size: 36rpx;
  118. color: #333333;
  119. font-weight: 600;
  120. text-align: center;
  121. padding: 48rpx 0px;
  122. }
  123. .center {
  124. width: 100%;
  125. height: auto;
  126. margin-top: 70rpx;
  127. position: relative;
  128. .center-bg {
  129. width: 100%;
  130. }
  131. .dialog-content {
  132. position: absolute;
  133. image {
  134. width: 100%;
  135. }
  136. .dialog-text {
  137. position: absolute;
  138. font-size: 26rpx;
  139. line-height: 40rpx;
  140. color: #666;
  141. .orange {
  142. color: #FF8000;
  143. }
  144. .green {
  145. color: #00B38B;
  146. }
  147. }
  148. }
  149. .first {
  150. width: 419rpx;
  151. height: 144rpx;
  152. top: -40rpx;
  153. left: 250rpx;
  154. .dialog-text {
  155. width: calc(100% - 108rpx);
  156. left: 90rpx;
  157. top: 15rpx;
  158. }
  159. }
  160. .second {
  161. width: 403rpx;
  162. height: 217rpx;
  163. bottom: 200rpx;
  164. right: 115rpx;
  165. .dialog-text {
  166. width: calc(100% - 50rpx);
  167. left: 30rpx;
  168. top: 80rpx;
  169. }
  170. }
  171. }
  172. .hint {
  173. margin: 0rpx 30rpx 0px;
  174. .orange-txt {
  175. font-size: 30rpx;
  176. color: #ff8000;
  177. text-align: center;
  178. display: flex;
  179. align-items: center;
  180. justify-content: center;
  181. margin-bottom: 50rpx;
  182. image {
  183. width: 30rpx;
  184. height: 30rpx;
  185. margin-right: 10rpx;
  186. }
  187. }
  188. .grey-txt {
  189. font-size: 26rpx;
  190. color: #666666;
  191. line-height: 40rpx;
  192. margin-top: 16rpx;
  193. }
  194. }
  195. .btn {
  196. margin: 70rpx 40rpx;
  197. }
  198. }
  199. .grey-txt {
  200. font-size: 26rpx;
  201. color: #666666;
  202. line-height: 40rpx;
  203. margin-top: 16rpx;
  204. }
  205. .red {
  206. display: inline-block;
  207. color: red;
  208. background-color: red;
  209. width: 26rpx;
  210. height: 26rpx;
  211. border-radius: 100%;
  212. }
  213. </style>