| | |
| | | <template> |
| | | <div class="warp"> |
| | | <div class="warp-box"> |
| | | <div class="warp" :style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/diverbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }"> |
| | | <scroll-view |
| | | scroll-y class="page" @scroll="onScroll"> |
| | | <div class="warp-box"> |
| | | <!-- 当前的订单 --> |
| | | <!-- 占位 --> |
| | | <div v-if="loading" class="ingOrderBox"></div> |
| | | <div class="ingOrder" v-for="item,i in driverBillOfLoadingData.list2" :key="i" v-if="i == 0" |
| | | <div class="ingOrderDiv"> |
| | | <div class="ingOrder" v-for="(item,i) in driverBillOfLoadingData.list2" :key="i" v-if="i == 0" |
| | | @click="list3CardIconClick(item)" |
| | | > |
| | | <!-- 第一行 --> |
| | |
| | | @click.stop="skipMap(item)" |
| | | size="40"></u-icon |
| | | > |
| | | <u-icon |
| | | <u-icon |
| | | @click.stop="skipMap(item)" |
| | | name="map" |
| | | color="#4978F0" |
| | |
| | | </u-tag> |
| | | </view> |
| | | </div> |
| | | |
| | | |
| | | <div class="twoLine"> |
| | | <div class="twoleft"> |
| | | <view class="time-icon"><u-icon name="clock" |
| | | color="#515151" |
| | | size="25"></u-icon></view> |
| | | <view class="send-date">{{ item.yuYueSection }}</view> |
| | | <view class="send-date">{{ item.yuYueTime }}</view> |
| | | </div> |
| | | <div class="twoRight"> |
| | | <u-tag :text="item.coalName" plain> </u-tag> |
| | |
| | | <span class="more" @click="todoHistory">MORE>></span> |
| | | </div> |
| | | </div> |
| | | |
| | | <u-empty mode="data" |
| | | :marginTop='340' |
| | | icon="http://cdn.uviewui.com/uview/empty/data.png" |
| | | textSize="30" |
| | | iconSize="1000" |
| | | text="暂无数据" |
| | | v-if="driverBillOfLoadingData.list2.length ===0"></u-empty> |
| | | </div> |
| | | <!-- 蒙层 --> |
| | | |
| | | <!-- 九宫格 --> |
| | | <view class="gridBox" > |
| | | <view class="gridBoxBg no-right no-left"> |
| | | <view class="gridBox" > |
| | | <u-grid |
| | | :border="false" |
| | | col="4" |
| | |
| | | <u-grid-item |
| | | v-for="(listItem,listIndex) in list" |
| | | :key="listIndex" |
| | | |
| | | |
| | | > |
| | | <u--image :showLoading="true" :src="listItem.src" width="50px" height="50px" @click="gridClick(listItem)"></u--image> |
| | | <text class="grid-text">{{listItem.title}}</text> |
| | | <text class="grid-text" >{{listItem.title}}</text> |
| | | </u-grid-item> |
| | | </u-grid> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 立即抢单 --> |
| | | <div class="orderGrabbing" v-for="item,i in driverBillOfLoadingData.list1" :key="i"> |
| | | <!-- 第一行 --> |
| | |
| | | </span> |
| | | </div> |
| | | </div> |
| | | <div v-if="!driverBillOfLoadingData.list3.length"><u-empty |
| | | <!-- <div v-if="!driverBillOfLoadingData.list3.length"><u-empty |
| | | mode="data" |
| | | icon="http://cdn.uviewui.com/uview/empty/data.png" |
| | | textSize="30"></u-empty></div> |
| | | textSize="30"></u-empty></div> --> |
| | | <!-- 通知通告 --> |
| | | <combined-title title="通知公告"></combined-title> |
| | | <div class="tongzhi"> |
| | |
| | | :key="index" |
| | | > |
| | | <div class="listItem" @click="todoNotice(item)"> |
| | | |
| | | <div class="listItemTop"> |
| | | |
| | | <div class="listItemTop"> |
| | | <u-avatar |
| | | slot="icon" |
| | | shape="square" |
| | |
| | | customStyle="margin: -3px 5px -3px 0" |
| | | ></u-avatar> |
| | | <div v-html="item.title"></div></div> |
| | | |
| | | |
| | | <span class="listDate">{{ item.createTime }}</span> |
| | | </div> |
| | | </u-list-item> |
| | |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </view> |
| | | </div> |
| | | |
| | | </div> |
| | | </scroll-view> |
| | | <!-- 抢单提示模态框 --> |
| | | <view class="qianDanModel"> |
| | | <u-modal :show="qiangDanShow" |
| | |
| | | import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; |
| | | import { mapState } from 'vuex'; |
| | | import { Debounce } from '../../../utils/util'; |
| | | import labaIcon from '@/static/image/无人值守/司机端首页/组 27 拷贝 3.jpg' |
| | | import newIcon from '@/static/image/无人值守/司机端首页/组 27.jpg' |
| | | export default { |
| | | components: { |
| | | combinedTitle, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | labaIcon, |
| | | newIcon, |
| | | labaIcon:`${onlineurl}/appimg/image/司机端首页/组 27 拷贝 3.jpg`, |
| | | newIcon:`${onlineurl}/appimg/image/司机端首页/组 27.jpg`, |
| | | markFlag:'none', |
| | | noticeModelShow:false, |
| | | garidInitTop:'', //元素初始距离顶部的高度 |
| | | screenHeight:'', |
| | | notice:{ |
| | | title:'', |
| | | content:"", |
| | |
| | | // src: '/static/image/无人值守/司机端首页/组 15(2).jpg', |
| | | // title: '质检' |
| | | // }, |
| | | { |
| | | src: '/static/image/无人值守/司机端首页/组 15(3).jpg', |
| | | title: '车队管理' |
| | | }, |
| | | // { |
| | | // src: '/static/image/无人值守/司机端首页/组 15(3).jpg', |
| | | // title: '车队管理' |
| | | // }, |
| | | { |
| | | src: '/static/image/无人值守/司机端首页/组 15(4).jpg', |
| | | title: '关于我们', |
| | |
| | | current:1, |
| | | page:10, |
| | | }, |
| | | |
| | | |
| | | qiangDanTitle: '抢单提示', |
| | | qiangDanContent: '', |
| | | qiangDanOrderPlanId: null, |
| | |
| | | // this.TourImgList = TourImgList |
| | | this.getLogOn() |
| | | this.getNoticeList(); |
| | | this.watchScrollFun(); |
| | | }, |
| | | onShow() { |
| | | this.init(); |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | // 跳转地图 |
| | |
| | | |
| | | case '历史订单': |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/historicalOrders/index?historyData=${JSON.stringify(this.driverBillOfLoadingData.list2)}` |
| | | url: `/pages/public-page/historicalOrders/index?historyData=${JSON.stringify(this.driverBillOfLoadingData.list2)}` |
| | | }); |
| | | break; |
| | | break; |
| | | |
| | | case '操作指南': |
| | | this.noobTour(); |
| | | break; |
| | | break; |
| | | case '消息': |
| | | uni.navigateTo({ |
| | | url: '/pages/public-page/message/message' |
| | | }); |
| | | break; |
| | | |
| | | |
| | | case '合作基地': |
| | | uni.navigateTo({ |
| | | url: '/pages/public-page/cooperationBase/index' |
| | | }); |
| | | break; |
| | | |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | }, |
| | | onScroll(e){ |
| | | // 监听页面向上滚动事件 |
| | | // let query = uni.createSelectorQuery().in(this); |
| | | // query.select('.gridBox').boundingClientRect(data => { |
| | | // if(this.garidInitTop && (this.garidInitTop > data.top)){ |
| | | // // console.log(data,data.top, query.select('.mark')); |
| | | // this.$nextTick(() => { |
| | | // this.markFlag = 'block'; //显示 |
| | | // }); |
| | | // }else{ |
| | | // this.$nextTick(() => { |
| | | // this.markFlag = 'none'; //隐藏 |
| | | // }); |
| | | // } |
| | | // }).exec(); |
| | | }, |
| | | init() { |
| | | this.qiangDanList(); |
| | |
| | | this.getNoticeList(); |
| | | |
| | | }, |
| | | watchScrollFun(){ |
| | | //初始化获取屏幕高度 |
| | | const res = uni.getSystemInfoSync(); |
| | | let query = uni.createSelectorQuery().in(this); |
| | | query.select('.gridBox').boundingClientRect(data => { |
| | | this.garidInitTop = data.top; |
| | | }).exec(); |
| | | this.screenHeight = res.screenHeight; |
| | | |
| | | }, |
| | | getNoticeList(){ |
| | | this.$reqGet('noticeList',{...this.noticePage,isNotice:'1'}).then(res => { |
| | | console.log(res,'resresres') |
| | |
| | | this.noticeList = this.noticeList.concat(result) |
| | | }else{ |
| | | //否则就是空 |
| | | |
| | | |
| | | } |
| | | |
| | | let arr = this.noticeList.sort((a,b)=>{ |
| | |
| | | } |
| | | return item |
| | | }); |
| | | |
| | | |
| | | } |
| | | }) |
| | | |
| | |
| | | this.qiangDanContent = `已抢${value.tmcCount}单,确定抢单?`; |
| | | } |
| | | } ,500) |
| | | |
| | | |
| | | , |
| | | // 抢单模态框 |
| | | qiangDanConfirm() { |
| | |
| | | }, |
| | | todoHistory(){ |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/historicalOrders/index?historyData=${JSON.stringify( this.driverBillOfLoadingData.list2)}` |
| | | url: `/pages/public-page/historicalOrders/index?historyData=${JSON.stringify( this.driverBillOfLoadingData.list2)}` |
| | | }); |
| | | }, |
| | | todoNotice(item){ |
| | |
| | | noticConfirm(){ |
| | | this.noticeModelShow = false; |
| | | } |
| | | |
| | | |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .warp{ |
| | | .page{ |
| | | z-index: 999; |
| | | } |
| | | width: 100%; |
| | | height:100%; |
| | | display: flex; |
| | |
| | | flex: 1; |
| | | flex-direction: column; |
| | | padding-top: calc(var(--window-top) + 20px); |
| | | background:url('https://mx.jzeg.cn:9095/appimg/image/banner/diverbanner.png') no-repeat fixed center; |
| | | background-position: 0rpx 0rpx; |
| | | background-size: 100% 600rpx; |
| | | .warp-box{ |
| | | width: 100%; |
| | | height:calc(100vh - 45px); |
| | | height:calc(100vh - 73px); |
| | | z-index: 9; |
| | | display: flex; |
| | | flex-direction: column; |
| | | overflow-y: auto; |
| | | // overflow-y: auto; |
| | | margin: 0 auto; |
| | | padding-bottom: 100rpx; |
| | | .ingOrderBox{ |
| | | width: 94%; |
| | | height: 30%; |
| | | transform: translateY(20%); |
| | | } |
| | | background-color: unset; |
| | | // padding-bottom: 100rpx; |
| | | |
| | | .ingOrderDiv{ |
| | | width: 100%; |
| | | min-height: 630rpx; |
| | | margin: 0 auto; |
| | | } |
| | | .ingOrder{ |
| | | width: 94%; |
| | | height: 380rpx; |
| | |
| | | display: flex; |
| | | width: 150rpx; |
| | | } |
| | | |
| | | |
| | | .firstLine{ |
| | | flex: 0 1 60%; |
| | | width: 92%; |
| | |
| | | border-right: 2px dotted #303030; |
| | | transform: translateX(15rpx); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | .centerTitle{ |
| | | display: flex; |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .twoleft{ |
| | | width: 325rpx; |
| | | |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | |
| | | } |
| | | } |
| | | .twoRight{ |
| | | width: 210rpx; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | } |
| | |
| | | height: 270rpx; |
| | | margin: 0 auto; |
| | | margin-top: 30rpx; |
| | | margin-bottom: 30rpx; |
| | | .grid-text{ |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | |
| | | border-right: 2px dotted #303030; |
| | | transform: translateX(15rpx); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | .centerTitle{ |
| | | display: flex; |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .twoleft{ |
| | | width: 200rpx; |
| | | |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | margin-right: 20rpx; |
| | | |
| | | |
| | | .qiangdanBtn{ |
| | | width: 230rpx; |
| | | height:60rpx; |
| | |
| | | border-right: 2px dotted #303030; |
| | | transform: translateX(15rpx); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | .centerTitle{ |
| | | display: flex; |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .twoleft{ |
| | | width: 200rpx; |
| | | |
| | | display: flex; |
| | | justify-content: space-around; |
| | | align-items: center; |
| | |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | | span{ |
| | | font-size: 28rpx; |
| | | margin-left: 10rpx; |
| | | } |
| | | } |
| | | .twoRight{ |
| | |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | font-size: 28rpx; |
| | | white-space: nowrap; |
| | | text-overflow:ellipsis; |
| | | overflow:hidden; |
| | | white-space: nowrap; |
| | | text-overflow:ellipsis; |
| | | overflow:hidden; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | .gridBoxBg{ |
| | | // box-shadow:0 0 10px 10px #9fb1c5; |
| | | width: 92%; |
| | | margin: 10rpx auto; |
| | | |
| | | |
| | | </style> |
| | | } |
| | | .mark{ |
| | | height: calc(100vh - 60vh); |
| | | background-color: #ccc; |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | left :0; |
| | | z-index: 1; |
| | | opacity: 0.6; |
| | | transition: 2.5s all ; |
| | | } |
| | | // .no-right { |
| | | // /* .left-top, .left-bottom 组合 */ |
| | | // box-shadow: -5px -5px 10px -4px #fff, -5px 5px 10px -4px #fff; |
| | | // } |
| | | // .no-left { |
| | | // /* .right-bottom, .right-top 组合 */ |
| | | // box-shadow: 5px 5px 10px -4px #fff, 5px -5px 10px -4px #fff; |
| | | // } |
| | | </style> |