Commit bae180c0 authored by 高宇's avatar 高宇

缴费记录

parent 65491e6c
......@@ -66,22 +66,14 @@
onLoad (option) {
this.tenantId = option.tenantId
this.parkingId = option.parkingId
},
onShow() {
this.getParking()
},
methods: {
getParking(){
const that = this
uni.getStorage({
key:'business',
success:function(res){
that.$u.get('/user/car/parkingPaymentList?tenantId=' + that.tenantId + '&parkingId=' + that.parkingId).then(res => {
this.$u.get('/user/car/parkingPaymentList?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId).then(res => {
console.log('res', res);
that.parkingList = res.records
that.cardId = 1
})
}
this.parkingList = res.records
this.cardId = 1
})
},
}
......
......@@ -29,7 +29,7 @@
</view>
<view class="item-list-right">
<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>
......@@ -189,6 +189,11 @@
uni.navigateTo({
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 @@
},
methods: {
getParking(){
const that = this
uni.getStorage({
key:'business',
success:function(res){
that.$u.get('/user/car/parkingPaymentList?tenantId=' + that.tenantId + '&parkingId=' + that.parkingId).then(res => {
this.$u.get('/user/car/parkingPaymentList?tenantId=' + this.tenantId + '&parkingId=' + this.parkingId).then(res => {
console.log('res', res);
that.parkingList = res.records
that.cardId = 1
})
}
this.parkingList = res.records
this.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