Commit 352b4abd by 冷斌

fix bug

parent 2eba205a
......@@ -118,18 +118,7 @@ class ProfitController extends HomebaseController
}
$data['identity'] = $identity;
$certification = 0;
$auth2=M('users_info_auth')->where("uid={$uid}")->find();
if (!empty($auth2)) {
$certification = 3;
if ($auth2['status'] == 0) {
$certification = 2;
}
if ($auth2['status'] == 1) {
$certification = 1;
}
}
$data['certification'] = $certification;
if (!$auth2) {
$auth2 = [
'account' => '',
......
......@@ -16,15 +16,15 @@
<div class="part_name">上传身份证</div>
<div class="scimgBox">
<div class="imgItem">
<img src="__PUBLIC__/appapi/pay/img/iconCard-1.png" >
<img src="__PUBLIC__/appapi/pay/img/iconCard-1.png">
<!-- 上传证件照之后 -->
<!-- <img src="__PUBLIC__/appapi/pay/img/tx.png" > -->
</div>
<div class="imgItem">
<img src="__PUBLIC__/appapi/pay/img/iconCard-2.png" >
<img src="__PUBLIC__/appapi/pay/img/iconCard-2.png">
</div>
<div class="imgItem">
<img src="__PUBLIC__/appapi/pay/img/iconCard-3.png" >
<img src="__PUBLIC__/appapi/pay/img/iconCard-3.png">
</div>
</div>
</div>
......@@ -34,12 +34,12 @@
<div class="contentBox">
<div class="list">
<div class="list_hd">支付宝账号</div>
<input class="list_bd" type="text" placeholder="请输入您的账号" maxlength="8" />
<input class="list_bd" type="text" placeholder="请输入您的账号" maxlength="8"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">实名认证姓名</div>
<input class="list_bd" type="text" placeholder="请输入您的姓名" maxlength="18" />
<input class="list_bd" type="text" placeholder="请输入您的姓名" maxlength="18"/>
<p>*</p>
</div>
</div>
......@@ -50,27 +50,27 @@
<div class="contentBox">
<div class="list">
<div class="list_hd">开户姓名</div>
<input class="list_bd" type="text" placeholder="需与支付宝姓名一致" maxlength="8" />
<input class="list_bd" type="text" placeholder="需与支付宝姓名一致" maxlength="8"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">银行卡号</div>
<input class="list_bd" type="text" placeholder="请输入您的银行卡号" maxlength="18" />
<input class="list_bd" type="text" placeholder="请输入您的银行卡号" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">开户行</div>
<input class="list_bd" type="text" placeholder="请与银行确认好您的开户银行" maxlength="18" />
<input class="list_bd" type="text" placeholder="请与银行确认好您的开户银行" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">省份</div>
<input class="list_bd" type="text" placeholder="请输入省份" maxlength="18" />
<input class="list_bd" type="text" placeholder="请输入省份" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">城市</div>
<input class="list_bd" type="text" placeholder="请输入城市" maxlength="18" />
<input class="list_bd" type="text" placeholder="请输入城市" maxlength="18"/>
<p>*</p>
</div>
</div>
......@@ -91,17 +91,27 @@
var vm = new Vue({
el: '#app',
data: {
'account': '',
'username': '',
'front_view': '',
'back_view': '',
'handset_view': '',
'name': '',
'bank_name': '',
'bank_card': '',
'bank_province': '',
'bank_city': '',
'status': 3,
},
methods: {
info () {
info() {
let userInfo = sessionStorage.getItem("user_info");
if (!userInfo) {
window.location.href = '/index.php?g=Appapi&m=Login&a=index';
}
return JSON.parse(userInfo);
},
url (url) {
url(url) {
let info = this.info();
return url + '&uid=' + info.id + '&token=' + info.token;
},
......@@ -110,29 +120,39 @@
watch: {
//数据监测函数
},
created: function() {
created: function () {
//加载触发函数
let _this = this;
let url = _this.url('/index.php?g=Appapi&m=Profit&a=authInfo');
$.ajax({
url:url,
dataType:"json",
type:"GET",
success:function(data){
if(data.ret==200){
url: url,
dataType: "json",
type: "GET",
success: function (data) {
if (data.ret == 200) {
let d = data.data;
// _this.certification = d.certification;
if (d.identity != 1) {
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index');
return;
}
_this.account = d.account
_this.username = d.username;
_this.front_view = d.front_view;
_this.back_view = d.back_view;
_this.handset_view = d.handset_view;
_this.name = d.name;
_this.bank_name = d.bank_name;
_this.bank_card = d.bank_card;
_this.bank_province = d.bank_province;
_this.bank_city = d.bank_city;
_this.status = d.status;
}else{
} else {
layer.msg(data.msg);
}
},
error:function(e){
error: function (e) {
layer.msg(e.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