companyDev.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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="progress-num"> <text>2</text>/8 </view>
  7. <view class="title">公司发展阶段</view>
  8. <view class="desc">
  9. 公司融资状态是公司阶段的重要体现之一,使企业形象更加丰富和全面
  10. </view>
  11. <view class="check-box">
  12. <view class="check-item" v-for="(item, index) in checkList" :key="index" @click="checkItem(item)">
  13. <view class="check-icon" :class="{ 'check-icon-active': check == item }">
  14. <u-icon name="checkmark" color="#fff" size="28" v-if="check == item"></u-icon>
  15. </view>
  16. <view class="check-txt">{{ item }}</view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="submit-btn" @click="goJobPostingSecond">下一步</view>
  22. </view>
  23. </template>
  24. <script>
  25. import navBar from "@/components/nav-bar/index.vue";
  26. export default {
  27. data() {
  28. return {
  29. checkList: [
  30. "未融资",
  31. "天使轮",
  32. "A轮",
  33. "B轮",
  34. "C轮",
  35. "D轮及以上",
  36. "已上市",
  37. "不需要融资",
  38. ],
  39. check: null,
  40. companyData: {}
  41. };
  42. },
  43. components: {
  44. navBar,
  45. },
  46. onLoad(options) {
  47. if (options.update == 'true') {
  48. let companyInfo = uni.getStorageSync('companyInfo');
  49. this.check=companyInfo.companyDevelop;
  50. }
  51. if (options.companyData) {
  52. this.companyData = JSON.parse(options.companyData);
  53. }
  54. },
  55. methods: {
  56. checkItem(index) {
  57. this.check = index;
  58. },
  59. goJobPostingSecond() {
  60. const companyData = this.companyData
  61. companyData.companyDevelop = this.check
  62. console.log(companyData);
  63. uni.navigateTo({
  64. url: "/my/renzheng/companyFund?companyData=" +
  65. encodeURIComponent(JSON.stringify(companyData))+'&update=true'
  66. })
  67. }
  68. },
  69. };
  70. </script>
  71. <style lang="scss" scoped>
  72. .switch-roles {
  73. background-color: #fff;
  74. position: absolute;
  75. left: 0;
  76. right: 0;
  77. top: 0;
  78. bottom: 0;
  79. display: flex;
  80. flex-direction: column;
  81. .roles-content {
  82. width: 100%;
  83. flex: 1;
  84. overflow: hidden;
  85. overflow-y: auto;
  86. .content {
  87. padding: 40rpx;
  88. box-sizing: border-box;
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. justify-content: center;
  93. .progress-num {
  94. color: #016bf6;
  95. font-family: DM Sans;
  96. font-size: 24rpx;
  97. font-weight: 500;
  98. width: 100%;
  99. padding-bottom: 20rpx;
  100. box-sizing: border-box;
  101. text {
  102. font-size: 48rpx;
  103. font-weight: 700;
  104. }
  105. }
  106. .title {
  107. color: #333;
  108. width: 100%;
  109. font-family: DM Sans;
  110. font-size: 48rpx;
  111. font-weight: 700;
  112. }
  113. .desc {
  114. color: rgba(102, 102, 102, 1);
  115. width: 100%;
  116. font-family: DM Sans;
  117. font-size: 24rpx;
  118. font-weight: 400;
  119. line-height: 32rpx;
  120. letter-spacing: 0.5%;
  121. text-align: left;
  122. padding: 20rpx 0;
  123. box-sizing: border-box;
  124. }
  125. .check-box {
  126. width: 100%;
  127. .check-item {
  128. padding: 24rpx 32rpx;
  129. box-sizing: border-box;
  130. border-radius: 100rpx;
  131. border: 2rpx solid rgba(227, 231, 236, 1);
  132. display: flex;
  133. align-items: center;
  134. gap: 32rpx;
  135. margin-bottom: 20rpx;
  136. .check-icon {
  137. width: 48rpx;
  138. height: 48rpx;
  139. border-radius: 50%;
  140. border: 2rpx solid rgba(227, 231, 236, 1);
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. }
  145. .check-icon-active {
  146. background-color: #016bf6;
  147. border-color: #016bf6;
  148. }
  149. .check-txt {
  150. color: rgba(23, 23, 37, 1);
  151. font-family: DM Sans;
  152. font-size: 28rpx;
  153. font-weight: 400;
  154. line-height: 48rpx;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. .submit-btn {
  161. flex-shrink: 0;
  162. border-radius: 999px;
  163. background: #ff6600;
  164. color: rgba(255, 255, 255, 1);
  165. font-family: DM Sans;
  166. font-size: 32rpx;
  167. font-weight: 400;
  168. line-height: 48rpx;
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. padding: 16rpx 32rpx;
  173. box-sizing: border-box;
  174. margin: 60rpx 62rpx;
  175. }
  176. }
  177. </style>