|
@@ -4,7 +4,7 @@
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" >
|
|
|
<scroll-view scroll-y style="height: 100%; width: 100%;" >
|
|
|
<view class="page-box">
|
|
|
- <view class="pay" @click="goDetails(payItem.orderId)" v-for="(payItem, index) in payList" :key="payItem.id">
|
|
|
+ <view class="pay" v-for="(payItem, index) in payList" :key="payItem.id">
|
|
|
<view class="pay-top u-flex">
|
|
|
<view class="pay-top-left u-flex-1">
|
|
|
<view class="car">{{payItem.vehicleNo}}</view>
|
|
@@ -20,7 +20,7 @@
|
|
|
<view class="pay-center-item">应付金额:<span class="pay-amount">{{payItem.payAmount}}</span></view>
|
|
|
</view>
|
|
|
<view class="pay-bottom">
|
|
|
- <u-cell-item title="去支付" style="color: #008CFF;"></u-cell-item>
|
|
|
+ <u-cell-item title="去支付" @click="paythis(payItem.orderId)" style="color: #008CFF;"></u-cell-item>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -29,7 +29,7 @@
|
|
|
<view class="button">
|
|
|
<button type="primary" @click="all()">全部缴费</button>
|
|
|
</view>
|
|
|
- <u-toast ref="uToast" />
|
|
|
+ <u-toast ref="uToast" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -44,7 +44,8 @@
|
|
|
list: [
|
|
|
{index:0,name: '未缴费',orderStatu:3,pageNum:1,total:null}
|
|
|
],
|
|
|
- orderList: []
|
|
|
+ orderList: [],
|
|
|
+ PayUrl: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -111,12 +112,19 @@
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- goDetails(orderId){
|
|
|
+ paythis(orderId){
|
|
|
let orderList=[];
|
|
|
orderList.push(orderId);
|
|
|
this.$u.api.payGzbank({orderList: orderList}).then(res=>{
|
|
|
let payUrl = res.data.url;
|
|
|
- window.open(payUrl);
|
|
|
+ this.currentPayUrl=encodeURIComponent(res.data.url);
|
|
|
+ // return;
|
|
|
+ this.$u.route({
|
|
|
+ url: 'pages/payLists/pay',
|
|
|
+ params: {
|
|
|
+ currentPayUrl:this.currentPayUrl
|
|
|
+ }
|
|
|
+ });
|
|
|
}).catch(err=>{
|
|
|
this.$refs.uToast.show({
|
|
|
title: err.msg,
|
|
@@ -134,18 +142,13 @@
|
|
|
|
|
|
this.$u.api.payGzbank({orderList: this.orderList}).then(res=>{
|
|
|
let payUrl = res.data.url;
|
|
|
- this.currentPayUrl=res.data.url;
|
|
|
-
|
|
|
- // uni.navigateTo({
|
|
|
- // url: '/pages/payLists/pay',
|
|
|
- // fail:function(err){
|
|
|
- // console.log('err',err)
|
|
|
- // }
|
|
|
- // });
|
|
|
+ this.currentPayUrl=encodeURIComponent(res.data.url);
|
|
|
+ // console.log('this.currentPayUrl',this.currentPayUrl);
|
|
|
+ // return;
|
|
|
this.$u.route({
|
|
|
url: 'pages/payLists/pay',
|
|
|
params: {
|
|
|
- currentPayUrl: res.data.url
|
|
|
+ currentPayUrl:this.currentPayUrl
|
|
|
}
|
|
|
});
|
|
|
}).catch(err=>{
|