|
@@ -186,7 +186,8 @@ export default {
|
|
|
code: null,
|
|
|
jumpUrl: '',
|
|
|
scene:'',
|
|
|
- compressId:''
|
|
|
+ compressId:'',
|
|
|
+ parkType:1,//1-路段 2-停车场
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -210,6 +211,12 @@ export default {
|
|
|
this.jumpUrl = href[0] + '#/pages/center/order/order?';
|
|
|
this.scene = page.scene;
|
|
|
this.compressId = page.compressId;
|
|
|
+ this.parkType = page.parkType;
|
|
|
+ if(this.parkType==1){
|
|
|
+ this.current = 0
|
|
|
+ }else if(this.parkType==2){
|
|
|
+ this.current = 1
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
this.list[this.current].pageNum = 1;
|
|
@@ -288,7 +295,7 @@ export default {
|
|
|
pageNum,
|
|
|
paying: true,
|
|
|
};
|
|
|
- if((this.scene&&this.compressId)&&orderType.index===0){//路段
|
|
|
+ if(this.scene&&this.compressId){//路段
|
|
|
param = Object.assign({scene:this.scene,compressId:this.compressId},param)
|
|
|
}
|
|
|
this.$u.api[apiName](param)
|