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