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

102 lines
2.7 KiB

  1. <template>
  2. <view class="lf-p-30">
  3. <view class="up-the-wall">
  4. <view class="lf-row-between lf-p-t-30 lf-p-b-30 border-register">
  5. <view class="lf-font-28 lf-color-333"><text class="lf-color-primary">*</text>身高</view>
  6. <view class="lf-font-28 lf-color-333 lf-row-between">
  7. <input class="input" placeholder="请输入" style="text-align: right;" />
  8. <text class="lf-m-l-10">cm</text>
  9. </view>
  10. </view>
  11. <view class="lf-row-between lf-p-t-30 lf-p-b-30 border-register">
  12. <view class="lf-font-28 lf-color-333"><text class="lf-color-primary">*</text>性别</view>
  13. <view class="lf-font-28 lf-color-333">
  14. <picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index">
  15. <text>{{ marriage[marriage_index] || '请选择' }}</text>
  16. </picker>
  17. </view>
  18. </view>
  19. <view class="lf-row-between lf-p-t-30 lf-p-b-30 border-register">
  20. <view class="lf-font-28 lf-color-333">性格特征(选填)</view>
  21. <view class="lf-font-28 lf-color-333">
  22. <picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index">
  23. <text>{{ marriage[marriage_index] || '请选择' }}</text>
  24. </picker>
  25. </view>
  26. </view>
  27. <view class="lf-flex-column lf-m-b-30 lf-p-t-30">
  28. <view class="lf-font-28 lf-color-333 lf-m-b-20 lf-row-between">
  29. <view><text class="lf-font-28 lf-color-primary">*</text>内心独白</view>
  30. <view class="lf-m-r-10">{{ contentArea.length }}/200</view>
  31. </view>
  32. <view>
  33. <textarea class="perfance-area" maxlength="200" v-model="contentArea" placeholder="展现自己,也可以说出您的故事~" />
  34. </view>
  35. </view>
  36. <button class="btn" hover-class="lf-opacity">不错,下一步</button>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data(){
  43. return {
  44. marriage: ['已婚', '未婚'],
  45. marriage_index: null,
  46. birth_date: '',
  47. contentArea: ''
  48. }
  49. },
  50. onLoad(){
  51. },
  52. methods: {
  53. getValue(current, event){
  54. this[current +'_index'] = event.detail.value;
  55. }
  56. }
  57. }
  58. </script>
  59. <style>
  60. page {
  61. background-color: #F5F5F5;
  62. }
  63. </style>
  64. <style scoped lang="scss">
  65. .perfance-area {
  66. background-color: #F5F5F5;
  67. width: 560rpx;
  68. border-radius: 10rpx;
  69. padding: 30rpx;
  70. }
  71. .up-the-wall {
  72. width: 100%;
  73. height: max-content;
  74. padding: 21rpx 32rpx 21rpx;
  75. background-color: white;
  76. border-radius: 10rpx;
  77. }
  78. /deep/.input-placeholder {
  79. /* placeholder颜色 */
  80. color: #777777;
  81. /* placeholder字体大小 */
  82. font-size: 28rpx;
  83. }
  84. .border-register {
  85. border-bottom: 1px solid #f5f5f5;
  86. }
  87. .btn{
  88. width: 100%;
  89. height: 90rpx;
  90. line-height: 90rpx;
  91. margin-top: 60rpx;
  92. padding-bottom: 10rpx;
  93. background: #E21196;
  94. border-radius: 46rpx;
  95. color: #FFFFFF;
  96. }
  97. </style>