Commit 804b0223 by 冷斌

fix bug

parent 352b4abd
...@@ -39,19 +39,6 @@ class ProfitController extends HomebaseController ...@@ -39,19 +39,6 @@ class ProfitController extends HomebaseController
$this->display(); $this->display();
} }
public function withdraw()
{
$uid=I("uid");
$token=I("token");
if(checkToken($uid,$token)==700){
$this->assign("reason",'您的登陆状态失效,请重新登陆!');
$this->display(':error');
exit;
}
$this->display();
}
public function info() public function info()
{ {
$uid=I("uid"); $uid=I("uid");
...@@ -141,6 +128,27 @@ class ProfitController extends HomebaseController ...@@ -141,6 +128,27 @@ class ProfitController extends HomebaseController
echo json_encode(array("ret"=>200,'data'=>$data,'msg'=>'')); echo json_encode(array("ret"=>200,'data'=>$data,'msg'=>''));
die; die;
} }
public function withdraw()
{
$uid=I("uid");
$token=I("token");
if(checkToken($uid,$token)==700){
$this->assign("reason",'您的登陆状态失效,请重新登陆!');
$this->display(':error');
exit;
}
$this->display();
}
} }
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<div class="sfrz"> <div class="sfrz">
<!-- 状态 --> <!-- 状态 -->
<!-- <div class="statusOne">正在审核中,请耐心等待</div> --> <div v-if="status==0" class="statusOne">正在审核中,请耐心等待</div>
<div class="statusTwo">审核失败,请重新填写!</div> <div v-if="status==2" class="statusTwo">审核失败,请重新填写!</div>
<!-- 上传身份证 --> <!-- 上传身份证 -->
<div class="part"> <div class="part">
<div class="part_name">上传身份证</div> <div class="part_name">上传身份证</div>
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
'bank_card': '', 'bank_card': '',
'bank_province': '', 'bank_province': '',
'bank_city': '', 'bank_city': '',
'status': 3,
}, },
methods: { methods: {
info() { info() {
...@@ -136,6 +135,11 @@ ...@@ -136,6 +135,11 @@
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index'); window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index');
return; return;
} }
if (d.status == 1) {
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=withdraw');
return;
}
if ( d.status == 0) {
_this.account = d.account _this.account = d.account
_this.username = d.username; _this.username = d.username;
_this.front_view = d.front_view; _this.front_view = d.front_view;
...@@ -146,7 +150,12 @@ ...@@ -146,7 +150,12 @@
_this.bank_card = d.bank_card; _this.bank_card = d.bank_card;
_this.bank_province = d.bank_province; _this.bank_province = d.bank_province;
_this.bank_city = d.bank_city; _this.bank_city = d.bank_city;
_this.status = d.status; }
} else { } else {
layer.msg(data.msg); layer.msg(data.msg);
......
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