Commit 1052cc79 by 冷斌

`试卷`

parent 7f249729
...@@ -416,15 +416,6 @@ class HomeAction extends UserAction ...@@ -416,15 +416,6 @@ class HomeAction extends UserAction
return $data; return $data;
} }
protected function getBalancee()
{
$balancee = M('zy_split_balance')->where([
'uid' => $this->mid
])->getField('balance');
$this->assign('balance', $balancee);
}
/** /**
* 我的分享--列表处理 * 我的分享--列表处理
* @return void * @return void
...@@ -449,7 +440,11 @@ class HomeAction extends UserAction ...@@ -449,7 +440,11 @@ class HomeAction extends UserAction
// $data['data'] = $this->fetch('share_list'); // $data['data'] = $this->fetch('share_list');
$this->getBalancee(); $balancee = M('zy_split_balance')->where([
'uid' => $this->mid
])->getField('balance');
$this->assign('balance', $balancee);
$this->display(); $this->display();
exit; exit;
} }
......
...@@ -153,6 +153,12 @@ class UserAction extends CommonAction ...@@ -153,6 +153,12 @@ class UserAction extends CommonAction
$this->assign('uid', $uid); $this->assign('uid', $uid);
$this->assign('vip', $vip); $this->assign('vip', $vip);
$balancee = M('zy_split_balance')->where([
'uid' => $this->mid
])->getField('balance');
$this->assign('balance', $balancee);
// 测试用 // 测试用
if($_GET['aaa']){ if($_GET['aaa']){
$this->display('index1'); $this->display('index1');
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
return { return {
value: "", value: "",
min: 100, min: 100,
max: 156, max: "{$balance}",
} }
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment