mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
717386d53e
commit
c5d30767bd
@ -77,7 +77,8 @@ export function getRoomFees(_objData, _tmpRoom) {
|
||||
_tmpRoom.feeState = _roomFee.state;
|
||||
_tmpRoom.deadlineTime = _roomFee.deadlineTime;
|
||||
_tmpRoom.amountOwed = _roomFee.amountOwed;
|
||||
_tmpRoom.startTime = _roomFee.startTime;
|
||||
_tmpRoom.startTime = _roomFee.startTime;
|
||||
_tmpRoom.payOnline = _roomFee.payOnline;
|
||||
moreRooms.push(_tmpRoom);
|
||||
});
|
||||
resolve(moreRooms);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<scroll-view scroll-y style="padding-bottom: 200rpx;">
|
||||
<view class="block__title" v-if="fees.length > 0">应缴费用</view>
|
||||
<view class="cu-list menu" v-for="(item,index) in fees" :key="index" :data-item="item">
|
||||
<view class="cu-list menu" v-for="(item,index) in fees" :key="index" :data-item="item" v-if="item.payOnline == 'Y'">
|
||||
<view class="cu-item " >
|
||||
<view class="content padding-tb-sm">
|
||||
<view>
|
||||
@ -120,8 +120,9 @@
|
||||
})
|
||||
.then(function(_fees){
|
||||
_fees.forEach(function(_item){
|
||||
_that.receivableAmount += _item.feePrice;
|
||||
|
||||
if(_item.payOnline == 'Y'){
|
||||
_that.receivableAmount += _item.feePrice;
|
||||
}
|
||||
})
|
||||
_that.receivableAmount = _that.receivableAmount.toFixed(2);
|
||||
})
|
||||
|
||||
@ -163,6 +163,7 @@
|
||||
payerObjId: '',
|
||||
payerObjType: '',
|
||||
userId: '',
|
||||
payOnline:'Y'
|
||||
};
|
||||
},
|
||||
|
||||
@ -220,7 +221,8 @@
|
||||
this.$nextTick(() => {
|
||||
this.$refs.vcDiscountRef._loadFeeDiscount(this.feeId, this.communityId, this.feeMonth);
|
||||
this.$refs.vcUserAccountRef._listOwnerAccount(this.feeId, this.communityId);
|
||||
})
|
||||
});
|
||||
this.payOnline = _fee.payOnline;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -273,7 +275,15 @@
|
||||
},
|
||||
_payWxApp: function(_data) {
|
||||
let _receivedAmount = this.receivableAmount;
|
||||
if(this.payOnline == 'N'){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'暂不支持线上缴费,请到前台缴费'
|
||||
})
|
||||
return;
|
||||
}
|
||||
let _tradeType = 'APP';
|
||||
|
||||
payFeeApp(this,{
|
||||
cycles: this.feeMonth,
|
||||
communityId: this.communityId,
|
||||
@ -290,6 +300,13 @@
|
||||
},
|
||||
onPayFee: function() {
|
||||
let _receivedAmount = this.receivableAmount;
|
||||
if(this.payOnline == 'N'){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'暂不支持线上缴费,请到前台缴费'
|
||||
})
|
||||
return;
|
||||
}
|
||||
let _tradeType = 'JSAPI';
|
||||
|
||||
payFeeWechat(this,{
|
||||
|
||||
@ -218,7 +218,8 @@
|
||||
deductionAmount: 0.0, // 抵扣金额
|
||||
couponAmount: 0.0,
|
||||
amountCount: 0.0,
|
||||
couponList: []
|
||||
couponList: [],
|
||||
payOnline:'Y'
|
||||
};
|
||||
},
|
||||
|
||||
@ -272,6 +273,7 @@
|
||||
this.deadlineTime = _fee.deadlineTime;
|
||||
this.amountOwed = _fee.amountOwed;
|
||||
this.amountCount = this.receivableAmount;
|
||||
this.payOnline = _fee.payOnline;
|
||||
|
||||
if (this.feeFlag != '2006012') {
|
||||
this.paymentCycle = _fee.paymentCycle;
|
||||
@ -391,6 +393,13 @@
|
||||
_payWxApp: function(_data) {
|
||||
let _receivedAmount = this.receivableAmount;
|
||||
let _tradeType = 'APP';
|
||||
if(this.payOnline == 'N'){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'暂不支持线上缴费,请到前台缴费'
|
||||
})
|
||||
return;
|
||||
}
|
||||
payFeeApp(this,{
|
||||
cycles: this.feeMonth,
|
||||
communityId: this.communityId,
|
||||
@ -407,6 +416,13 @@
|
||||
onPayFee: function() {
|
||||
let _receivedAmount = this.receivableAmount;
|
||||
let _tradeType = 'JSAPI';
|
||||
if(this.payOnline == 'N'){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:'暂不支持线上缴费,请到前台缴费'
|
||||
})
|
||||
return;
|
||||
}
|
||||
payFeeWechat(this,{
|
||||
business: "payFee",
|
||||
cycles: this.feeMonth,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user