|
@@ -184,7 +184,9 @@ export default {
|
|
|
// 所有订单列表(不分页)
|
|
|
allOrderList: [],
|
|
|
code: null,
|
|
|
- jumpUrl: ''
|
|
|
+ jumpUrl: '',
|
|
|
+ scene:'',
|
|
|
+ compressId:''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -203,9 +205,11 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
+ onLoad(page) {
|
|
|
const href = location.href.split('#');
|
|
|
this.jumpUrl = href[0] + '#/pages/center/order/order?';
|
|
|
+ this.scene = page.scene;
|
|
|
+ this.compressId = page.compressId;
|
|
|
},
|
|
|
onShow() {
|
|
|
this.list[this.current].pageNum = 1;
|
|
@@ -279,11 +283,15 @@ export default {
|
|
|
orderListArr(orderType, index) {
|
|
|
const apiName = index === 0 ? 'getOrderList' : 'getRoomParkingApi';
|
|
|
let pageNum = orderType.pageNum; // 页码, 默认从1开始
|
|
|
- this.$u.api[apiName]({
|
|
|
+ let param = {
|
|
|
pageSize: 10000,
|
|
|
pageNum,
|
|
|
- paying: true
|
|
|
- })
|
|
|
+ paying: true,
|
|
|
+ };
|
|
|
+ if((this.scene&&this.compressId)&&orderType.index===0){//路段
|
|
|
+ param = Object.assign({scene:this.scene,compressId:this.compressId},param)
|
|
|
+ }
|
|
|
+ this.$u.api[apiName](param)
|
|
|
.then((res) => {
|
|
|
// 判断重复
|
|
|
let newListFlag = true;
|