| | |
| | | <view class="wait-collection" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/diverbanner.png') no-repeat;background-size:contain"> |
| | | </view> |
| | | <!-- 引导页 --> |
| | | <view class="noob-tour" |
| | | v-if="roleType===3&&isFirstLogin"> |
| | | <combined-title title="操作指引"></combined-title> |
| | | <u-cell-group> |
| | | <u-cell title="新手指引" |
| | | name='1' |
| | | :clickable="true" |
| | | @click="noobTour"> |
| | | <u-badge type="primary" |
| | | value="01" |
| | | slot='icon'></u-badge> |
| | | <u-icon slot="value" |
| | | name="arrow-right" |
| | | size="30" |
| | | color="#b8b8b8"></u-icon> |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </view> |
| | | <view class="collection-form"> |
| | | <view class="collection-form-item" |
| | | v-for="(item, index) in driverBillOfLoadingData.list1" |
| | |
| | | <combined-title title="待预约提煤单"></combined-title> |
| | | <u-empty mode="data" |
| | | icon="http://cdn.uviewui.com/uview/empty/data.png" |
| | | text="暂无数据" |
| | | textSize="30" |
| | | iconSize="1000" |
| | | v-if="driverBillOfLoadingData.list3 ? (driverBillOfLoadingData.list3.length == 0 ? true : false) : true"></u-empty> |
| | |
| | | icon="http://cdn.uviewui.com/uview/empty/data.png" |
| | | textSize="30" |
| | | iconSize="1000" |
| | | text="暂无数据" |
| | | v-if="driverBillOfLoadingData.list2 ? (driverBillOfLoadingData.list2.length == 0 ? true : false) : true"></u-empty> |
| | | <view class="appointment-form"> |
| | | <view class="appointment-form-item" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="white-block"></view> |
| | | <!-- 图片预览弹出框 --> |
| | | <view class="previewImage-container"> |
| | | <previewImage ref="previewImage" |
| | | :imgs="driverTourImgList" |
| | | :saveBtn='false'></previewImage> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <script> |
| | | import { customerId } from '@/utils/status'; |
| | | 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 |
| | | combinedTitle, |
| | | previewImage |
| | | }, |
| | | props: { |
| | | indexdriverBillOfLoadingData: { |
| | |
| | | immediate: true |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['driverTourImgList']), |
| | | roleType() { |
| | | return uni.getStorageSync('roleType'); |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | driverBillOfLoadingData: { |
| | |
| | | qiangDanOrderPlanId: null, |
| | | fleetId: '', |
| | | xsUserId: '', |
| | | customerId: '' |
| | | customerId: '', |
| | | 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}` |
| | | }); |
| | | }, |
| | | // 提煤单详情 |
| | |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/appointment/appointment?takeCoalId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}` |
| | | }); |
| | | } |
| | | }, |
| | | 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> |
| | |
| | | color: #ffffff; |
| | | margin-right: vww(20); |
| | | } |
| | | |
| | | .filedname { |
| | | width: 80%; |
| | | } |
| | | } |
| | | |
| | | .map-icon { |
| | | position: absolute; |
| | | right: vww(-1); |
| | | top: vww(2) |
| | | } |
| | | } |
| | | |
| | | .first-extra { |
| | | @include firstLine; |
| | | position: relative; |
| | | |
| | | .main-information { |
| | | width: 100%; |
| | |
| | | color: #ffffff; |
| | | margin-right: vww(20); |
| | | } |
| | | |
| | | .filedname { |
| | | width: 80%; |
| | | } |
| | | } |
| | | |
| | | .map-icon { |
| | | position: absolute; |
| | | right: vww(-1); |
| | | top: vww(2) |
| | | } |
| | | } |
| | | |
| | |
| | | @include firstLine; |
| | | margin: 0; |
| | | margin-left: vww(16); |
| | | position: relative; |
| | | |
| | | .main-information { |
| | | width: 100%; |
| | |
| | | color: #ffffff; |
| | | margin-right: vww(20); |
| | | } |
| | | |
| | | .filedname { |
| | | width: 80%; |
| | | } |
| | | } |
| | | |
| | | .map-icon { |
| | | position: absolute; |
| | | right: vww(-1); |
| | | top: vww(2) |
| | | } |
| | | } |
| | | |
| | |
| | | margin-top: vww(10); |
| | | } |
| | | } |
| | | |
| | | .noob-tour { |
| | | margin-bottom: vww(10); |
| | | position: relative; |
| | | top: -240rpx; |
| | | } |
| | | } |
| | | } |
| | | </style> |