Commit 1052cc79 by 冷斌

`试卷`

parent 7f249729
......@@ -416,15 +416,6 @@ class HomeAction extends UserAction
return $data;
}
protected function getBalancee()
{
$balancee = M('zy_split_balance')->where([
'uid' => $this->mid
])->getField('balance');
$this->assign('balance', $balancee);
}
/**
* 我的分享--列表处理
* @return void
......@@ -449,7 +440,11 @@ class HomeAction extends UserAction
// $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();
exit;
}
......
......@@ -153,6 +153,12 @@ class UserAction extends CommonAction
$this->assign('uid', $uid);
$this->assign('vip', $vip);
$balancee = M('zy_split_balance')->where([
'uid' => $this->mid
])->getField('balance');
$this->assign('balance', $balancee);
// 测试用
if($_GET['aaa']){
$this->display('index1');
......
......@@ -63,7 +63,7 @@
return {
value: "",
min: 100,
max: 156,
max: "{$balance}",
}
},
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