task#11035,司机app优化调整
This commit is contained in:
@ -20,7 +20,8 @@
|
||||
<div class="monthSearch" v-show="activeIndex == 0">
|
||||
<span v-for="(item,index) in monthList" :class="monthIndex === index ? 'active' : ''" :key="index" @click="clickHandle(index)">{{item}}</span>
|
||||
</div>
|
||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" v-show="!show" style="min-height: 80%;position: relative">
|
||||
<!-- style="min-height: 80%;position: relative"-->
|
||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" v-show="!show" :class="activeIndex==0 ? 'firstpullRefresh' : 'secondpullRefresh'">
|
||||
<!-- v-show="!show"-->
|
||||
<!-- <van-list
|
||||
v-model="loading"
|
||||
@ -88,8 +89,8 @@ export default {
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
let token = localStorage.getItem('token');
|
||||
this.$notify(token);
|
||||
/* let token = localStorage.getItem('token');
|
||||
this.$notify(token);*/
|
||||
/* const urlParams = new URLSearchParams(window.location.search);
|
||||
this.driverId = urlParams.get('driverId');*/
|
||||
this.driverId = 78948;
|
||||
@ -118,16 +119,18 @@ export default {
|
||||
this.submitData.push({...item})
|
||||
}
|
||||
})
|
||||
if(this.submitData && this.submitData.length>0){
|
||||
let res = await submitReimburseBatch({
|
||||
driverId: this.driverId,
|
||||
orderList: [...this.submitData]
|
||||
})
|
||||
if(res.code === 200){
|
||||
this.$toast(res.msg)
|
||||
}else{
|
||||
this.$toast("请勾选要报销的订单")
|
||||
}
|
||||
await this.getList()
|
||||
}else{
|
||||
this.$toast("请勾选要报销的订单")
|
||||
}
|
||||
await this.getList()
|
||||
},
|
||||
async changeTab(index) {
|
||||
this.activeIndex = index
|
||||
@ -269,9 +272,18 @@ export default {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
/*::v-deep .van-pull-refresh{
|
||||
height: calc(100% - 91px) ;
|
||||
}*/
|
||||
.firstpullRefresh{
|
||||
height: calc(100% - 140px) ;
|
||||
}
|
||||
.secondpullRefresh{
|
||||
height: calc(100% - 91px) ;
|
||||
}
|
||||
.listWrap{
|
||||
width: 100%;
|
||||
height: calc(100% - 250px);
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 7px 10px 8px;
|
||||
overflow-y: auto;
|
||||
|
Reference in New Issue
Block a user