167 lines
3.9 KiB
Vue
167 lines
3.9 KiB
Vue
<template>
|
|
<view class="content w-100 h-100">
|
|
<HeaderTop page_title='认证'></HeaderTop>
|
|
<view class="progress bg-linear-gradient w-100">
|
|
<uni-steps :options="[{title: '基本信息'}, {title: '资质图片'}, {title: '税务信息'}]" :active=list_index active-color='#FFFFFF'></uni-steps>
|
|
</view>
|
|
<view class="x-bg-white padding-30">税务信息</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
<text class="mr-1 text-danger">*</text>
|
|
发票抬头</view>
|
|
<input class="px-1 font-md flex-1" type="text"
|
|
v-model="form.invoiceTitle"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
<text class="mr-1 text-danger">*</text>
|
|
纳税人识别码</view>
|
|
<input class="px-1 font-md flex-1" type="text"
|
|
v-model="form.taxpayer"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
<text class="mr-1 text-danger">*</text>
|
|
开户行</view>
|
|
<input class="px-1 font-md flex-1" type="text"
|
|
v-model="form.openingBank"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
<text class="mr-1 text-danger">*</text>
|
|
对公账号</view>
|
|
<input class="px-1 font-md flex-1" type="text"
|
|
v-model="form.hedgeFund"/>
|
|
</view>
|
|
<view class="x_public_box x-text-white x-bg-159 margin-shu20 editBtn w-90" style="line-height: 80upx;" @click="next()">提交</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import authentication from '../../utils/models/auth.js'
|
|
import HeaderTop from '../../components/HeaderTop/HeaderTop.vue'
|
|
export default {
|
|
components: {
|
|
HeaderTop
|
|
},
|
|
data() {
|
|
return {
|
|
list_index:2,
|
|
form:{
|
|
invoiceTitle:'', //发票抬头
|
|
taxpayer:"",//纳税人识别号
|
|
hedgeFund:"",//对公账号
|
|
openingBank:"",//开户行
|
|
name:"",//持卡人姓名
|
|
},
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
|
|
},
|
|
methods: {
|
|
// 提交认证
|
|
next(){
|
|
let that = this
|
|
uni.showModal({
|
|
title: '提示',
|
|
content: '是否确认提交认证',
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
that.do_submit()
|
|
uni.showToast({
|
|
title: '资质提交成功!等待客服审核',
|
|
duration: 2000,
|
|
icon: 'none'
|
|
});
|
|
} else if (res.cancel) {
|
|
|
|
}
|
|
}
|
|
});
|
|
},
|
|
async do_submit(){
|
|
let res = await authentication.authBank(this.form.invoiceTitle,
|
|
this.form.taxpayer,
|
|
this.form.openingBank,
|
|
this.form.hedgeFund,
|
|
this.form.name)
|
|
this.handleError(res, res => {
|
|
})
|
|
// uni.switchTab({
|
|
// url:'../my/my'
|
|
// })
|
|
uni.redirectTo({
|
|
url:'../auth/is_Authentication'
|
|
});
|
|
},
|
|
async getInfo() {
|
|
let data = await authentication.viewBank()
|
|
let info = data.data
|
|
if (info) {
|
|
this.is_edit = false
|
|
this.form.invoiceTitle = info.invoice_title
|
|
this.form.taxpayer = info.tax_number
|
|
this.form.hedgeFund = info.bank_account
|
|
this.form.openingBank = info.bank_name
|
|
this.form.name = info.account_name
|
|
}
|
|
this.handleError(data, res => {
|
|
|
|
})
|
|
}
|
|
},
|
|
onShow() {
|
|
this.getInfo()
|
|
},
|
|
created() {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.page{
|
|
background: #F7F7F7;
|
|
}
|
|
.place {
|
|
background-color: #ffffff;
|
|
height: 148upx;
|
|
}
|
|
|
|
.b_header {
|
|
|
|
height: 148upx;
|
|
|
|
width: 100%;
|
|
z-index: 1000;
|
|
font-size: 32upx;
|
|
}
|
|
.content {
|
|
.header {
|
|
height: 148upx;
|
|
font-size: 32upx;
|
|
position: relative;
|
|
line-height: 194upx;
|
|
|
|
.edit_shoppingCar {
|
|
position: absolute;
|
|
bottom: -48upx;
|
|
right: 31upx;
|
|
}
|
|
}
|
|
|
|
}
|
|
.progress{
|
|
color:#FFFFFF;
|
|
padding-top: 30px;
|
|
height:200upx;
|
|
|
|
}
|
|
.btn3{
|
|
width: 340upx;height: 82upx;
|
|
|
|
}
|
|
|
|
</style>
|