companyDev.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. };
  41. },
  42. components: {
  43. navBar,
  44. },
  45. onLoad(options) {
  46. let companyInfo = uni.getStorageSync('companyInfo');
  47. this.check = companyInfo.companyDevelop || null;
  48. },
  49. methods: {
  50. checkItem(index) {
  51. this.check = index;
  52. },
  53. goJobPostingSecond() {
  54. let companyData = {
  55. companyId: this.$queue.getData('companyId'),
  56. companyDevelop:this.check
  57. }
  58. this.$Request.postJson('/app/company/updateCompany', companyData).then(res => {
  59. console.log(res)
  60. if(res.code == 0){
  61. uni.showToast({
  62. title: '提交成功',
  63. duration: 1500,
  64. });
  65. setTimeout(()=>{
  66. uni.switchTab({
  67. url: '/pages/my/index'
  68. });
  69. },500)
  70. }
  71. })
  72. // uni.navigateTo({
  73. // url: "/my/renzheng/companyFund?companyData=" +
  74. // encodeURIComponent(JSON.stringify(companyData)) + '&update=true'
  75. // })
  76. }
  77. },
  78. };
  79. </script>
  80. <style lang="scss" scoped>
  81. .switch-roles {
  82. background-color: #fff;
  83. position: absolute;
  84. left: 0;
  85. right: 0;
  86. top: 0;
  87. bottom: 0;
  88. display: flex;
  89. flex-direction: column;
  90. .roles-content {
  91. width: 100%;
  92. flex: 1;
  93. overflow: hidden;
  94. overflow-y: auto;
  95. .content {
  96. padding: 40rpx;
  97. box-sizing: border-box;
  98. display: flex;
  99. flex-direction: column;
  100. align-items: center;
  101. justify-content: center;
  102. .progress-num {
  103. color: #016bf6;
  104. font-family: DM Sans;
  105. font-size: 24rpx;
  106. font-weight: 500;
  107. width: 100%;
  108. padding-bottom: 20rpx;
  109. box-sizing: border-box;
  110. text {
  111. font-size: 48rpx;
  112. font-weight: 700;
  113. }
  114. }
  115. .title {
  116. color: #333;
  117. width: 100%;
  118. font-family: DM Sans;
  119. font-size: 48rpx;
  120. font-weight: 700;
  121. }
  122. .desc {
  123. color: rgba(102, 102, 102, 1);
  124. width: 100%;
  125. font-family: DM Sans;
  126. font-size: 24rpx;
  127. font-weight: 400;
  128. line-height: 32rpx;
  129. letter-spacing: 0.5%;
  130. text-align: left;
  131. padding: 20rpx 0;
  132. box-sizing: border-box;
  133. }
  134. .check-box {
  135. width: 100%;
  136. .check-item {
  137. padding: 24rpx 32rpx;
  138. box-sizing: border-box;
  139. border-radius: 100rpx;
  140. border: 2rpx solid rgba(227, 231, 236, 1);
  141. display: flex;
  142. align-items: center;
  143. gap: 32rpx;
  144. margin-bottom: 20rpx;
  145. .check-icon {
  146. width: 48rpx;
  147. height: 48rpx;
  148. border-radius: 50%;
  149. border: 2rpx solid rgba(227, 231, 236, 1);
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. }
  154. .check-icon-active {
  155. background-color: #016bf6;
  156. border-color: #016bf6;
  157. }
  158. .check-txt {
  159. color: rgba(23, 23, 37, 1);
  160. font-family: DM Sans;
  161. font-size: 28rpx;
  162. font-weight: 400;
  163. line-height: 48rpx;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. .submit-btn {
  170. flex-shrink: 0;
  171. border-radius: 999px;
  172. background: #ff6600;
  173. color: rgba(255, 255, 255, 1);
  174. font-family: DM Sans;
  175. font-size: 32rpx;
  176. font-weight: 400;
  177. line-height: 48rpx;
  178. display: flex;
  179. justify-content: center;
  180. align-items: center;
  181. padding: 16rpx 32rpx;
  182. box-sizing: border-box;
  183. margin: 60rpx 62rpx;
  184. }
  185. }
  186. </style>