|
|
- <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>
- </view>
- </template>
-
- <script>
- 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;
- }
- }
-
- .next-button {
- position: fixed;
- bottom: 20px; // 距离页面底部20px
- left: 16px; // 与页面左边保持一定距离
- right: 16px; // 与页面右边保持一定距离
- background: $uni-linear-gradient-btn-color; // 按钮背景渐变
- color: white; // 按钮文字颜色
- text-align: center; // 文字居中
- padding: 10px 0; // 内边距,增加按钮的高度
- font-size: 18px; // 按钮文字大小
- z-index: 1000; // 确保按钮位于其他内容的上方
- display: flex;
- justify-content: center;
- align-items: center;
- width: 50%;
- height: 80rpx;
- border-radius: 10rpx;
- }
-
- }
-
-
-
- </style>
|