| | |
| | | <view class="h2">物流车专区</view>
|
| | | <image class="banner" src="../../static/driver/wuliuche_banner@2x.png" mode="widthFix"></image>
|
| | | </view>
|
| | | <!-- -->
|
| | | <!-- --> |
| | | <view class="title_wrap"> |
| | | <view class="name">作业任务</view> |
| | | <view class="placeholder9">{{activeCurrent + 1}}/{{taskList.length}}</view> |
| | | </view>
|
| | | <view v-if="taskList && taskList.length > 0" class="task_list">
|
| | | <swiper circular class="task_swiper">
|
| | | <swiper-item v-for="item in taskList" :key="item.id" @click="taskClick(item)">
|
| | | <swiper circular indicator-dots indicator-active-color="#4d99a8" indicator-color="#e0e2e7" class="task_swiper" @change="changeCur" :current="activeCurrent">
|
| | | <swiper-item v-for="item in taskList" :current='activeCurrent' :key="item.id" @click="taskClick(item)">
|
| | | <view class="item">
|
| | | <view class="head">
|
| | | <view class="name">{{ item.contractNum ? '合同单' : '运输单' }}{{ item.billCode || item.contractNum }}</view>
|
| | |
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | taskList: [],
|
| | | taskList: [], |
| | | activeCurrent: 0,
|
| | | driverInfo: uni.getStorageSync('driverInfo'),
|
| | | }
|
| | | },
|
| | |
| | | this.initData()
|
| | | },
|
| | |
|
| | | methods: {
|
| | | methods: { |
| | | changeCur(e) { |
| | | this.activeCurrent = e.detail.current |
| | | },
|
| | | jump(path) {
|
| | | this.$jump(path)
|
| | | },
|