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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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="btn">
  27. <submit-button @submit="gotoNextStep" title="已知悉,下一步"></submit-button>
  28. </view>
  29. </view>
  30. </template>
  31. <script setup lang="ts">
  32. import {
  33. msg,
  34. navTo,
  35. noticeUser
  36. } from '@/utils/utils';
  37. import { setItem } from "@/utils/storage";
  38. import { onLoad } from "@dcloudio/uni-app";
  39. let transfer = 0;
  40. onLoad((option) => {
  41. console.log(option);
  42. const orderInfo = {
  43. orderId: "",
  44. id: "",
  45. cardStatus: "",
  46. obuStatus: "",
  47. }
  48. orderInfo.orderId = option.orderId;
  49. orderInfo.id = option.id;
  50. orderInfo.cardStatus = option.cardStatus;
  51. orderInfo.obuStatus = option.obuStatus;
  52. transfer = option.transfer;
  53. setItem("orderInfo", orderInfo)
  54. console.log(orderInfo);
  55. })
  56. const gotoNextStep = () => {
  57. noticeUser(() => {
  58. uni.openBluetoothAdapter()
  59. /* 判断是否打开蓝牙 */
  60. uni.getBluetoothAdapterState({
  61. success(res) {
  62. //如果res.avaliable==false 说明没打开蓝牙 反之则打开
  63. if (res.available == false) {
  64. uni.showToast({
  65. title: '请打开手机蓝牙',
  66. icon: "error",
  67. duration: 2000
  68. })
  69. return
  70. } else {
  71. navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}`)
  72. }
  73. }
  74. })
  75. });
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .main {
  80. padding-bottom: 40rpx;
  81. .title {
  82. font-size: 36rpx;
  83. color: #333333;
  84. font-weight: 600;
  85. text-align: center;
  86. padding: 48rpx 0px;
  87. }
  88. .center {
  89. width: 100%;
  90. height: auto;
  91. margin-top: 70rpx;
  92. position: relative;
  93. .center-bg {
  94. width: 100%;
  95. }
  96. .dialog-content {
  97. position: absolute;
  98. image {
  99. width: 100%;
  100. }
  101. .dialog-text {
  102. position: absolute;
  103. font-size: 26rpx;
  104. line-height: 40rpx;
  105. color: #666;
  106. .orange {
  107. color: #FF8000;
  108. }
  109. .green {
  110. color: #00B38B;
  111. }
  112. }
  113. }
  114. .first {
  115. width: 419rpx;
  116. height: 144rpx;
  117. top: -40rpx;
  118. left: 250rpx;
  119. .dialog-text {
  120. width: calc(100% - 108rpx);
  121. left: 90rpx;
  122. top: 15rpx;
  123. }
  124. }
  125. .second {
  126. width: 403rpx;
  127. height: 217rpx;
  128. bottom: 200rpx;
  129. right: 115rpx;
  130. .dialog-text {
  131. width: calc(100% - 50rpx);
  132. left: 30rpx;
  133. top: 80rpx;
  134. }
  135. }
  136. }
  137. .hint {
  138. display: flex;
  139. flex-direction: row;
  140. justify-content: center;
  141. font-size: 26rpx;
  142. color: #666666;
  143. padding: 0px 30rpx;
  144. .icon {
  145. width: 36rpx;
  146. height: 36rpx;
  147. margin-right: 10rpx;
  148. }
  149. view {
  150. width: calc(100% - 36rpx);
  151. }
  152. }
  153. .btn {
  154. margin: 150rpx 40rpx 60px;
  155. }
  156. }
  157. </style>