327 lines
7.7 KiB
Vue
327 lines
7.7 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="top">
|
|
<view class="base">
|
|
<view class="base-tab">
|
|
<view class="base-tab-item">
|
|
<image class="base-tab-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/e1dd45fe9a8163d9781ee4162c192ae0.png" mode="aspectFill"></image>
|
|
<view class="base-tab-cont">
|
|
<view class="base-tab-name">
|
|
银行信息
|
|
</view>
|
|
<view class="base-tab-tips" @click="$Router.replace({name: 'userBank'})">
|
|
去查看 >
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="base-tab-spot">
|
|
<text></text>
|
|
<text></text>
|
|
<text></text>
|
|
</view>
|
|
<view class="base-tab-item">
|
|
<image class="base-tab-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/b1eda850ca6b6ad74695d92617e9cdb5.png" mode="aspectFill"></image>
|
|
<view class="base-tab-cont">
|
|
<view class="base-tab-name">
|
|
其他信息
|
|
</view>
|
|
<view class="base-tab-tips">
|
|
已完善 √
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="white">
|
|
<view class="base-title">
|
|
<view class="base-name">
|
|
基本信息
|
|
</view>
|
|
</view>
|
|
<view class="base-list">
|
|
<view class="base-block">
|
|
<block v-for="(items, itemsIndex) in backParams" :key="itemsIndex">
|
|
<view class="base-block-name" v-if="items.label == 2">
|
|
<text>*</text>{{items.title}}
|
|
</view>
|
|
<!-- 描述 -->
|
|
<block v-if="items.label == 2">
|
|
<view class="base-block-textarea" v-if="items.type === 'textarea'">
|
|
{{items.value || '--'}}
|
|
</view>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { userBank, bankPut } from '@/apis/interfaces/user'
|
|
|
|
import mouldCheckbox from '@/components/mould-checkbox.vue'
|
|
import mouldInput from '@/components/mould-input.vue'
|
|
import mouldRadio from '@/components/mould-radio.vue'
|
|
import mouldText from '@/components/mould-text.vue'
|
|
import mouldSelect from '@/components/mould_select.vue'
|
|
import mouldDate from '@/components/mould-date.vue'
|
|
export default {
|
|
components: {
|
|
mouldCheckbox,
|
|
mouldInput,
|
|
mouldRadio,
|
|
mouldText,
|
|
mouldSelect,
|
|
mouldDate
|
|
},
|
|
data() {
|
|
return {
|
|
disabled : false, // 按钮状态
|
|
bankData : '', // 基础信息
|
|
backParams: [], // 字段数组
|
|
|
|
values : '',
|
|
|
|
marriage: [],
|
|
marriageIndex : 0, // 婚姻选择index
|
|
|
|
education: [],
|
|
educationIndex: 0, // 学历选择index
|
|
}
|
|
},
|
|
onShow() {
|
|
// 获取基础信息
|
|
this.baseInfo();
|
|
},
|
|
methods: {
|
|
|
|
// 基础信息
|
|
baseInfo() {
|
|
userBank(this.$Route.query.id).then(res => {
|
|
this.bankData = res
|
|
this.backParams = res.params
|
|
this.values = res.values
|
|
}).catch( err => {
|
|
uni.showToast({
|
|
title: err.message,
|
|
icon: "none"
|
|
})
|
|
})
|
|
},
|
|
|
|
// 提交信息
|
|
infoSubmit() {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.top {
|
|
background-color: #f5f5f5;
|
|
position: relative;
|
|
height: 100vh;
|
|
overflow-y: scroll;
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
background-color: $mian-color;
|
|
border-radius: 0 0 $radius*5 $radius*5;
|
|
width: 100%;
|
|
height: 260rpx;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
.base {
|
|
position: absolute;
|
|
z-index: 9;
|
|
padding: $padding + 20 $padding;
|
|
box-sizing: border-box;
|
|
.base-tab {
|
|
overflow: hidden;
|
|
display: flex;
|
|
padding: 0 $padding 10rpx 10rpx;
|
|
position: relative;
|
|
.base-tab-item {
|
|
color: #ffffff;
|
|
position: relative;
|
|
display: flex;
|
|
.base-tab-img {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
}
|
|
.base-tab-cont {
|
|
padding-top: $padding - 15;
|
|
box-sizing: border-box;
|
|
.base-tab-name {
|
|
font-size: $title-size-sm;
|
|
}
|
|
.base-tab-tips {
|
|
font-size: $title-size-sm - 2;
|
|
border: 2rpx solid #ffeaea;
|
|
border-radius: $radius * 4;
|
|
width: 110rpx;
|
|
text-align: center;
|
|
opacity: .8;
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
.base-tab-spot {
|
|
text-align: center;
|
|
width: 180rpx;
|
|
float: left;
|
|
margin-top: $margin;
|
|
text {
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
display: inline-block;
|
|
margin-left: 15rpx;
|
|
&:nth-child(1) {
|
|
width: 10rpx;
|
|
height: 10rpx;
|
|
opacity: .5;
|
|
}
|
|
&:nth-child(2) {
|
|
width: 14rpx;
|
|
height: 14rpx;
|
|
opacity: .8;
|
|
}
|
|
&:nth-child(3) {
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.white {
|
|
padding: $padding $padding 0;
|
|
box-sizing: border-box;
|
|
background-color: #ffffff;
|
|
border-radius: $radius-m;
|
|
overflow: hidden;
|
|
.base-title {
|
|
display: flex;
|
|
line-height: 38rpx;
|
|
.base-name {
|
|
flex: 1;
|
|
color: $mian-color;
|
|
font-weight: 600;
|
|
font-size: $title-size + 2;
|
|
}
|
|
.base-number {
|
|
color: #999999;
|
|
font-size: $title-size-m;
|
|
}
|
|
}
|
|
.base-list {
|
|
margin: 0 -10rpx 0;
|
|
overflow: hidden;
|
|
.base-block {
|
|
// width: calc(50% - 20rpx);
|
|
width: calc(100% - 20rpx);
|
|
margin: 0 10rpx $margin + 10;
|
|
float: left;
|
|
position: relative;
|
|
.base-block-name {
|
|
margin: $margin + 20 0 $margin - 10;
|
|
color: #111111;
|
|
text {
|
|
color: $mian-color;
|
|
padding-right: 10rpx;
|
|
}
|
|
}
|
|
.base-block-textarea {
|
|
background-color: #F6F6F6;
|
|
border-radius: $radius-sm;
|
|
padding: $padding;
|
|
font-size: $title-size-lg;
|
|
color: #111111;
|
|
}
|
|
.base-block-write {
|
|
background-color: #F6F6F6;
|
|
border-radius: $radius-sm;
|
|
padding: 0 $padding;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
display: flex;
|
|
color: #111111;
|
|
font-size: $title-size-m;
|
|
height: 84rpx;
|
|
line-height: 84rpx;
|
|
&.prohibit {
|
|
color: #999999;
|
|
}
|
|
.idcardAdd-picker {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.base-block-input {
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: $title-size-lg;
|
|
}
|
|
.base-block-textarea {
|
|
padding: $padding 0;
|
|
}
|
|
.idcardAdd-input {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
.placeholderClass {
|
|
color: #999999;
|
|
}
|
|
image {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
position: absolute;
|
|
top: $margin;
|
|
right: $margin;
|
|
}
|
|
}
|
|
.base-block-site {
|
|
display: flex;
|
|
margin: 0 -5rpx;
|
|
.base-site-white {
|
|
background-color: #F6F6F6;
|
|
border-radius: $radius-sm;
|
|
flex: 3;
|
|
color: #111111;
|
|
font-size: $title-size-lg;
|
|
height: 84rpx;
|
|
line-height: 84rpx;
|
|
padding: 0 $padding - 10 0 $padding;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
margin: 0 5rpx;
|
|
width: 100%;
|
|
.picker {
|
|
width: calc(100% - 30rpx)
|
|
}
|
|
image {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
position: absolute;
|
|
top: $margin;
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
.idcardAdd-aline {
|
|
font-size: $title-size-m;
|
|
color: $mian-color;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
.baseAline {
|
|
width: calc(100% - 20rpx);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
</style> |