mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
1
This commit is contained in:
parent
ff67c6f55d
commit
439b756fa3
@ -202,8 +202,11 @@ class UserMoneyServices extends BaseServices
|
||||
/** @var UserServices $userServices */
|
||||
$userServices = app()->make(UserServices::class);
|
||||
$data['now_balance'] = $userServices->sum(['status' => 1], 'now_money', true);
|
||||
$data['add_balance'] = $this->dao->sum(['pm' => 1], 'number', true);
|
||||
$data['sub_balance'] = $this->dao->sum(['pm' => 0], 'number', true);
|
||||
$data['add_balance'] = $this->dao->sum([
|
||||
['pm', '=', 1],
|
||||
['type', 'in', ['system_add', 'recharge', 'extract', 'lottery_add', 'register_system_add']]
|
||||
], 'number', false);
|
||||
$data['sub_balance'] = bcsub($data['add_balance'], $data['now_balance'], 2);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,8 @@
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onShow() {
|
||||
this.clear();
|
||||
this.getIndex();
|
||||
this.getList();
|
||||
// this.$scroll(this.$refs.container, () => {
|
||||
@ -107,6 +108,11 @@
|
||||
// });
|
||||
},
|
||||
methods: {
|
||||
clear(){
|
||||
this.loaded = false;
|
||||
this.list = []
|
||||
this.where.page = 1;
|
||||
},
|
||||
getIndex: function() {
|
||||
var that = this;
|
||||
getStatisticsInfo().then(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user