详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

140 lines
2.9 KiB

<template>
<view>
<view class="work-tag">
<view class="lf-row-between lf-m-b-30">
<view class="lf-font-28 lf-color-333"><text class="lf-font-28" style="color: #E21196;">*</text>婚史要求</view>
<picker mode='selector' @change="getValue('index', $event)" :value="index" :range="array" range-key="name">
<view>
{{array[index].name}}
<u-icon name="arrow-right lf-color-777"></u-icon>
</view>
</picker>
</view>
<view class="lf-row-between lf-m-b-30">
<view class="lf-font-28 lf-color-333"><text class="lf-font-28" style="color: #E21196;">*</text>最低身高</view>
<picker mode='selector' @change="getValue('index', $event)" :value="index" :range="array" range-key="name">
<view>
{{array[index].name}}
<u-icon name="arrow-right lf-color-777"></u-icon>
</view>
</picker>
</view>
<view class="lf-flex-column lf-m-b-30">
<view class="lf-font-28 lf-color-333 lf-m-b-20 lf-row-between">
<view><text class="lf-font-28" style="color: #E21196;">*</text>其他要求</view>
<view class="lf-m-r-10">{{ contentArea.length }}/200</view>
</view>
<view>
<textarea class="perfance-area" maxlength="200" v-model="contentArea" placeholder="请输入" />
</view>
</view>
<view class="work-btn">
保存
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
array: [
{name: '6万到8万'},
{name: '十万到十二万'},
],
index: 0,
selectname: '',
arra1y: [
{name: '父亲'},
{name: '母亲'},
],
index1: 1,
contentArea: ''
}
},
methods: {
getValue(current, e) {
// this[name] = e.target.value
console.log(e)
this[current] = e.target.value
}
}
}
</script>
<style>
page {
background-color: #F5F5F5;
}
</style>
<style lang="scss" scoped="scoped">
.perfance-area {
background-color: #F5F5F5;
width: 560rpx;
border-radius: 10rpx;
padding: 30rpx;
}
.work-btn {
width: 626rpx;
height: 90rpx;
background: #E21196;
border-radius: 45rpx;
color: white;
font-size: 32rpx;
display: flex;
justify-content: center;
text-align: center;
align-items: center;
margin-top: 40rpx;
}
.tag-content {
width: 600rpx;
flex-wrap: wrap;
display: flex;
}
.personal-tag {
width: max-content;
padding: 8rpx 25rpx;
height: 55rpx;
border-radius: 28rpx;
border: 1rpx solid #E21196;
color: #E21196;
font-size: 28rpx;
margin-right: 15rpx;
display: flex;
justify-content: center;
align-items: center;
&:nth-child(4n) {
margin-right: 0;
}
&:nth-child(n + 5) {
margin-top: 20rpx;
}
}
.work-tag {
height: 100%!important;
}
.work-tag {
width: 686rpx;
height: 215rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin: 30rpx auto;
display: flex;
flex-direction: column;
/* justify-content: space-around; */
padding: 30rpx;
}
</style>