index.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <view class="ti_page">
  3. <view class="form">
  4. <view class="form-item adfacjb">
  5. <view class="form-item-title">团队名称</view>
  6. <view class="form-item-inp">
  7. <u-input v-model="teamInfo.aaa" placeholder="请输入团队名称" border="none" inputAlign="right" fontSize="28rpx" color="#002846"/>
  8. </view>
  9. </view>
  10. <view class="form-item adfacjb">
  11. <view class="form-item-title">所在公司</view>
  12. <view class="form-item-inp">
  13. <u-input v-model="teamInfo.bbb" placeholder="请输入公司名称" border="none" inputAlign="right" fontSize="28rpx" color="#002846"/>
  14. </view>
  15. </view>
  16. <view class="form-item adfacjb">
  17. <view class="form-item-title">所属地区</view>
  18. <view class="form-item-inp adfac" @click="pickerShow('areaShow')">
  19. <text :class="{'active':areaText!=='请选择'}">{{areaText}}</text>
  20. <u-icon name="arrow-right" size="24rpx" color="#B9C0C8"></u-icon>
  21. </view>
  22. </view>
  23. <view class="form-item adfacjb">
  24. <view class="form-item-title red">所属行业</view>
  25. <view class="form-item-inp adfac" @click="pickerShow('industryShow')">
  26. <text :class="{'active':industryText!=='请选择'}">{{industryText}}</text>
  27. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  28. </view>
  29. </view>
  30. <view class="form-item adfacjb">
  31. <view class="form-item-title red">团队职能类型</view>
  32. <view class="form-item-inp adfac" @click="pickerShow('functionTypeShow')">
  33. <text :class="{'active':functionTypeText!=='请选择'}">{{functionTypeText}}</text>
  34. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  35. </view>
  36. </view>
  37. <view class="form-item adfacjb">
  38. <view class="form-item-title red">团队架构类型</view>
  39. <view class="form-item-inp adfac" @click="pickerShow('architectureTypeShow')">
  40. <text :class="{'active':architectureTypeText!=='请选择'}">{{architectureTypeText}}</text>
  41. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  42. </view>
  43. </view>
  44. <view class="form-item adfacjb">
  45. <view class="form-item-title">团队规模</view>
  46. <view class="form-item-inp adfac" @click="pickerShow('teamScaleShow')">
  47. <text :class="{'active':teamScaleText!=='请选择'}">{{teamScaleText}}</text>
  48. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  49. </view>
  50. </view>
  51. <view class="form-item adfacjb">
  52. <view class="form-item-title">团队层级</view>
  53. <view class="form-item-inp adfac" @click="pickerShow('teamLevelShow')">
  54. <text :class="{'active':teamLevelText!=='请选择'}">{{teamLevelText}}</text>
  55. <u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="box">
  60. <view class="box-title">团队介绍</view>
  61. <view class="box-textarea">
  62. <u-textarea border="none" height="320rpx" fontSize="28rpx" color="#002846" v-model="teamInfo.iii" placeholder="示例:爱丽丝的前任乔治在收购之前担任该职位。作为家庭的远亲,他⾮常亲⼒亲为,是个指令(Directive)及控制(Control)型的管理者。毫不掩饰地利⽤⾃⼰的关系。随着公司的发展和对营销团队的更多要求,他通过施加更多的控制来回应。尽管乔治反对,杰克被新的销售和营销副总裁约翰作为创新者引⼊。虽然乔治的退休被标榜为⾃愿的,但他在这件事上别⽆选择。"></u-textarea>
  63. </view>
  64. </view>
  65. <view class="btn" @click="handleConfirm">{{confirmText}}</view>
  66. <view class="dialog" v-if="areaShow">
  67. <view class="dialog-box">
  68. <cus-province-city-area @cancel="areaShow=false" @confirm="areaConfirm"></cus-province-city-area>
  69. </view>
  70. </view>
  71. <u-picker :itemHeight="88" :immediateChange="true" :show="industryShow" :columns="industryData" title="所属行业"
  72. @cancel="industryShow=false" @confirm="e=>pickerConfirm(e,'ddd','industryText','industryShow')"></u-picker>
  73. <u-picker :itemHeight="88" :immediateChange="true" :show="functionTypeShow" :columns="functionTypeData" title="团队职能类型"
  74. @cancel="functionTypeShow=false" @confirm="e=>pickerConfirm(e,'eee','functionTypeText','functionTypeShow')"></u-picker>
  75. <u-picker :itemHeight="88" :immediateChange="true" :show="architectureTypeShow" :columns="architectureTypeData" title="团队架构类型"
  76. @cancel="architectureTypeShow=false" @confirm="e=>pickerConfirm(e,'fff','architectureTypeText','architectureTypeShow')"></u-picker>
  77. <u-picker :itemHeight="88" :immediateChange="true" :show="teamScaleShow" :columns="teamScaleData" title="团队规模"
  78. @cancel="teamScaleShow=false" @confirm="e=>pickerConfirm(e,'ggg','teamScaleText','teamScaleShow')"></u-picker>
  79. <u-picker :itemHeight="88" :immediateChange="true" :show="teamLevelShow" :columns="teamLevelData" title="团队层级"
  80. @cancel="teamLevelShow=false" @confirm="e=>pickerConfirm(e,'hhh','teamLevelText','teamLevelShow')"></u-picker>
  81. </view>
  82. </template>
  83. <script>
  84. import CusProvinceCityArea from '@/components/CusProvinceCityArea/index.vue'
  85. export default {
  86. components:{ CusProvinceCityArea },
  87. props:{
  88. confirmText:{
  89. typeof:String,
  90. default:'下一步'
  91. }
  92. },
  93. data(){
  94. return {
  95. teamInfo:{
  96. aaa:'',
  97. bbb:'',
  98. ccc:'',
  99. ddd:'',
  100. eee:'',
  101. fff:'',
  102. ggg:'',
  103. hhh:'',
  104. iii:'',
  105. },
  106. areaShow:false,
  107. areaText:'请选择',
  108. industryShow:false,
  109. industryData:[['行业1','行业2']],
  110. industryText:'请选择',
  111. functionTypeShow:false,
  112. functionTypeData:[['职能类型1','职能类型2']],
  113. functionTypeText:'请选择',
  114. architectureTypeShow:false,
  115. architectureTypeData:[['架构类型1','架构类型2']],
  116. architectureTypeText:'请选择',
  117. teamScaleShow:false,
  118. teamScaleData:[['1-10人','10-20人','20-50人']],
  119. teamScaleText:'请选择',
  120. teamLevelShow:false,
  121. teamLevelData:[['初级','中级','高级']],
  122. teamLevelText:'请选择',
  123. }
  124. },
  125. methods:{
  126. confirm(e) {
  127. const { value } = e;
  128. this.areaText = value.map(item => item.label).join('-');
  129. this.areaShow = false;
  130. },
  131. cancel() {
  132. this.areaShow = false;
  133. },
  134. close() {
  135. this.areaShow = false;
  136. },
  137. pickerShow(key){
  138. this[key] = true;
  139. },
  140. pickerConfirm(e,key1,key2,key3){
  141. this.teamInfo[key1] = e.value[0];
  142. this[key2] = e.value[0];
  143. this[key3] = false;
  144. },
  145. handleConfirm(){
  146. // if(!this.teamInfo.ddd) return this.$showToast('请选择所属行业')
  147. // if(!this.teamInfo.eee) return this.$showToast('请选择团队职能类型')
  148. // if(!this.teamInfo.fff) return this.$showToast('请选择团队架构类型')
  149. // console.log(this.teamInfo);
  150. this.$emit('handleConfirm')
  151. },
  152. areaConfirm(e){
  153. this.areaShow = false;
  154. console.log(e);
  155. }
  156. }
  157. }
  158. </script>
  159. <style scoped lang="scss">
  160. .ti_page{
  161. width: 100%;
  162. padding: 0 24rpx 162rpx;
  163. box-sizing: border-box;
  164. .form{
  165. margin-top: 20rpx;
  166. background: #FFFFFF;
  167. border-radius: 24rpx;
  168. &-item{
  169. padding: 28rpx 24rpx;
  170. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  171. &-title{
  172. font-family: PingFangSC, PingFang SC;
  173. font-weight: 400;
  174. font-size: 30rpx;
  175. color: #002846;
  176. line-height: 42rpx;
  177. position: relative;
  178. padding-right: 23rpx;
  179. &.red{
  180. &::after{
  181. content: "*";
  182. font-family: PingFangSC, PingFang SC;
  183. font-weight: 400;
  184. font-size: 30rpx;
  185. color: #FD4F66;
  186. line-height: 42rpx;
  187. position: absolute;
  188. right: 0;
  189. }
  190. }
  191. }
  192. &-inp{
  193. text{
  194. font-family: PingFangSC, PingFang SC;
  195. font-weight: 400;
  196. font-size: 28rpx;
  197. color: #B3BFC8;
  198. line-height: 40rpx;
  199. margin-right: 10rpx;
  200. &.active{
  201. color: #002846;
  202. line-height: 30rpx;
  203. }
  204. }
  205. }
  206. }
  207. }
  208. .box{
  209. background: #FFFFFF;
  210. box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
  211. border-radius: 24rpx;
  212. margin-top: 20rpx;
  213. padding: 28rpx 24rpx;
  214. }
  215. .btn{
  216. width: calc(100% - 100rpx);
  217. height: 88rpx;
  218. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  219. border-radius: 44rpx;
  220. font-family: PingFang-SC, PingFang-SC;
  221. font-weight: bold;
  222. font-size: 32rpx;
  223. color: #FFFFFF;
  224. line-height: 88rpx;
  225. text-align: center;
  226. letter-spacing: 2rpx;
  227. position: fixed;
  228. left: 50rpx;
  229. bottom: 54rpx;
  230. z-index: 1000;
  231. }
  232. }
  233. </style>