peopleNumber.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view class="switch-roles">
  3. <nav-bar title="选择公司规模" color="#000"></nav-bar>
  4. <view class="roles-content">
  5. <view class="content">
  6. <view class="title">公司规模</view>
  7. <view class="desc">“深圳市汉睿国际猎头服务有限公司”的人员规模</view>
  8. <view class="check-box">
  9. <view
  10. class="check-item"
  11. :class="{ 'is-check': check == index }"
  12. v-for="(item, index) in peopleList"
  13. :key="index"
  14. @click="checkPeople(index)"
  15. >{{ item }}</view
  16. >
  17. </view>
  18. </view>
  19. </view>
  20. <view class="submit-btn">确定</view>
  21. </view>
  22. </template>
  23. <script>
  24. import navBar from "@/components/nav-bar/index.vue";
  25. export default {
  26. data() {
  27. return {
  28. peopleList: [
  29. "0-20人",
  30. "20-99人",
  31. "100-499人",
  32. "500-999人",
  33. "1000-9999人",
  34. "10000人以上",
  35. ],
  36. check: 0,
  37. };
  38. },
  39. components: {
  40. navBar,
  41. },
  42. methods: {
  43. goBusinessLicense() {
  44. uni.navigateTo({ url: "/pages/my/businessLicense" });
  45. },
  46. checkPeople(index) {
  47. this.check = index;
  48. },
  49. },
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .switch-roles {
  54. background-color: #fff;
  55. position: absolute;
  56. left: 0;
  57. right: 0;
  58. top: 0;
  59. bottom: 0;
  60. display: flex;
  61. flex-direction: column;
  62. .roles-content {
  63. width: 100%;
  64. flex: 1;
  65. overflow: hidden;
  66. overflow-y: auto;
  67. .content {
  68. padding: 40rpx;
  69. box-sizing: border-box;
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. justify-content: center;
  74. .title {
  75. color: #333;
  76. width: 100%;
  77. font-family: DM Sans;
  78. font-size: 40rpx;
  79. font-weight: 600;
  80. }
  81. .desc {
  82. color: rgba(102, 102, 102, 1);
  83. width: 100%;
  84. font-family: DM Sans;
  85. font-size: 24rpx;
  86. font-weight: 400;
  87. line-height: 32rpx;
  88. letter-spacing: 0.5%;
  89. text-align: left;
  90. padding: 20rpx 0;
  91. box-sizing: border-box;
  92. }
  93. .check-box {
  94. width: 100%;
  95. display: grid;
  96. grid-template-columns: repeat(2, 1fr);
  97. gap: 24rpx;
  98. .check-item {
  99. border-radius: 16rpx;
  100. background: rgba(245, 248, 254, 1);
  101. color: rgba(153, 153, 153, 1);
  102. font-family: DM Sans;
  103. font-size: 28rpx;
  104. font-weight: 400;
  105. line-height: 44rpx;
  106. text-align: center;
  107. padding: 12rpx 48rpx;
  108. box-sizing: border-box;
  109. }
  110. .is-check {
  111. box-sizing: border-box;
  112. border: 1rpx solid #016bf6;
  113. border-radius: 16rpx;
  114. background: rgba(252, 233, 220, 1);
  115. color: #016bf6;
  116. }
  117. }
  118. }
  119. }
  120. .submit-btn {
  121. flex-shrink: 0;
  122. border-radius: 999px;
  123. box-shadow: 0px 2px 4px 0px rgba(9, 196, 116, 0.3);
  124. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  125. color: rgba(255, 255, 255, 1);
  126. font-family: DM Sans;
  127. font-size: 32rpx;
  128. font-weight: 400;
  129. line-height: 48rpx;
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. padding: 16rpx 32rpx;
  134. box-sizing: border-box;
  135. margin: 60rpx 20rpx;
  136. }
  137. }
  138. </style>