Commit f02529a5 by 冷斌

fix bug

parent 755bfd6c
......@@ -17,13 +17,13 @@
<div class="part_name">上传身份证</div>
<div class="scimgBox">
<div v-if="isFile" class="imgItem" @click="addImg('front_view')">
<img :src="front_view">
<img :src="form.front_view ? form.front_view : upload_image">
</div>
<div v-if="isFile2" class="imgItem" @click="addImg('back_view')">
<img :src="back_view">
<img :src="form.back_view ? form.back_view : upload_image2">
</div>
<div v-if="isFile3" class="imgItem" @click="addImg('handset_view')">
<img :src="handset_view">
<img :src="form.handset_view ? form.handset_view : upload_image3">
</div>
<input id="file" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/>
<input id="file2" name="image" type="file" v-if="isFile2" style="display: none;" accept="image/*" @change="upload"/>
......@@ -36,12 +36,12 @@
<div class="contentBox">
<div class="list">
<div class="list_hd">支付宝账号</div>
<input v-model="account" class="list_bd" type="text" placeholder="请输入您的账号" maxlength="8"/>
<input v-model="form.account" class="list_bd" type="text" placeholder="请输入您的账号" maxlength="8"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">实名认证姓名</div>
<input v-model="username" class="list_bd" type="text" placeholder="请输入您的姓名" maxlength="18"/>
<input v-model="form.username" class="list_bd" type="text" placeholder="请输入您的姓名" maxlength="18"/>
<p>*</p>
</div>
</div>
......@@ -52,27 +52,27 @@
<div class="contentBox">
<div class="list">
<div class="list_hd">开户姓名</div>
<input v-model="name" class="list_bd" type="text" placeholder="请输入您的开户姓名" maxlength="8"/>
<input v-model="form.name" class="list_bd" type="text" placeholder="请输入您的开户姓名" maxlength="8"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">银行卡号</div>
<input v-model="bank_card" class="list_bd" type="text" placeholder="请输入您的银行卡号" maxlength="18"/>
<input v-model="form.bank_card" class="list_bd" type="text" placeholder="请输入您的银行卡号" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">开户行</div>
<input v-model="bank_name" class="list_bd" type="text" placeholder="请与银行确认好您的开户银行" maxlength="18"/>
<input v-model="form.bank_name" class="list_bd" type="text" placeholder="请与银行确认好您的开户银行" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">省份</div>
<input v-model="bank_province" class="list_bd" type="text" placeholder="请输入省份" maxlength="18"/>
<input v-model="form.bank_province" class="list_bd" type="text" placeholder="请输入省份" maxlength="18"/>
<p>*</p>
</div>
<div class="list">
<div class="list_hd">城市</div>
<input v-model="bank_city" class="list_bd" type="text" placeholder="请输入城市" maxlength="18"/>
<input v-model="form.bank_city" class="list_bd" type="text" placeholder="请输入城市" maxlength="18"/>
<p>*</p>
</div>
</div>
......@@ -80,9 +80,9 @@
<!-- 按钮 -->
<div class="btnBox">
<!-- <div class="btnTwo">立即提交</div> -->
<div v-if="status1=0" class="btnTwo">立即提交</div>
<div class="btnOne">正在审核中</div>
<div v-else class="btnOne">正在审核中</div>
</div>
</div>
......@@ -93,21 +93,29 @@
var vm = new Vue({
el: '#app',
data: {
'account': '',
'username': '',
'front_view': '__PUBLIC__/appapi/pay/img/iconCard-1.png',
'back_view': '__PUBLIC__/appapi/pay/img/iconCard-2.png',
'handset_view': '__PUBLIC__/appapi/pay/img/iconCard-3.png',
'name': '',
'bank_name': '',
'bank_card': '',
'bank_province': '',
'bank_city': '',
form: {
'uid': '',
'token': '',
'account': '',
'username': '',
'front_view': '',
'back_view': '',
'handset_view': '',
'name': '',
'bank_name': '',
'bank_card': '',
'bank_province': '',
'bank_city': '',
},
status: 3,
uploadName: '',
isFile: true,
isFile2: true,
isFile3: true,
upload_image: '__PUBLIC__/appapi/img/iconCard-1.png',
upload_image2: '__PUBLIC__/appapi/img/iconCard-2.png',
upload_image3: '__PUBLIC__/appapi/img/iconCard-3.png',
isSubmit: true,
},
methods: {
info() {
......@@ -194,13 +202,22 @@
},
error: function (data) {
layer.msg("上传失败");
console.log(data);
_this.isFile = true
_this.isFile2 = true
_this.isFile3 = true
}
});
},
checkSubmit: function () {
let status = false;
for (let i in this.form) {
if (this.form[i] === '') {
status = true;
break;
}
}
this.isSubmit = status;
},
},
watch: {
//数据监测函数
......@@ -209,6 +226,9 @@
//加载触发函数
let _this = this;
let url = _this.url('/index.php?g=Appapi&m=Profit&a=authInfo');
let info = _this.info();
_this.form.uid = info.id;
_this.form.token = info.token;
$.ajax({
url: url,
dataType: "json",
......@@ -227,16 +247,16 @@
return;
}
if (d.status == 0) {
_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.form.account = d.account
_this.form.username = d.username;
_this.form.front_view = d.front_view;
_this.form.back_view = d.back_view;
_this.form.handset_view = d.handset_view;
_this.form.name = d.name;
_this.form.bank_name = d.bank_name;
_this.form.bank_card = d.bank_card;
_this.form.bank_province = d.bank_province;
_this.form.bank_city = d.bank_city;
}
} else {
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