Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

operation-tips.vue 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <!-- 设备激活1-操作提示 -->
  2. <template>
  3. <view class="main">
  4. <view class="t-card">
  5. <view class="center">
  6. <image class="center-bg" :src="`${$imgUrl}bluetooth/device-active-bg.png`" mode="widthFix" style="width: 100%;">
  7. </image>
  8. <view class="dialog-content first">
  9. <image :src="`${$imgUrl}bluetooth/device-active-left.png`" mode="widthFix"></image>
  10. <view class="dialog-text">
  11. <text class="orange" space="emsp"> &nbsp;&nbsp;&nbsp;&nbsp;撕掉双面胶背面贴纸</text>
  12. 贴在汽车前挡风玻璃并用力按紧。
  13. </view>
  14. </view>
  15. <view class="dialog-content second">
  16. <image :src="`${$imgUrl}bluetooth/device-active-top.png`" mode="widthFix"></image>
  17. <view class="dialog-text">
  18. &nbsp;&nbsp;&nbsp;&nbsp;请你在<text class="orange">激活前</text>将<text class="green">OBU</text>贴在申办车辆挡风玻璃<text
  19. class="orange">后视镜附近阴影区域</text>。
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- <view class="hint">
  25. <image :src="`${$imgUrl}common/icon-hint.png`" class="icon"></image>
  26. <view>激活时,确保OBU蓝牙和手机蓝牙处于打开状态。</view>
  27. </view> -->
  28. <view class="hint">
  29. <view class="txt">
  30. <view>重要提示</view>
  31. </view>
  32. <view class="grey-txt"><view class="point"></view>激活前必须将ETC设备安装到相应车辆上,确保安装车辆信息与激活后OBU内信息一致后才能正常使用。</view>
  33. <view class="grey-txt"><view class="point"></view>如因激活的ETC设备未安装到对应车辆上产生的异常扣费,我司不承担任何赔偿责任。</view>
  34. <view class="grey-txt"><view class="point"></view>激活时,需要录入您的车牌号和手机号并确保OBU蓝牙和手机蓝牙处于打开状态。</view>
  35. </view>
  36. <!-- <view class="action">
  37. <button type="default" class="ui-btn" @click="gotoNextStep">
  38. 已知悉,下一步
  39. </button>
  40. </view> -->
  41. <FixedFooter>
  42. <button type="default" class="ui-btn" @click="gotoNextStep">
  43. 已知悉,下一步
  44. </button>
  45. </FixedFooter>
  46. </view>
  47. </template>
  48. <script setup lang="ts">
  49. import {
  50. msg,
  51. navTo,
  52. noticeUser
  53. } from '@/utils/utils';
  54. import { setItem,getItem } from "@/utils/storage";
  55. import { onLoad } from "@dcloudio/uni-app";
  56. import FixedFooter from '@/components/common/FixedFooter.vue'
  57. let transfer = 0;
  58. let isAfter = '';
  59. onLoad((option) => {
  60. console.log(option);
  61. const orderInfo = {
  62. orderId: "",
  63. id: "",
  64. cardStatus: "",
  65. obuStatus: "",
  66. }
  67. orderInfo.id = option.id;
  68. orderInfo.orderId = option.orderId;
  69. transfer = option.transfer;
  70. isAfter = option.isAfter;
  71. setItem("orderInfo", orderInfo)
  72. console.log(orderInfo,"mpOpenId",getItem('mpOpenId'));
  73. if(!getItem('mpOpenId')){
  74. navTo(`/subpackage/after-sale/wxWebView`)
  75. }
  76. })
  77. const gotoNextStep = () => {
  78. uni.openBluetoothAdapter({
  79. success(res) {
  80. noticeUser(() => {
  81. console.log("11111")
  82. /* 判断是否打开蓝牙 */
  83. uni.getBluetoothAdapterState({
  84. success(res) {
  85. console.log("2222", res)
  86. //如果res.avaliable==false 说明没打开蓝牙 反之则打开
  87. if (res.available == false) {
  88. uni.showToast({
  89. title: '请打开手机蓝牙',
  90. icon: "error",
  91. duration: 2000
  92. })
  93. return
  94. } else {
  95. navTo(`/subpackage/after-sale/activation/operation-upload?transfer=${transfer}&&isAfter=${isAfter}`)
  96. }
  97. }
  98. })
  99. });
  100. },
  101. fail(err) {
  102. uni.showModal({
  103. title: '提示',
  104. content: '请打开小程序蓝牙权限和微信蓝牙权限',
  105. success: function (res) {
  106. if (res.confirm) {
  107. uni.openSetting({
  108. success(res) {
  109. console.log("2222")
  110. console.log(res.authSetting)
  111. }
  112. });
  113. } else if (res.cancel) {
  114. console.log('用户点击取消');
  115. }
  116. }
  117. });
  118. }
  119. })
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. .main {
  124. padding-bottom: 200rpx;
  125. background: #E9EDF0;
  126. position: relative;
  127. min-height: 100vh;
  128. box-sizing: border-box;
  129. .action {
  130. position: absolute;
  131. bottom: 0rpx;
  132. left: 0;
  133. height: 128rpx;
  134. background-color: #fff;
  135. border-radius: 30rpx 30rpx 0 0;
  136. width: 100vw;
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. flex-direction: column;
  141. }
  142. .title {
  143. font-size: 36rpx;
  144. color: #333333;
  145. font-weight: 600;
  146. text-align: center;
  147. padding: 48rpx 0px;
  148. }
  149. .t-card {
  150. padding-top: 70rpx;
  151. background-color: #fff;
  152. }
  153. .center {
  154. width: 100%;
  155. height: auto;
  156. position: relative;
  157. .center-bg {
  158. width: 100%;
  159. }
  160. .dialog-content {
  161. position: absolute;
  162. image {
  163. width: 100%;
  164. }
  165. .dialog-text {
  166. position: absolute;
  167. font-size: 26rpx;
  168. line-height: 40rpx;
  169. color: #666;
  170. .orange {
  171. color: #FF8000;
  172. }
  173. .green {
  174. color: #00B38B;
  175. }
  176. }
  177. }
  178. .first {
  179. width: 419rpx;
  180. height: 144rpx;
  181. top: -40rpx;
  182. left: 250rpx;
  183. .dialog-text {
  184. width: calc(100% - 108rpx);
  185. left: 90rpx;
  186. top: 15rpx;
  187. }
  188. }
  189. .second {
  190. width: 403rpx;
  191. height: 217rpx;
  192. bottom: 200rpx;
  193. right: 115rpx;
  194. .dialog-text {
  195. width: calc(100% - 50rpx);
  196. left: 30rpx;
  197. top: 80rpx;
  198. }
  199. }
  200. }
  201. .hint {
  202. margin: 40rpx 30rpx 0px;
  203. .txt {
  204. font-family: MicrosoftYaHei;
  205. font-size: 32rpx;
  206. color: #111111;
  207. line-height: 35rpx;
  208. }
  209. .grey-txt {
  210. font-family: MicrosoftYaHei;
  211. font-size: 28rpx;
  212. color: #999999;
  213. line-height: 48rpx;
  214. display: flex;
  215. margin-top: 20rpx;
  216. .point{
  217. margin-top: 19rpx;
  218. flex-shrink: 0;
  219. width: 10rpx;
  220. height: 10rpx;
  221. background: #A0A0A0;
  222. margin-right: 16rpx;
  223. border-radius: 50%;
  224. }
  225. }
  226. }
  227. .btn {
  228. margin: 70rpx 40rpx;
  229. }
  230. }
  231. .red {
  232. display: inline-block;
  233. color: red;
  234. background-color: red;
  235. width: 26rpx;
  236. height: 26rpx;
  237. border-radius: 100%;
  238. }
  239. </style>