| | |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; |
| | | import { mapState } from 'vuex' |
| | | import { BaseUrl } from '@/api/publicInterface.js' |
| | | export default { |
| | | components: { |
| | | combinedTitle, |
| | |
| | | fleetId: '', |
| | | xsUserId: '', |
| | | customerId: '', |
| | | isFirstLogin: true //是否是第一次登录 |
| | | isFirstLogin: true, //是否是第一次登录 |
| | | phone: "", |
| | | isFirstTime: false //是否是登录进入首页,还是别的页面返回 false是登录 true是别的页面 |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | }, |
| | | init() { |
| | | this.qiangDanList(); |
| | | if (!this.isFirstTime) { |
| | | this.getLogOn() |
| | | } |
| | | }, |
| | | // 司机首页列表 |
| | | qiangDanList() { |
| | |
| | | }, |
| | | list3CardIconClick(value) { |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${value.id}&yyId=${value.yyId}` |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${value.id}&yyId=${value.yyId}&orderType=${value.orderType}` |
| | | }); |
| | | }, |
| | | // 提煤单详情 |
| | |
| | | noobTour() { |
| | | this.$refs.previewImage.open('https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj1.png') |
| | | }, |
| | | getLogOn() { |
| | | this.isFirstTime = true |
| | | this.$reqGet('getUserEntity').then(res => { |
| | | this.phone = res.data.phone |
| | | }).then(() => { |
| | | uni.request({ |
| | | url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`, |
| | | success: res => { |
| | | // res.data.data 为1 代表第一次登录 为0取消学习指引 为2 代表存在 |
| | | if (res.data.data === 1) { |
| | | this.noobTour() |
| | | } else if (res.data.data === 2) { |
| | | this.isFirstLogin = true |
| | | } else { |
| | | this.isFirstLogin = false |
| | | } |
| | | } |
| | | }); |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |