Commit bae180c0 authored by 高宇's avatar 高宇

缴费记录

parent 65491e6c
...@@ -66,22 +66,14 @@ ...@@ -66,22 +66,14 @@
onLoad (option) { onLoad (option) {
this.tenantId = option.tenantId this.tenantId = option.tenantId
this.parkingId = option.parkingId this.parkingId = option.parkingId
},
onShow() {
this.getParking() this.getParking()
}, },
methods: { methods: {
getParking(){ getParking(){
const that = this this.$u.get('/user/car/parkingPaymentList?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId).then(res => {
uni.getStorage({ console.log('res', res);
key:'business', this.parkingList = res.records
success:function(res){ this.cardId = 1
that.$u.get('/user/car/parkingPaymentList?tenantId=' + that.tenantId + '&parkingId=' + that.parkingId).then(res => {
console.log('res', res);
that.parkingList = res.records
that.cardId = 1
})
}
}) })
}, },
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
<view class="item-list-right"> <view class="item-list-right">
<view class="button"> <view class="button">
<u-button type="error" size="mini" shape="square">查询缴费</u-button> <u-button type="error" size="mini" shape="square" @click="getPayment">查询缴费</u-button>
</view> </view>
</view> </view>
</view> </view>
...@@ -189,6 +189,11 @@ ...@@ -189,6 +189,11 @@
uni.navigateTo({ uni.navigateTo({
url:'/homePage/parkingService/ParkingRecord/index?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId url:'/homePage/parkingService/ParkingRecord/index?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId
}) })
},
getPayment() {
uni.navigateTo({
url:'/homePage/parkingService/paymentRecord/index?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId
})
} }
} }
}; };
......
...@@ -71,16 +71,10 @@ ...@@ -71,16 +71,10 @@
}, },
methods: { methods: {
getParking(){ getParking(){
const that = this this.$u.get('/user/car/parkingPaymentList?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId).then(res => {
uni.getStorage({ console.log('res', res);
key:'business', this.parkingList = res.records
success:function(res){ this.cardId = 1
that.$u.get('/user/car/parkingPaymentList?tenantId=' + that.tenantId + '&parkingId=' + that.parkingId).then(res => {
console.log('res', res);
that.parkingList = res.records
that.cardId = 1
})
}
}) })
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment