详情小程序
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

  1. <template>
  2. <view>
  3. <view class="work-tag">
  4. <view class="lf-row-between lf-m-b-30">
  5. <view class="lf-font-28 lf-color-333"><text class="lf-font-28" style="color: #E21196;">*</text>婚史要求</view>
  6. <picker mode='selector' @change="getValue('index', $event)" :value="index" :range="array" range-key="name">
  7. <view>
  8. {{array[index].name}}
  9. <u-icon name="arrow-right lf-color-777"></u-icon>
  10. </view>
  11. </picker>
  12. </view>
  13. <view class="lf-row-between lf-m-b-30">
  14. <view class="lf-font-28 lf-color-333"><text class="lf-font-28" style="color: #E21196;">*</text>最低身高</view>
  15. <picker mode='selector' @change="getValue('index', $event)" :value="index" :range="array" range-key="name">
  16. <view>
  17. {{array[index].name}}
  18. <u-icon name="arrow-right lf-color-777"></u-icon>
  19. </view>
  20. </picker>
  21. </view>
  22. <view class="lf-flex-column lf-m-b-30">
  23. <view class="lf-font-28 lf-color-333 lf-m-b-20 lf-row-between">
  24. <view><text class="lf-font-28" style="color: #E21196;">*</text>其他要求</view>
  25. <view class="lf-m-r-10">{{ contentArea.length }}/200</view>
  26. </view>
  27. <view>
  28. <textarea class="perfance-area" maxlength="200" v-model="contentArea" placeholder="请输入" />
  29. </view>
  30. </view>
  31. <view class="work-btn">
  32. 保存
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. array: [
  42. {name: '6万到8万'},
  43. {name: '十万到十二万'},
  44. ],
  45. index: 0,
  46. selectname: '',
  47. arra1y: [
  48. {name: '父亲'},
  49. {name: '母亲'},
  50. ],
  51. index1: 1,
  52. contentArea: ''
  53. }
  54. },
  55. methods: {
  56. getValue(current, e) {
  57. // this[name] = e.target.value
  58. console.log(e)
  59. this[current] = e.target.value
  60. }
  61. }
  62. }
  63. </script>
  64. <style>
  65. page {
  66. background-color: #F5F5F5;
  67. }
  68. </style>
  69. <style lang="scss" scoped="scoped">
  70. .perfance-area {
  71. background-color: #F5F5F5;
  72. width: 560rpx;
  73. border-radius: 10rpx;
  74. padding: 30rpx;
  75. }
  76. .work-btn {
  77. width: 626rpx;
  78. height: 90rpx;
  79. background: #E21196;
  80. border-radius: 45rpx;
  81. color: white;
  82. font-size: 32rpx;
  83. display: flex;
  84. justify-content: center;
  85. text-align: center;
  86. align-items: center;
  87. margin-top: 40rpx;
  88. }
  89. .tag-content {
  90. width: 600rpx;
  91. flex-wrap: wrap;
  92. display: flex;
  93. }
  94. .personal-tag {
  95. width: max-content;
  96. padding: 8rpx 25rpx;
  97. height: 55rpx;
  98. border-radius: 28rpx;
  99. border: 1rpx solid #E21196;
  100. color: #E21196;
  101. font-size: 28rpx;
  102. margin-right: 15rpx;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. &:nth-child(4n) {
  107. margin-right: 0;
  108. }
  109. &:nth-child(n + 5) {
  110. margin-top: 20rpx;
  111. }
  112. }
  113. .work-tag {
  114. height: 100%!important;
  115. }
  116. .work-tag {
  117. width: 686rpx;
  118. height: 215rpx;
  119. background: #FFFFFF;
  120. border-radius: 10rpx;
  121. margin: 30rpx auto;
  122. display: flex;
  123. flex-direction: column;
  124. /* justify-content: space-around; */
  125. padding: 30rpx;
  126. }
  127. </style>