peopleNumber.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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" @click="goJobPosting">确定</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. goJobPosting(){
  50. uni.navigateTo({
  51. url:'/pages/my/jobPosting'
  52. })
  53. },
  54. },
  55. };
  56. </script>
  57. <style lang="scss" scoped>
  58. .switch-roles {
  59. background-color: #fff;
  60. position: absolute;
  61. left: 0;
  62. right: 0;
  63. top: 0;
  64. bottom: 0;
  65. display: flex;
  66. flex-direction: column;
  67. .roles-content {
  68. width: 100%;
  69. flex: 1;
  70. overflow: hidden;
  71. overflow-y: auto;
  72. .content {
  73. padding: 40rpx;
  74. box-sizing: border-box;
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. justify-content: center;
  79. .title {
  80. color: #333;
  81. width: 100%;
  82. font-family: DM Sans;
  83. font-size: 40rpx;
  84. font-weight: 600;
  85. }
  86. .desc {
  87. color: rgba(102, 102, 102, 1);
  88. width: 100%;
  89. font-family: DM Sans;
  90. font-size: 24rpx;
  91. font-weight: 400;
  92. line-height: 32rpx;
  93. letter-spacing: 0.5%;
  94. text-align: left;
  95. padding: 20rpx 0;
  96. box-sizing: border-box;
  97. }
  98. .check-box {
  99. width: 100%;
  100. display: grid;
  101. grid-template-columns: repeat(2, 1fr);
  102. gap: 24rpx;
  103. .check-item {
  104. border-radius: 16rpx;
  105. background: rgba(245, 248, 254, 1);
  106. color: rgba(153, 153, 153, 1);
  107. font-family: DM Sans;
  108. font-size: 28rpx;
  109. font-weight: 400;
  110. line-height: 44rpx;
  111. text-align: center;
  112. padding: 12rpx 48rpx;
  113. box-sizing: border-box;
  114. }
  115. .is-check {
  116. box-sizing: border-box;
  117. border: 1rpx solid #016bf6;
  118. border-radius: 16rpx;
  119. background: rgba(252, 233, 220, 1);
  120. color: #016bf6;
  121. }
  122. }
  123. }
  124. }
  125. .submit-btn {
  126. flex-shrink: 0;
  127. border-radius: 999px;
  128. box-shadow: 0px 2px 4px 0px rgba(9, 196, 116, 0.3);
  129. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  130. color: rgba(255, 255, 255, 1);
  131. font-family: DM Sans;
  132. font-size: 32rpx;
  133. font-weight: 400;
  134. line-height: 48rpx;
  135. display: flex;
  136. justify-content: center;
  137. align-items: center;
  138. padding: 16rpx 32rpx;
  139. box-sizing: border-box;
  140. margin: 60rpx 20rpx;
  141. }
  142. }
  143. </style>