Parcourir la source

扫欠费二维码跳转到相应的类别(路段或者停车场)

gcz il y a 1 an
Parent
commit
7733c7213e
1 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. 9 2
      pages/payLists/payLists.vue

+ 9 - 2
pages/payLists/payLists.vue

@@ -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)