mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
修复余额bug
This commit is contained in:
parent
5759117d88
commit
f34373b0d1
@ -50,7 +50,8 @@
|
|||||||
import context from '@/lib/java110/Java110Context.js';
|
import context from '@/lib/java110/Java110Context.js';
|
||||||
const factory = context.factory; //获取app实例
|
const factory = context.factory; //获取app实例
|
||||||
const constant = context.constant;
|
const constant = context.constant;
|
||||||
import conf from '@/conf/config.js'
|
import conf from '@/conf/config.js';
|
||||||
|
import {queryOwnerAccount} from '@/api/user/userApi.js'
|
||||||
export default {
|
export default {
|
||||||
name: "my-person",
|
name: "my-person",
|
||||||
data() {
|
data() {
|
||||||
@ -88,6 +89,7 @@
|
|||||||
_that.loadOwenrInfo();
|
_that.loadOwenrInfo();
|
||||||
_that.userInfo = context.getUserInfo();
|
_that.userInfo = context.getUserInfo();
|
||||||
this.loadOwnerHeaderImg();
|
this.loadOwnerHeaderImg();
|
||||||
|
this.loadOwnerAccount();
|
||||||
},
|
},
|
||||||
ckeckUserInfo: function() {
|
ckeckUserInfo: function() {
|
||||||
return context.checkLoginStatus();
|
return context.checkLoginStatus();
|
||||||
@ -134,15 +136,28 @@
|
|||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
_that.accounts = [];
|
_that.accounts = [];
|
||||||
return;
|
|
||||||
_that.blance = 0
|
_that.blance = 0
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
_that.accounts = data;
|
_that.accounts = data;
|
||||||
let sum = 0
|
let blanceSum = 0;
|
||||||
|
let interSum = 0;
|
||||||
|
let kaSum = 0;
|
||||||
_that.accounts.forEach((v, k) => {
|
_that.accounts.forEach((v, k) => {
|
||||||
sum += v.amount
|
if(v.acctType == '2005'){
|
||||||
|
kaSum += parseFloat(v.amount);
|
||||||
|
}
|
||||||
|
if(v.acctType == '2004'){
|
||||||
|
interSum += parseFloat(v.amount);
|
||||||
|
}
|
||||||
|
if(v.acctType == '2003'){
|
||||||
|
blanceSum += parseFloat(v.amount);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.blance = sum
|
_that.blance = blanceSum.toFixed(2);
|
||||||
|
_that.inter = interSum.toFixed(2);
|
||||||
|
_that.ka = kaSum.toFixed(2);
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -15,7 +15,7 @@ export default {
|
|||||||
saveOwner: baseUrl + 'app/owner.saveOwner', //家庭成员列表
|
saveOwner: baseUrl + 'app/owner.saveOwner', //家庭成员列表
|
||||||
queryOwnerMembers: baseUrl + 'app/owner.queryOwnerMembers', //投诉建议列表
|
queryOwnerMembers: baseUrl + 'app/owner.queryOwnerMembers', //投诉建议列表
|
||||||
listComplaints: baseUrl + 'app/complaint.listComplaints', //添加投诉建议
|
listComplaints: baseUrl + 'app/complaint.listComplaints', //添加投诉建议
|
||||||
saveComplaint: baseUrl + 'app/complaint.saveComplaint', //查询业主房间
|
saveComplaint: baseUrl + 'app/complaint', //查询业主房间
|
||||||
queryRoomsByOwner: baseUrl + 'app/room.queryRoomsByOwner', //绑定业主
|
queryRoomsByOwner: baseUrl + 'app/room.queryRoomsByOwner', //绑定业主
|
||||||
appUserBindingOwner: baseUrl + 'app/owner.appUserBindingOwner', //查询绑定业主
|
appUserBindingOwner: baseUrl + 'app/owner.appUserBindingOwner', //查询绑定业主
|
||||||
ownerRegiter: baseUrl + 'app/owner.ownerRegister', //业主注册
|
ownerRegiter: baseUrl + 'app/owner.ownerRegister', //业主注册
|
||||||
@ -149,12 +149,8 @@ export default {
|
|||||||
listOwnerVisit: baseUrl + "app/visit.listVisits",
|
listOwnerVisit: baseUrl + "app/visit.listVisits",
|
||||||
listSystemInfo:baseUrl+"app/system.listSystemInfo",
|
listSystemInfo:baseUrl+"app/system.listSystemInfo",
|
||||||
queryWaitPayFeeTempCar:baseUrl+"app/car.queryWaitPayFeeTempCar",
|
queryWaitPayFeeTempCar:baseUrl+"app/car.queryWaitPayFeeTempCar",
|
||||||
alipayPayTempCarFee:baseUrl+"app/alipay.payTempCarFee",
|
|
||||||
|
|
||||||
getOpenIdFromAliPay:baseUrl+"app/alipay.getOpenIdFromAliPay",
|
getOpenIdFromAliPay:baseUrl+"app/alipay.getOpenIdFromAliPay",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NEED_NOT_LOGIN_PAGE: [
|
NEED_NOT_LOGIN_PAGE: [
|
||||||
'pages/login/login',
|
'pages/login/login',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user