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