FormFirstStep.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <div class="requirements-type-container">
  3. <div class="requirements-type-title">请选择一种需求类型:</div>
  4. <div class="requirements-type-list">
  5. <div class="requirements-type-item" :class="type == 1?'cur':''" @click="selectType(1)">
  6. <div class="requirements-type-title-area">
  7. <div class="requirements-type-icon type1"></div>
  8. <div class="requirements-type-title">云端工作:</div>
  9. </div>
  10. <div class="requirements-type-purpose">我想明确找个人</div>
  11. <ul class="requirements-type-purpose-list">
  12. <li>我需要个前端开发者?</li>
  13. <li>我需要个java开发者?</li>
  14. <li>我需要个爬虫工程师?</li>
  15. <li>我需要个安卓/IOS开发者?</li>
  16. </ul>
  17. <div class="requirements-type-payment">按月付费</div>
  18. </div>
  19. <div class="requirements-type-item" :class="type == 2?'cur':''" @click="selectType(2)">
  20. <div class="requirements-type-title-area">
  21. <div class="requirements-type-icon type2"></div>
  22. <div class="requirements-type-title">项目整包</div>
  23. </div>
  24. <div class="requirements-type-purpose">我有个项目要开发:</div>
  25. <ul class="requirements-type-purpose-list">
  26. <li>我要开发个网站?我要开发个小程序?</li>
  27. <li>我要开发个APP?</li>
  28. <li>我要做个游戏?我要爬个网站?</li>
  29. </ul>
  30. <div class="requirements-type-payment">按项目付费</div>
  31. </div>
  32. <div class="requirements-type-item" :class="type == 3?'cur':''" @click="selectType(3)">
  33. <div class="requirements-type-title-area">
  34. <div class="requirements-type-icon type3"></div>
  35. <div class="requirements-type-title">需求梳理</div>
  36. </div>
  37. <div class="requirements-type-purpose">
  38. 我有个idea需要请产品经理梳理:
  39. </div>
  40. <ul class="requirements-type-purpose-list">
  41. <li>我的想法要落地,需要产品结构图和流程图?</li>
  42. <li>用户交互怎么设计?</li>
  43. <li>原型图不会画?</li>
  44. </ul>
  45. <div class="requirements-type-payment">固定付费¥1980</div>
  46. </div>
  47. </div>
  48. <div class="requirements-type-submit">
  49. <el-button :disabled="!type" type="primary" @click="submit" round>下一步</el-button>
  50. </div>
  51. </div>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. type: ""
  58. }
  59. },
  60. methods: {
  61. selectType(type) {
  62. this.type = type
  63. this.$emit('formChange', 1,'process')
  64. },
  65. async submit() {
  66. var bool=await this.checkMobile();
  67. if(bool) this.$emit('formSubmit',1, this.type)
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .requirements-type-container {
  74. margin: 80px 80px 0;
  75. }
  76. .requirements-type-container {
  77. font-size: 22px;
  78. font-weight: 500;
  79. color: #0b121a;
  80. line-height: 30px;
  81. }
  82. .requirements-type-list {
  83. margin-top: 40px;
  84. display: flex;
  85. align-items: center;
  86. justify-content: space-between;
  87. }
  88. .requirements-type-item {
  89. box-sizing: border-box;
  90. width: 286px;
  91. height: 246px;
  92. cursor: pointer;
  93. position: relative;
  94. &::after {
  95. content: "";
  96. position: absolute;
  97. width: 100%;
  98. height: 100%;
  99. left: 0;
  100. top: 0;
  101. border-radius: 16px;
  102. border: 1px solid #ced3d9;
  103. // transition: all 0.3s;
  104. }
  105. &.cur {
  106. &::after {
  107. border: 2px solid #308EFF;
  108. }
  109. }
  110. }
  111. .requirements-type-title-area {
  112. margin-top: 17px;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. }
  117. .requirements-type-icon {
  118. width: 36px;
  119. height: 36px;
  120. margin-right: 8px;
  121. background-position: 50% 50%;
  122. background-repeat: no-repeat;
  123. background-size: 36px auto;
  124. &.type1 {
  125. background-image: url("~@/assets/img/account/type1.png");
  126. }
  127. &.type2 {
  128. background-image: url("~@/assets/img/account/type2.png");
  129. }
  130. &.type3 {
  131. background-image: url("~@/assets/img/account/type3.png");
  132. }
  133. }
  134. .requirements-type-title {
  135. font-size: 16px;
  136. font-weight: 500;
  137. color: #0b121a;
  138. line-height: 22px;
  139. }
  140. .requirements-type-purpose {
  141. margin-left: 24px;
  142. margin-top: 17px;
  143. font-size: 14px;
  144. font-weight: 500;
  145. color: #0b121a;
  146. line-height: 20px;
  147. }
  148. .requirements-type-purpose-list {
  149. margin-top: 6px;
  150. margin-left: 24px;
  151. li {
  152. width: 224px;
  153. margin-left: 20px;
  154. list-style: disc;
  155. font-size: 14px;
  156. font-family: PingFangSC-Regular, PingFang SC;
  157. font-weight: 400;
  158. color: #828c99;
  159. line-height: 20px;
  160. }
  161. }
  162. .requirements-type-payment {
  163. margin-left: 24px;
  164. margin-top: 20px;
  165. font-size: 14px;
  166. font-family: PingFangSC-Regular, PingFang SC;
  167. font-weight: 400;
  168. color: #828c99;
  169. line-height: 20px;
  170. }
  171. .requirements-type-submit {
  172. text-align: center;
  173. margin-top: 80px;
  174. }
  175. </style>