Selaa lähdekoodia

欠费二维码过来的链接处理

gcz 1 vuosi sitten
vanhempi
commit
f791b1d86c
1 muutettua tiedostoa jossa 13 lisäystä ja 5 poistoa
  1. 13 5
      pages/payLists/payLists.vue

+ 13 - 5
pages/payLists/payLists.vue

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