作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -382,8 +382,13 @@ class PersonalcenterController extends WeChatBaseController{
$_POST['create_time'] = time();
$_POST['state'] = 0;
$data = Db::name('money_expend') -> insert($_POST);
$money_expend = Db::name('money_expend') -> where('uid',$_POST['uid']) -> select();
$money = 0;
foreach ($money_expend as $key => $val){
$money += $val['money'];
}
if($data){
return true;
return $money;
}else{
return false;
}
... ...
... ... @@ -64,7 +64,7 @@
<img src="__TMPL__/public/assets/images/62.png" alt="" />
</div>
<div class="nine_money_explain_title">
正在提现额度:2174.21
正在提现额度:<span id="tixian_money"></span>
</div>
</div>
</div>
... ... @@ -158,6 +158,7 @@
}else{
$.post("{:url('Personalcenter/add_money_expend')}",{money:money},function(data){
if(data){
$('#tixian_money').test(data);
}else{
alert('提交提现失败!');
}
... ...