age.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="form-box" >
  3. <en-nav title="年龄&星座" :title-color="'#333'" :right-show="true" :right-type="2" @navHeight="setNavHeight" >
  4. <template v-slot:right>
  5. <text class="nav-right sys-weight-600 sys-color-white">保存</text>
  6. </template>
  7. </en-nav>
  8. <view :style="{'height':'calc(100vh - '+navHeight+'px)'}">
  9. <view class="from-data" >
  10. <view class="from-input">
  11. <view class="from-item-title sys-height-44 sys-weight-400" >出生日期</view>
  12. <view class="from-item-data">
  13. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">1995-9-16</view>
  14. <view class="item-data-icon">
  15. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="from-input">
  20. <view class="from-item-title sys-height-44 sys-weight-400" >年龄</view>
  21. <view class="from-item-data">
  22. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">27</view>
  23. <view class="item-data-icon">
  24. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="from-input">
  29. <view class="from-item-title sys-height-44 sys-weight-400" >星座</view>
  30. <view class="from-item-data">
  31. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">处女座</view>
  32. <view class="item-data-icon">
  33. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="from-text sys-color-gray-9">
  39. 1.输入出生时间(公历),系统自动计算年龄和星座, 匹配也会 更加准确。
  40. </view>
  41. <view class="from-text sys-color-gray-9">
  42. 2.此应用需年满18周岁使用
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import EnNav from "@/components/en-utils/en-nav/en-nav";
  49. export default {
  50. components: {EnNav},
  51. data() {
  52. return {
  53. navHeight:0
  54. }
  55. },
  56. methods: {
  57. setNavHeight(navHeight){
  58. this.navHeight=navHeight
  59. },
  60. }
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .form-box{
  65. background: #F8F8F8;
  66. .nav-right{
  67. font-size: 28rpx;
  68. line-height: 44rpx;
  69. color: #333;
  70. }
  71. .from-data{
  72. margin: 32rpx;
  73. border-radius: 20rpx;
  74. background-color: #fff;
  75. .from-input{
  76. padding: 32rpx 28rpx;
  77. border-bottom: 1rpx solid #F2F2F2;
  78. display: flex;
  79. justify-content: space-between;
  80. .from-item-title{
  81. color: #000000;
  82. font-size: 28rpx;
  83. }
  84. .from-item-data{
  85. display: flex;
  86. justify-content: space-between;
  87. .item-data-text{
  88. font-size: 28rpx;
  89. }
  90. .item-data-icon{
  91. .iconfont{
  92. font-size: 28rpx;
  93. line-height: 50rpx;
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .from-text{
  100. margin-top: 24rpx;
  101. padding: 0 32rpx;
  102. font-size: 24rpx;
  103. }
  104. }
  105. </style>