<template>
|
|
<view class="addBankCard">
|
|
<!--顶部导航栏-->
|
|
<navbar leftClick @leftClick="$utils.navigateBack" title="添加银行卡"/>
|
|
|
|
<!--添加银行卡页面-->
|
|
<view class="container">
|
|
<view class="header">
|
|
<text>为保证您的资金安全,请绑定账户本人的银行卡</text>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">卡号</text>
|
|
<view class="card-info">
|
|
<radio-group>
|
|
<label>
|
|
<radio value="建行" checked="true"></radio>
|
|
<text>中国建设银行</text>
|
|
</label>
|
|
</radio-group>
|
|
<view class="camera-icon" @click="onCameraClick">
|
|
<image src="/static/image/addBankCard/1.svg"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">姓名</text>
|
|
<input class="input" placeholder="请输入姓名" v-model="name" />
|
|
</view>
|
|
|
|
<view class="form-item">
|
|
<text class="label">身份证号</text>
|
|
<input class="input" placeholder="请输入身份证号" v-model="idCard" />
|
|
</view>
|
|
|
|
<!--<button class="next-button" @click="onNextClick">下一步</button>-->
|
|
</view>
|
|
|
|
<!--下一步按钮-->
|
|
<button @click="onNextClick" class="bottomBtn">
|
|
下一步
|
|
</button>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import '../../common.css'; // 引入公共 CSS 文件
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
name: 'xiaohua',
|
|
idCard: '2101472154874512'
|
|
};
|
|
},
|
|
methods: {
|
|
onCameraClick() {
|
|
// 添加拍照或选择图片的逻辑
|
|
},
|
|
onNextClick() {
|
|
this.$utils.navigateTo("/mine/purse");
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.container {
|
|
padding: 16px;
|
|
|
|
.header {
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.form-item {
|
|
margin-bottom: 20px;
|
|
|
|
.label {
|
|
font-size: 16px;
|
|
margin-bottom: 10px;
|
|
display: block;
|
|
}
|
|
|
|
.card-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
.camera-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|