Files
xingmeng-uniapp/pages/users/bank/addBankCard.vue
PC-202306242200\Administrator c7cbc11d07 first commit
2026-03-28 23:07:10 +08:00

121 lines
3.3 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="addBankCard p30">
<view style="height: 30rpx"></view>
<view>
<view class="addBankCard_input_tit">请输入{{ enterprise.type == 1 ? '姓名' : '企业名称' }}</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.name"></u-input>
</view>
<!-- <view v-if="enterprise.type == 2">
<view class="addBankCard_input_tit">请输入纳税人识别号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.taxNo"></u-input>
</view>
</view> -->
<view v-if="enterprise.type == 1">
<view class="addBankCard_input_tit">请输入手机号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.phone"></u-input>
</view>
</view>
<view v-if="enterprise.type == 1">
<view class="addBankCard_input_tit">请输入身份证号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.idCard"></u-input>
</view>
</view>
<!--
<view class="addBankCard_input_tit">请输入开户行名称</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.bankName"></u-input>
</view> -->
<view class="addBankCard_input_tit" v-if="enterprise.type == 2">请输入开户行</view>
<view class="addBankCard_input" v-if="enterprise.type == 2">
<u-input :border="false" placeholder="请输入" v-model="enterprise.subbranchName"></u-input>
</view>
<view class="addBankCard_input_tit">请输入银行卡卡号</view>
<view class="addBankCard_input">
<u-input :border="false" placeholder="请输入" v-model="enterprise.bankCard"></u-input>
</view>
</view>
<view style="margin: 30rpx 0">
<view style="font-size: 28rpx; color: coral">请仔细核对信息填写错误会导致提现失败</view>
</view>
<view style="display: flex; justify-content: center">
<view class="addBankCard_btn" @click="addBank">确定</view>
</view>
</view>
</template>
<script>
// registerVerify
import { addUsersAccountInfo } from '@/api/api';
export default {
data() {
return {
value: '',
getInfo: {},
enterprise: {
type: 1
},
bank: null
};
},
onLoad(options) {
this.enterprise.type = options.type;
},
methods: {
async addBank() {
if (this.enterprise.type == 2) {
this.enterprise.taxNo = '';
this.enterprise.bankName = '';
} else {
this.enterprise.bankName = '';
}
let _res = await addUsersAccountInfo(this.enterprise);
uni.showToast({ title: '添加成功', icon: 'none' });
setTimeout(() => {
uni.navigateBack();
}, 1500);
}
}
};
</script>
<style scoped lang="scss">
.addBankCard {
// @include flex();
&_input {
width: 690rpx;
height: 70rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
@include flex;
margin-bottom: 30rpx;
padding: 0 30rpx;
&_tit {
width: 100%;
font-weight: bold;
font-size: 26rpx;
color: #232323;
margin-bottom: 20rpx;
}
}
&_btn {
width: 488rpx;
height: 86rpx;
background: #e93323;
border-radius: 44rpx 44rpx 44rpx 44rpx;
@include flex($space: center);
font-weight: bold;
font-size: 28rpx;
color: #ffffff;
}
}
</style>