| | |
| | | <template>
|
| | | <view class="main_app">
|
| | | <view class="title_wrap">
|
| | | <view class="name">{{ driverInfo.realname }},欢迎登录~</view>
|
| | | <view class="btn" @click="loginOut">退出登录</view>
|
| | | <view class="name">{{ driverInfo.realname || driverInfo.username }},欢迎登录~</view>
|
| | | <view class="btn" @click="loginOut">账号解绑</view>
|
| | | </view>
|
| | | <!-- -->
|
| | | <view class="banner_wrap">
|
| | |
| | | <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 v-if="activeCurrent > 0" 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>
|
| | |
| | | <view class="left">
|
| | | <view class="img_wrap img1" @click="jump('/pages/driver/notice')">
|
| | | <image src="@/static/driver/wuliu_ic_ruyuanyuyue@2x.png" class="img"></image>
|
| | | <view class="h1">入园预约</view>
|
| | | <view class="h1">入园卸货预约</view>
|
| | | <view class="h2">RESERVATION</view>
|
| | | </view>
|
| | | <view class="img_wrap img2" @click="jump('/pages/driver/reservedGuide?str=bookingTips')">
|
| | |
| | | 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)
|
| | | },
|
| | |
| | | width: 144rpx;
|
| | | height: 56rpx;
|
| | | border-radius: 36rpx;
|
| | | border: 1rpx solid $uni-color-primary;
|
| | | font-size: 26rpx;
|
| | | color: $uni-color-primary;
|
| | | border: 1rpx solid #B2B2B2; |
| | | font-size: 26rpx; |
| | | color: #666666;
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | align-items: center;
|