index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. <template>
  2. <view>
  3. <!-- #ifdef APP -->
  4. <u-no-network zIndex='9999' @retry='retry'></u-no-network>
  5. <!-- #endif -->
  6. <view v-if="isConnected">
  7. <block v-if="isLogin && car_info.car_sn">
  8. <view class="container-view">
  9. <!-- #ifdef MP-WEIXIN -->
  10. <view :style="{height: `${statusBarHeight + 30}px`}"></view>
  11. <!-- #endif -->
  12. <!-- #ifdef APP -->
  13. <view :style="{height: `${statusBarHeight}px`}"></view>
  14. <!-- #endif -->
  15. <!-- <navBar type="index" /> -->
  16. <view class="flex-row flex-between align-center padding_about_40">
  17. <view class="car-name-view" @tap="navSwitchCar">
  18. <text class="text" style="margin-right: 10rpx;">{{car_info.car_name}}</text>
  19. <img src="https://qiniu.bms16.com/FoSXDpVGvbdmwbX3CMUBvR7X4IzI"
  20. style="width: 14rpx;height: 14rpx;" alt="">
  21. </view>
  22. <view @click="routerLink('/pages/message/index?isSys=0')" class="news">
  23. <view v-if="newsList.device_count > 0" class="num">
  24. {{ newsList.device_count}}
  25. </view>
  26. <image src="https://qiniu.bms16.com/FtlfBtBE5-TeTI5EdrciX_u8u_Sx"
  27. style="width: 48rpx;height: 48rpx;" mode=""></image>
  28. </view>
  29. </view>
  30. <view v-if="isOverdueShow" class="overdue-view flex-row flex-between">
  31. <view class="overdue-view-text flex-row">
  32. <text class="overdue-text-left">您已逾期
  33. <text class="overdue-num">
  34. <block v-if="orderInfo.hire_duration_time">
  35. {{orderInfo.hire_duration_time.day > 0 ? orderInfo.hire_duration_time.day :'' }}<text
  36. v-if="orderInfo.hire_duration_time.day>0">日</text>{{orderInfo.hire_duration_time.hour > 0 ? orderInfo.hire_duration_time.hour :'' }}<text
  37. v-if="orderInfo.hire_duration_time.hour>0">小时</text>{{orderInfo.hire_duration_time.minute > 0 ? orderInfo.hire_duration_time.minute :'' }}<text
  38. v-if="orderInfo.hire_duration_time.minute>0">分</text>
  39. </block>
  40. </text>
  41. </text>
  42. <text style="font-size: 24rpx;opacity: 0.5;">请及时续费或归还车辆</text>
  43. </view>
  44. <view @click="routerLink('/pages/order/order')" class="renew-btn">去续费</view>
  45. </view>
  46. <view class="car-img-view" >
  47. <view class="flex-row flex-between" style="align-items: center;">
  48. <text class="quantity flex-row">{{car_info.soc}} <text
  49. style="font-size: 28rpx;font-weight: 500;">%</text></text>
  50. <view @tap.stop="tapReturnCar" class="return-car-btn flex-row">
  51. <image style="width: 46rpx;height: 46rpx;" src="https://qiniu.bms16.com/FtyG7Gq2QBaVVrZmTnmZFzXhE5nN" mode=""></image>
  52. <view style="margin-left: 12rpx;">我要还车</view>
  53. </view>
  54. </view>
  55. <view class="quantity-view flex-row">
  56. <u-line-progress style="width: 100rpx;" active-color="#2ADA62" height="10"
  57. :show-percent="false" :percent="car_info.soc"></u-line-progress>
  58. <view class="quantity-text flex-row">
  59. <view style="font-weight:400;font-size: 22rpx;width: 44rpx;">{{$t("续航")}}</view>
  60. <view style="font-size: 36rpx;">{{formatDistance(car_info.remain_mail) }}<text style="font-size: 30rpx;">{{car_info.remain_mail ? car_info.remain_mail>1000?'km':'m' :'km'}}</text></view>
  61. </view>
  62. </view>
  63. <!-- <img :src="car_info.model_images||'https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX'" style="width: 100%;height: 526rpx;" alt=""> -->
  64. <!-- <img :src="'https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX'"
  65. style="width: 100%;height: 526rpx;" alt=""> -->
  66. <view class="custom-swiper-view">
  67. <u-swiper @click="toMoreInfoPage" v-if="car_image.length!=0" :list="car_image" :autoplay="false" mode="none"
  68. :height="480" bgColor="transparent" class="custom-swiper">
  69. </u-swiper>
  70. <image @click="toMoreInfoPage" v-else style="width: 100%;height: 480rpx;" src="https://qiniu.bms16.com/Fg8_p7083jpsy8BXG4bR6yMs7jQX" mode="">
  71. </image>
  72. </view>
  73. <view class="flex-row align-center update-time-view">
  74. <text style="margin-right: 10rpx;">{{car_info.online==1&&car_info.acc_state==1?$t("车辆已开机"): $t("车辆已关机")}} </text>
  75. <text v-if="car_info.heart_time != 0" style="margin-right: 10rpx;">{{$t("更新于")}} {{tools.formatTime( car_info.heart_time|| '')}}</text>
  76. <img :src="'https://qiniu.bms16.com/'+(isBluethConnect?'Fk3f9H_o-1Wq2xXx7I_xo7bxK1xJ':'FsL6XWGoIhfsVB7jRg6EGFVsuaTZ')"
  77. :style="{width: (isBluethConnect?32:24)+'rpx',height: '32rpx'}" alt="">
  78. </view>
  79. </view>
  80. <Control :contrilList="contrilList" @toBluetooth="inductiveUnlockHandle" @loadCarDetail="loadCarDetail"/>
  81. <view :class="['flex-row', 'flex-between', 'map-card-view',car_info.exchange_package_info && car_info.exchange_package_info.activity_time?'height_362':'height_260']">
  82. <MapCard :car_info="car_info" :height="!!(car_info.exchange_package_info && car_info.exchange_package_info.activity_time)"/>
  83. <view class="card-right">
  84. <view class="card-bg" @tap="navTravelingTrack">
  85. <view class="flex-row flex-between card-top-title">
  86. <view class="flex-row align-center">
  87. <img style="width: 36rpx;height: 36rpx;"
  88. src="https://qiniu.bms16.com/FkrcMCV__HraZ0W0NBNdEZPIlwss" alt="">
  89. <text class="margin_l_8">{{isTrackOrAll?'最近骑行':'总里程'}}</text>
  90. </view>
  91. <view @tap.stop="isTrackOrAll=!isTrackOrAll"><img
  92. style="width: 24rpx;height: 20rpx;"
  93. src="https://qiniu.bms16.com/FltPK-o7KGS3dQ2pfQHXGSxOdzaN" alt=""></view>
  94. </view>
  95. <view class="card-top-text">{{car_info.current_mail}}<text class="font_24">km</text>
  96. </view>
  97. </view>
  98. <view v-if="car_info.exchange_package_info && car_info.exchange_package_info.activity_time" class="card-bg">
  99. <view class="flex-row card-top-title">
  100. <img style="width: 36rpx;height: 36rpx;"
  101. src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
  102. <text class="margin_l_8">{{$t("换电套餐")}}</text>
  103. </view>
  104. <view v-if="car_info.package_type == 1" class="card-top-text">
  105. {{calculateRemainingDays(car_info.exchange_package_info.expire_time)}} <text
  106. class="font_24">{{$t("天")}}</text>
  107. </view>
  108. <view v-if="car_info.package_type == 2" class=" card-top-text">{{item.last_num}} <text
  109. class="font_24">{{$t("次")}}</text></view>
  110. <view v-if="car_info.package_type == 3" class=" card-top-text">
  111. {{item.total_day}}{{$t("天")}}/{{item.last_num}} <text
  112. class="font_24">{{$t("次")}}</text>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- <custom-switch :defaultPosition="'right'" :width="'400rpx'"
  118. :height="'96rpx'" v-model="switchValue" :fetchData="loadData"></custom-switch> -->
  119. <view class="config-view">
  120. <view @tap="navToPage" class="flex-row config-car-view">
  121. <view class="margin_r_20"><img class="icon_style_64"
  122. src="https://qiniu.bms16.com/Ftzyvs5whxDdMFksYChHaWKVb0Uk" alt=""></view>
  123. <view class="flex-row config-text-view" @tap="inductiveUnlockHandle">
  124. <view class="flex-row font_w_600">{{$t("感应解锁")}}</view>
  125. <view class="flex-row tip-text-config">{{isBluethConnect?$t("蓝牙配对成功"):$t("请先连接蓝牙")}}
  126. </view>
  127. </view>
  128. <img class="icon_style_28" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm"
  129. alt="">
  130. </view>
  131. <view @tap="navToPage" data-url="/pages/userManagement/userManagement"
  132. class="flex-row config-car-view">
  133. <view class="margin_r_20"><img class="icon_style_64"
  134. src="https://qiniu.bms16.com/FhKkijkN__9UzhYNgamBFSggIlYo" alt=""></view>
  135. <view class="flex-row config-text-view">
  136. <view class="flex-row font_w_600">{{$t("用车人管理")}}</view>
  137. <view class="flex-row tip-text-config">{{car_info.share_num + $t("个家庭账号")}}</view>
  138. </view>
  139. <img class="icon_style_28" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm"
  140. alt="">
  141. </view>
  142. <view @click="srcFn(`/pages/deviceInfo/deviceInfo`)" class="flex-row config-car-view">
  143. <view class="margin_r_20"><img class="icon_style_64"
  144. src="https://qiniu.bms16.com/FsAg6mHEBJfbtpgIHBrDdNiPo1iH" alt=""></view>
  145. <view class="flex-row config-text-view">
  146. <view class="flex-row font_w_600">{{$t("设备信息")}}</view>
  147. <view class="flex-row tip-text-config">{{$t("软件版本") + (car_info.firmware||'')}}</view>
  148. </view>
  149. <img class="icon_style_28" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm"
  150. alt="">
  151. </view>
  152. </view>
  153. <view style="height: 264rpx;"></view>
  154. </view>
  155. </block>
  156. <block v-else>
  157. <UnleasedPages :model_list="model_list" :img_list="img_list" />
  158. </block>
  159. <BluetoothUnlockAuth ref="bluetoothUnlockAuth" />
  160. <CustomTabbar @changCar='changCar' curt-tab="home" />
  161. <AndroidUnlockAuth :authStepList="authStepList" :value="isShowPermission" @closePermission="closePermission"
  162. v-if="isShowPermission && (platform === 'android')" />
  163. <IosUnlockAuth :authStepList="authStepList" :value="isShowPermission" @closePermission="closePermission"
  164. v-else-if="isShowPermission && (platform === 'ios')" />
  165. </view>
  166. <returnCar :isShowReturnCar="isShowReturnCar" typePage="index" @closeShowReturnCarBtn="()=>isShowReturnCar=false"
  167. @navStoreBtn="navStoreBtn" @immediatelyReturnBtn="immediatelyReturnBtn" />
  168. </view>
  169. </template>
  170. <script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>
  171. <script module="tools" lang="sjs" src="@/pages/common/wxs/tools.sjs"></script>
  172. <script>
  173. var config = require('@/common/config.js');
  174. var config_gyq = require('@/common/config_gyq.js');
  175. var common = require('@/common/common.js');
  176. var http = require('@/common/http.js');
  177. var request = require('@/common/request.js');
  178. var storage = require('@/common/storage.js');
  179. import Control from './components/control/control'
  180. import MapCard from './components/mapCard/mapCard'
  181. import UnleasedPages from './components/unleasedPages/unleasedPages'
  182. import CustomTabbar from '@/component/customTabbar/index';
  183. import BluetoothUnlockAuth from '../bluetoothUnlock/bluetoothUnlockAuth.vue'
  184. import AndroidUnlockAuth from './components/AndroidUnlockAuth.vue'
  185. import IosUnlockAuth from './components/IosUnlockAuth.vue'
  186. import ReturnCar from '@/component/returnCar/returnCar';
  187. import {
  188. getFunctionTag,
  189. } from '@/common/storage.js';
  190. import permision from "@/js_sdk/wa-permission/permission.js"
  191. let bluetooth = require('@/common/bluetooth.js');
  192. export default {
  193. data() {
  194. return {
  195. isModel: false,
  196. isConnected: false,
  197. statusBarHeight: 0,
  198. newsList: {},
  199. img_list: [],
  200. isLogin: false,
  201. isOverdueShow: false,
  202. contrilList: [],
  203. isTrackOrAll: true,
  204. model_list: [],
  205. car_list: [], //用户车辆列表
  206. car_sn: '', //当前车辆编号
  207. isHideInduction: true,
  208. car_info: {
  209. exchange_package_info: {
  210. activity_time: 0
  211. }
  212. },
  213. platform: 'android', //手机型号
  214. isShowPermission: false, //是否打开权限弹窗
  215. statusBarHeight: 0,
  216. isBluethConnect: false, //当前是否蓝牙连接或者配对
  217. isOpenAllPermission: false, //所有蓝牙配对所需权限是否已开启
  218. isShowReturnCar:false,
  219. overdueData:{},
  220. car_image:[]
  221. };
  222. },
  223. computed: {},
  224. components: {
  225. Control,
  226. MapCard,
  227. CustomTabbar,
  228. UnleasedPages,
  229. BluetoothUnlockAuth,
  230. AndroidUnlockAuth,
  231. IosUnlockAuth,
  232. ReturnCar
  233. },
  234. /**
  235. * 生命周期函数--监听页面加载
  236. */
  237. onLoad: function(options) {
  238. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight || 0
  239. let _this = this
  240. // #ifdef APP
  241. uni.getNetworkType({
  242. success: (res) => {
  243. if (res.networkType == 'none') {
  244. this.isConnected = false;
  245. } else {
  246. this.isConnected = true;
  247. }
  248. }
  249. });
  250. uni.onNetworkStatusChange((res) => {
  251. _this.isConnected = res.isConnected
  252. if (res.isConnected) {
  253. _this.init()
  254. }
  255. });
  256. // #endif
  257. // #ifndef APP
  258. this.isConnected = true
  259. _this.init()
  260. // #endif
  261. },
  262. /**
  263. * 生命周期函数--监听页面显示
  264. */
  265. onShow: function() {
  266. // #ifdef APP
  267. uni.getNetworkType({
  268. success: (res) => {
  269. if (res.networkType != 'none') {
  270. this.init()
  271. }
  272. }
  273. });
  274. // #endif
  275. // #ifndef APP
  276. this.init()
  277. // #endif
  278. },
  279. // 分享给好友
  280. onShareAppMessage: function(res) { //发送给朋友
  281. return {
  282. title: this.appConfig.app_name,
  283. path: 'pages/index/index',
  284. }
  285. },
  286. methods: {
  287. init() {
  288. this.loadModelList()
  289. this.contrilList = getFunctionTag().activeTag
  290. const user_token = storage.getUserToken()
  291. this.car_info = uni.getStorageSync('car_info') || {};
  292. const app = getApp();
  293. this.isBluethConnect = app.globalData.nearLockCheck
  294. if (!user_token) return
  295. this.newsNumFn()
  296. this.isLogin = true
  297. this.loadUserCarList()
  298. // #ifdef APP
  299. //蓝牙配对所需权限 运行小程序需要隐藏
  300. // const permissionArr = permision.requestAndroidPermissions(this.platform)
  301. // console.log(permissionArr, 'permissionArr');
  302. // this.setData({
  303. // authStepList: permissionArr
  304. // })
  305. // permissionArr.map(item => {
  306. // if (!item.state) this.isOpenAllPermission = true
  307. // })
  308. // #endif
  309. // if (!this.car_info.car_sn) {
  310. // } else {
  311. // this.loadCarDetail(this.car_info.car_sn)
  312. // }
  313. },
  314. retry() {
  315. },
  316. async newsNumFn() {
  317. let {
  318. data
  319. } = await request.postApi(config_gyq.API_FLK_MESSAGE_UNREAD_COUNT, {})
  320. if (data.code == 200) {
  321. this.newsList = data.data
  322. }
  323. },
  324. changCar(e) {
  325. this.car_info = e
  326. },
  327. routerLink(url) {
  328. uni.navigateTo({
  329. url
  330. })
  331. },
  332. loadIsLogin() {
  333. uni.navigateTo({
  334. url: '/pages/loginRegister/login',
  335. })
  336. },
  337. toMoreInfoPage() {
  338. uni.navigateTo({
  339. url: '/pages/moreInfo/moreInfo',
  340. });
  341. },
  342. navTravelingTrack() {
  343. uni.navigateTo({
  344. url: '/pages/travelingTrack/travelingTrack?longitude=' + this.longitude + '&latitude=' + this
  345. .latitude,
  346. success: function(res) {},
  347. fail: function(res) {},
  348. complete: function(res) {}
  349. });
  350. },
  351. inductiveUnlockHandle() {
  352. uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
  353. // console.log(!this.isOpenAllPermission,this.isBluethConnect,'this.isBluethConnect');
  354. // if(this.isBluethConnect){
  355. // uni.navigateTo({ url: '/pages/bluetoothUnlock/unlockSet' })
  356. // }else{
  357. // if(!this.isOpenAllPermission){
  358. // common.simpleToast('所需权限开启成功,前往开启蓝牙配对...');
  359. // uni.navigateTo({ url: '/pages/bluetoothUnlock/bluetoothPair' })
  360. // }else{
  361. // this.setData({
  362. // isShowPermission:true,
  363. // })
  364. // }
  365. // }
  366. },
  367. closePermission() {
  368. this.setData({
  369. isShowPermission: false
  370. })
  371. },
  372. showInduction() {
  373. this.isHideInduction = true
  374. },
  375. loadModelList() {
  376. if (this.isModel) {
  377. return
  378. }
  379. this.isModel = true
  380. const me = this
  381. http.postApi(config.API_RECOMMEND_CAR_MODEL_LIST, {}, (resp) => {
  382. if (resp.data.code === 200) {
  383. const list = resp.data.data
  384. const img_list = resp.data.data.map(item => item.image)
  385. me.setData({
  386. model_list: list,
  387. img_list: img_list
  388. })
  389. } else {
  390. common.simpleToast(resp.data.msg);
  391. }
  392. })
  393. },
  394. srcFn(url) {
  395. uni.navigateTo({
  396. url: url
  397. });
  398. },
  399. navToPage(e) {
  400. const me = this
  401. const url = e.currentTarget.dataset.url;
  402. if (!url) {
  403. return;
  404. }
  405. uni.navigateTo({
  406. url: url
  407. });
  408. },
  409. loadUserCarList() {
  410. const me = this
  411. http.postApi(config.API_FLK_CAR_DEVICE_LIST, {}, (resp) => {
  412. if (resp.data.code === 200) {
  413. const list = resp.data.data.list
  414. let isCar = false
  415. let itemCar = {}
  416. for (let i = 0; i < list.length; i++) {
  417. let item = list[i];
  418. if (item.car_sn == this.car_info.car_sn) {
  419. isCar = true
  420. itemCar = item
  421. }
  422. }
  423. if (!isCar) {
  424. if (list.length > 0) {
  425. uni.removeStorageSync('car_info')
  426. me.setData({
  427. car_list: list,
  428. car_sn: list[0].car_sn || '',
  429. })
  430. me.loadCarDetail(list[0].car_sn)
  431. } else {
  432. uni.removeStorageSync('car_info')
  433. this.car_info = {}
  434. }
  435. } else {
  436. me.loadCarDetail(itemCar.car_sn)
  437. }
  438. } else {
  439. common.simpleToast(resp.data.msg);
  440. }
  441. })
  442. },
  443. loadCarDetail(car_sn) {
  444. const me = this
  445. http.postApi(config.API_FLK_CAR_DETAIL, {
  446. car_sn
  447. }, (resp) => {
  448. uni.hideLoading();
  449. console.log(resp.data)
  450. if (resp.data.code === 200) {
  451. resp.data.data.car_sn = car_sn
  452. const _car_image=resp.data.data.model_images?resp.data.data.model_images.split(','):[]
  453. me.setData({
  454. car_info: resp.data.data,
  455. car_image:_car_image
  456. })
  457. uni.setStorageSync('car_info', this.car_info);
  458. console.log(_car_image, 'this.car_info------------------');
  459. //判断逾期
  460. if (!resp.data.data.sold_time) return
  461. let time = Math.ceil(resp.data.data.hire_end_time - Math.floor(new Date()) / 1000) / 60
  462. if (time > 0) {
  463. this.isOverdueShow = true
  464. this.car_info.hire_end_time = common.getTimeToDay(time)
  465. } else {
  466. this.isOverdueShow = false
  467. }
  468. } else {
  469. // common.simpleToast(resp.data.msg);
  470. }
  471. })
  472. },
  473. navSwitchCar() {
  474. const me = this
  475. //如果租/购多个车辆的话可以切换当前车辆
  476. uni.navigateTo({
  477. url: `/pages/carList/carList?list=${encodeURIComponent(JSON.stringify(me.car_list))}&car_sn=${me.car_sn}`,
  478. })
  479. },
  480. formatDistance(distanceMeters) {
  481. console.log(distanceMeters,'distanceMeters');
  482. // 判断距离是否超过1000米
  483. // let distanceMeters=Number(_distanceMeters)
  484. if (distanceMeters >= 1000) {
  485. // 如果超过1000米,则转换为千米并返回
  486. return (distanceMeters / 1000).toFixed(1);
  487. } else {
  488. // 否则直接返回米
  489. try {
  490. return distanceMeters;
  491. } catch (error) {
  492. return 0;
  493. }
  494. }
  495. },
  496. navStoreBtn() {
  497. const {
  498. latitude,
  499. longitude,
  500. address,
  501. model_name
  502. } = this.car_info
  503. uni.openLocation({
  504. latitude: latitude - 0,
  505. longitude: longitude - 0,
  506. scale: 15,
  507. name: model_name,
  508. address: address,
  509. success: function(res) {}
  510. });
  511. },
  512. tapReturnCar() {
  513. this.overdueMoneyFn(this.car_info.car_sn)
  514. this.setData({
  515. isShowReturnCar: true
  516. })
  517. },
  518. //逾期费用计算
  519. async overdueMoneyFn(car_sn) {
  520. let {
  521. data
  522. } = await request.postApi(config_gyq.API_FLK_CAR_OVERDUE_MONEY, {
  523. car_sn
  524. })
  525. if (data.code == 200) {
  526. this.overdueData = data.data
  527. } else {
  528. common.simpleToast(data.msg)
  529. }
  530. },
  531. immediatelyReturnBtn() {
  532. const {
  533. car_sn,
  534. model_id
  535. } = this.car_info
  536. //提交还车图片
  537. uni.navigateTo({
  538. url: `/pages/activation/activation?isReturnCar=${true}&model_id=${model_id}&car_sn=${car_sn}&isOverdue=${this.isOverdueShow}&overdueMoney=${this.overdueData.money}&overdueTime=${this.overdueData.time}&type=index`
  539. });
  540. },
  541. }
  542. };
  543. </script>
  544. <style lang="scss" scoped>
  545. @import './index.css';
  546. .news {
  547. position: relative;
  548. margin-right: 20rpx;
  549. .num {
  550. position: absolute;
  551. right: -6rpx;
  552. top: -6rpx;
  553. min-width: 28rpx;
  554. height: 28rpx;
  555. font-size: 18rpx;
  556. display: flex;
  557. align-items: center;
  558. justify-content: center;
  559. color: #fff;
  560. line-height: 1;
  561. background-color: #FA2918;
  562. border-radius: 50%;
  563. z-index: 99;
  564. }
  565. }
  566. </style>