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

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