interviewInvitation.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. <template>
  2. <view class="container">
  3. <view class="detail-bg"></view>
  4. <nav-bar title="面试邀约"></nav-bar>
  5. <view class="content">
  6. <view class="detail-title">邀请面试</view>
  7. <view class="card-box">
  8. <view class="cell">
  9. <view class="cell-label">面试类型</view>
  10. <u-radio-group v-model="radioValue">
  11. <u-radio name="0">线下面试</u-radio>
  12. <u-radio name="1">线上面试</u-radio>
  13. </u-radio-group>
  14. </view>
  15. <view class="cell">
  16. <view class="cell-label">面试职位</view>
  17. <view class="cell-input" hover-class="cell-hover" @click="position = true">
  18. <view class="m-ellipsis">
  19. {{ selectedJob ? selectedJob.title + ' · ' + selectedJob.salary : '请选择职位' }}</view>
  20. <image class="cell-icon" src="/static/images/msg/down_arrow.svg" mode="aspectFit"></image>
  21. </view>
  22. </view>
  23. <view class="cell" v-if="radioValue == 0">
  24. <view class="cell-label">面试地址</view>
  25. <view class="cell-input" hover-class="cell-hover" @click="goPage('address')">
  26. <view class="m-ellipsis">{{selectedAddress || '请选择地址'}}</view>
  27. <image class="cell-icon" src="/static/images/msg/down_arrow.svg" mode="aspectFit"></image>
  28. </view>
  29. </view>
  30. <view class="cell" v-if="radioValue == 1">
  31. <view class="cell-label">面试方式</view>
  32. <view class="cell-input" hover-class="cell-hover" @click="method = true">
  33. <view class="m-ellipsis">请选择面试方式</view>
  34. <image class="cell-icon" src="/static/images/msg/down_arrow.svg" mode="aspectFit"></image>
  35. </view>
  36. </view>
  37. <view class="cell">
  38. <view class="cell-label">联系人</view>
  39. <view class="cell-input" hover-class="cell-hover" @click="person = true">
  40. <view class="m-ellipsis">{{personText || '请选择联系人'}}</view>
  41. <image class="cell-icon" src="/static/images/msg/down_arrow.svg" mode="aspectFit"></image>
  42. </view>
  43. </view>
  44. <view class="explanation">为保证求职者联系到面试企业,求职者接受面试后,可查看职位发布人&联系人的电话</view>
  45. </view>
  46. <view class="card-box" style="padding: 0;">
  47. <view class="note">
  48. <view class="note-label note-time">面试日期</view>
  49. <uni-calendar class="uni-calendar--hook" :showMonth="false" @change="change"
  50. @monthSwitch="monthSwitch" />
  51. </view>
  52. </view>
  53. <!-- 选择时间 -->
  54. <view class="card-box">
  55. <view class="cell" style="margin-bottom: 0;">
  56. <view class="cell-label">开始时间</view>
  57. <view class="cell-input flex-end" hover-class="cell-hover" @click="isShowTime = true">
  58. <view class="m-ellipsis">{{selectedTime || '请选择时间' }}</view>
  59. <image class="cell-icon" src="/static/images/msg/down_arrow.svg" mode="aspectFit"></image>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="card-box">
  64. <view class="note">
  65. <view class="note-label">备注事项</view>
  66. <view class="textarea-wrapper">
  67. <textarea v-model="textareaValue" placeholder-class="placeholder-text"
  68. placeholder="请输入告知求职者的其他内容,例如具体路线,所需材料等。" @input="updateLength" :maxlength="140">
  69. </textarea>
  70. <view class="word-count"><text style="color: #016BF6;">{{ textareaLength }}</text>/140</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <u-button class="btn">发送面试邀请</u-button>
  76. <!-- 面试职位 -->
  77. <u-popup v-model="position" mode="bottom" border-radius="20">
  78. <view class="pop-content">
  79. <view class="pop-title">选择面试职位</view>
  80. <view class="pop-card">
  81. <view class="pop-card-item" v-for="(item, index) in jobList" :key="index" @click="chooseJob(item)">
  82. <u-radio-group v-model="popRadioValue">
  83. <u-radio :name="item.id"></u-radio>
  84. </u-radio-group>
  85. <view>{{ item.title }}</view>
  86. <view class="pop-tag">
  87. {{ item.city }}
  88. <u-line color="#999999" direction="col" length="20rpx" margin="10rpx"></u-line>
  89. {{ item.edu }}
  90. <u-line color="#999999" direction="col" length="20rpx" margin="10rpx"></u-line>
  91. {{ item.salary }}
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </u-popup>
  97. <!-- 选择联系人 -->
  98. <u-popup v-model="person" mode="bottom" border-radius="20">
  99. <view class="pop-content">
  100. <view class="pop-title">
  101. <view>选择联系人</view>
  102. <view class="note">您可填写其他面试联系人电话,请保证已获得其授权同意,求职者接受面试后可以查看该号码</view>
  103. </view>
  104. <view class="pop-card">
  105. <view class="person-item" v-for="(item,index) in personList" :key="item.id"
  106. @click="selectPerson(item)">
  107. <view>{{item.name}}</view>
  108. <view class="pop-phone">{{item.phone}}</view>
  109. <image class="pop-icon" src="/static/images/msg/edit.svg" mode="aspectFit"
  110. @click="goPage('editPerson',item)"></image>
  111. </view>
  112. </view>
  113. <u-button class="pop-btn" @click="goPage('addPerson')">新增联系人</u-button>
  114. </view>
  115. </u-popup>
  116. <!-- 选择面试方式 -->
  117. <u-popup v-model="method" mode="bottom" border-radius="20">
  118. <view class="pop-content">
  119. <view class="pop-title">选择面试方式</view>
  120. <!-- <view class="pop-card">
  121. <view class="person-item" v-for="(item,index) in personList" :key="item.id" @click="selectPerson(item)">
  122. <view>{{item.name}}</view>
  123. <view class="pop-phone">{{item.phone}}</view>
  124. <image class="pop-icon" src="/static/images/msg/edit.svg" mode="aspectFit" @click="goPage('editPerson',item)"></image>
  125. </view>
  126. </view> -->
  127. <u-button class="pop-btn">确定</u-button>
  128. </view>
  129. </u-popup>
  130. <!-- 选择时间 -->
  131. <u-popup v-model="isShowTime" mode="bottom" border-radius="20">
  132. <view class="pop-content">
  133. <view class="pop-title">请选择面试开始时间</view>
  134. <picker-view :value="timeValue" @change="bindChange" class="picker-view">
  135. <picker-view-column>
  136. <view class="item" v-for="(item,index) in hours" :key="index">{{ item }}</view>
  137. </picker-view-column>
  138. <picker-view-column>
  139. <view class="item" v-for="(item,index) in minutes" :key="index">{{ item }}</view>
  140. </picker-view-column>
  141. <picker-view-column>
  142. <view class="item" v-for="(item,index) in meridiem" :key="index">{{ item }}</view>
  143. </picker-view-column>
  144. </picker-view>
  145. <u-button class="pop-time-btn" @click="changeBtn">确定</u-button>
  146. </view>
  147. </u-popup>
  148. </view>
  149. </template>
  150. <script>
  151. import navBar from "@/components/nav-bar/index.vue";
  152. export default {
  153. data() {
  154. return {
  155. radioValue: 0, //类型
  156. position: false,
  157. textareaValue: '',
  158. textareaLength: 0,
  159. popRadioValue: '',
  160. jobList: [{
  161. id: 1,
  162. title: '亚马逊运营',
  163. city: '深圳',
  164. edu: '本科',
  165. salary: '24-36k·16薪'
  166. },
  167. {
  168. id: 2,
  169. title: '跨境电商专员',
  170. city: '广州',
  171. edu: '大专',
  172. salary: '15-25k·14薪'
  173. },
  174. {
  175. id: 3,
  176. title: '亚马逊运营',
  177. city: '深圳',
  178. edu: '本科',
  179. salary: '24-36k·16薪'
  180. },
  181. {
  182. id: 4,
  183. title: '跨境电商专员',
  184. city: '广州',
  185. edu: '大专',
  186. salary: '15-25k·14薪'
  187. },
  188. {
  189. id: 5,
  190. title: '亚马逊运营',
  191. city: '深圳',
  192. edu: '本科',
  193. salary: '24-36k·16薪'
  194. },
  195. {
  196. id: 6,
  197. title: '跨境电商专员',
  198. city: '广州',
  199. edu: '大专',
  200. salary: '15-25k·14薪'
  201. }
  202. ],
  203. selectedJob: '',
  204. selectedAddress: '',
  205. person: false,
  206. personList: [{
  207. id: 0,
  208. name: '宋先生',
  209. phone: '18888888888'
  210. }],
  211. personText: '',
  212. method: false,
  213. selected: [],
  214. // 选择时间
  215. isShowTime: false,
  216. selectedTime:'',
  217. timeValue: [0, 0, 0],
  218. hours: Array.from({length: 12}, (_, i) => i + 1),
  219. minutes: Array.from({length: 60}, (_, i) => i),
  220. meridiem: ['AM', 'PM']
  221. };
  222. },
  223. components: {
  224. navBar
  225. },
  226. methods: {
  227. change(e) {
  228. console.log('change 返回:', e)
  229. },
  230. monthSwitch(e) {
  231. console.log('monthSwitchs 返回:', e)
  232. },
  233. updateLength(e) {
  234. this.textareaLength = e.target.value.length
  235. },
  236. chooseJob(item) {
  237. this.selectedJob = item;
  238. this.popRadioValue = item.id;
  239. this.position = false;
  240. },
  241. // 选择地址 联系人 以及编辑联系人
  242. goPage(type, item) {
  243. uni.navigateTo({
  244. url: `/pages/msg/selectInterview?type=${type}`,
  245. success: (res) => {
  246. res.eventChannel.emit('sendData', {
  247. type,
  248. item,
  249. callback: (data) => {
  250. console.log(data)
  251. if (type === 'address') {
  252. this.selectedAddress = data.address + data.floor
  253. } else if (type === 'addPerson') {
  254. this.personList.push(data)
  255. } else if (type === 'editPerson') {
  256. const index = this.personList.findIndex(p => p.id === data.id)
  257. if (index !== -1) this.personList.splice(index, 1, data);
  258. this.personText = data.name;
  259. }
  260. }
  261. })
  262. }
  263. })
  264. },
  265. selectPerson(item) {
  266. this.personText = item.name;
  267. this.person = false;
  268. },
  269. bindChange(e) {
  270. this.timeValue = e.detail.value
  271. },
  272. changeBtn(){
  273. const val = this.timeValue
  274. const hour = this.hours[val[0]]
  275. const minute = this.minutes[val[1]]
  276. const ampm = this.meridiem[val[2]]
  277. this.selectedTime = `${hour}:${minute < 10 ? '0' + minute : minute} ${ampm}`
  278. this.isShowTime = false;
  279. }
  280. }
  281. };
  282. </script>
  283. <style scoped lang="scss">
  284. .container {
  285. display: flex;
  286. flex-direction: column;
  287. height: 100vh;
  288. .detail-bg {
  289. height: 327px;
  290. width: 100%;
  291. background: linear-gradient(180deg, rgba(255, 102, 0, 1), rgba(255, 102, 0, 0) 100%);
  292. position: absolute;
  293. }
  294. .content {
  295. flex: 1;
  296. overflow: auto;
  297. display: flex;
  298. flex-direction: column;
  299. z-index: 0;
  300. padding: 40rpx 40rpx 0;
  301. .detail-title {
  302. color: #fff;
  303. font-size: 50rpx;
  304. font-weight: 500;
  305. font-family: DM Sans;
  306. }
  307. .card-box {
  308. margin: 20rpx 0;
  309. padding: 36rpx;
  310. box-sizing: border-box;
  311. border: 1rpx solid rgba(227, 231, 236, 1);
  312. border-radius: 12rpx;
  313. background: rgba(253, 253, 253, 1);
  314. .cell {
  315. height: 56rpx;
  316. margin-bottom: 12rpx;
  317. display: flex;
  318. align-items: center;
  319. .cell-label {
  320. width: 120rpx;
  321. margin-right: 24rpx;
  322. color: rgba(153, 153, 153, 1);
  323. font-family: DM Sans;
  324. font-size: 24rpx;
  325. font-weight: 400;
  326. line-height: 32rpx;
  327. letter-spacing: 0%;
  328. }
  329. ::v-deep .u-radio__icon-wrap {
  330. width: 32rpx !important;
  331. height: 32rpx !important;
  332. }
  333. ::v-deep .u-radio__label {
  334. color: rgba(23, 23, 37, 1);
  335. font-family: DM Sans;
  336. font-size: 24rpx;
  337. font-weight: 400;
  338. line-height: 48rpx;
  339. letter-spacing: 0.5%;
  340. margin-left: 8rpx !important;
  341. margin-right: 74rpx !important;
  342. }
  343. .cell-input {
  344. overflow: hidden;
  345. display: flex;
  346. align-items: center;
  347. justify-content: space-between;
  348. flex: 1;
  349. height: 56rpx;
  350. line-height: 56rpx;
  351. box-sizing: border-box;
  352. border: 1px solid rgba(0, 0, 0, 0.05);
  353. border-radius: 12rpx;
  354. padding: 0 20rpx;
  355. color: rgba(51, 51, 51, 1);
  356. font-family: DM Sans;
  357. font-size: 20rpx;
  358. font-weight: 400;
  359. letter-spacing: 0px;
  360. .cell-icon {
  361. width: 20rpx;
  362. height: 14rpx;
  363. flex-shrink: 0;
  364. margin-left: 10rpx;
  365. }
  366. }
  367. .flex-end {
  368. justify-content: flex-end;
  369. }
  370. .cell-hover {
  371. background-color: rgba(0, 0, 0, 0.02);
  372. transition: background-color 0.1s ease;
  373. }
  374. }
  375. .explanation {
  376. color: rgba(158, 158, 158, 1);
  377. font-family: DM Sans;
  378. font-size: 20rpx;
  379. font-weight: 400;
  380. line-height: 26rpx;
  381. letter-spacing: 0%;
  382. }
  383. .note {
  384. .note-label {
  385. color: rgba(29, 33, 41, 1);
  386. font-family: DM Sans;
  387. font-size: 24rpx;
  388. font-weight: 500;
  389. line-height: 32rpx;
  390. letter-spacing: 0%;
  391. margin-bottom: 22rpx;
  392. }
  393. .note-time {
  394. padding: 36rpx 36rpx 0;
  395. margin-bottom: 0;
  396. }
  397. .uni-calendar--hook {
  398. width: 100%;
  399. ::v-deep .uni-calendar__content {
  400. background-color: initial;
  401. }
  402. ::v-deep .uni-calendar-item__weeks-box-item {
  403. width: initial !important;
  404. }
  405. }
  406. .textarea-wrapper {
  407. position: relative;
  408. .word-count {
  409. position: absolute;
  410. bottom: 20rpx;
  411. right: 20rpx;
  412. font-family: DM Sans;
  413. font-size: 22rpx;
  414. font-weight: 400;
  415. line-height: 26rpx;
  416. letter-spacing: 0.5%;
  417. }
  418. }
  419. ::v-deep uni-textarea {
  420. width: 100% !important;
  421. height: 170rpx;
  422. padding: 28rpx;
  423. background: rgba(240, 240, 240, 1);
  424. border-radius: 12rpx;
  425. box-sizing: border-box;
  426. color: #000;
  427. font-family: DM Sans;
  428. font-size: 22rpx;
  429. font-weight: 400;
  430. line-height: 30rpx;
  431. }
  432. .placeholder-text {
  433. color: rgba(153, 153, 153, 1);
  434. font-family: DM Sans;
  435. font-size: 20rpx;
  436. font-weight: 400;
  437. }
  438. }
  439. }
  440. }
  441. .btn {
  442. height: 58rpx;
  443. padding: 16rpx 32rpx;
  444. border-radius: 999px;
  445. background: rgba(1, 107, 246, 1);
  446. color: rgba(255, 255, 255, 1);
  447. font-family: DM Sans;
  448. font-size: 24rpx;
  449. font-weight: 400;
  450. line-height: 48rpx;
  451. letter-spacing: 0%;
  452. text-align: center;
  453. margin: 28rpx 40rpx;
  454. }
  455. // 弹框
  456. .pop-content {
  457. height: 333px;
  458. padding: 24rpx 34rpx 0;
  459. display: flex;
  460. flex-direction: column;
  461. box-sizing: border-box;
  462. background: rgba(253, 253, 253, 1);
  463. .pop-title {
  464. padding: 16rpx 0;
  465. border-bottom: 1px solid rgba(153, 153, 153, 0.25);
  466. color: rgba(34, 37, 42, 1);
  467. font-family: DM Sans;
  468. font-size: 36rpx;
  469. font-weight: 500;
  470. letter-spacing: 0px;
  471. text-align: center;
  472. .note {
  473. margin: 16rpx 30rpx 0;
  474. color: rgba(34, 37, 42, 1);
  475. font-family: DM Sans;
  476. font-size: 24rpx;
  477. font-weight: 400;
  478. line-height: 32rpx;
  479. letter-spacing: 0px;
  480. text-align: left;
  481. }
  482. }
  483. .picker-view {
  484. flex: 1;
  485. ::v-deep uni-picker-view-column {
  486. text-align: center;
  487. }
  488. }
  489. .pop-card {
  490. flex: 1;
  491. overflow: auto;
  492. .pop-card-item {
  493. margin: 33rpx 0;
  494. box-sizing: border-box;
  495. height: 96rpx;
  496. padding: 24rpx 32rpx;
  497. box-sizing: border-box;
  498. border: 1px solid rgba(227, 231, 236, 1);
  499. border-radius: 48rpx;
  500. background: rgba(255, 255, 255, 1);
  501. display: flex;
  502. align-items: center;
  503. color: rgba(23, 23, 37, 1);
  504. font-family: DM Sans;
  505. font-size: 28rpx;
  506. font-weight: 400;
  507. letter-spacing: 0.5%;
  508. .pop-tag {
  509. margin-left: 32rpx;
  510. display: flex;
  511. align-items: center;
  512. color: rgba(153, 153, 153, 1);
  513. font-family: DM Sans;
  514. font-size: 20rpx;
  515. font-weight: 400;
  516. letter-spacing: 0.5%;
  517. }
  518. }
  519. .person-item {
  520. box-sizing: border-box;
  521. border: 1px solid rgba(227, 231, 236, 1);
  522. border-radius: 48rpx;
  523. background: rgba(255, 255, 255, 1);
  524. height: 96rpx;
  525. padding: 24rpx 32rpx;
  526. margin: 24rpx 0;
  527. display: flex;
  528. align-items: center;
  529. color: rgba(1, 107, 246, 1);
  530. font-family: DM Sans;
  531. font-size: 28rpx;
  532. font-weight: 400;
  533. line-height: 48rpx;
  534. letter-spacing: 0.5%;
  535. .pop-phone {
  536. margin: 0 32rpx;
  537. flex: 1;
  538. font-size: 20rpx;
  539. }
  540. .pop-icon {
  541. width: 24.57px;
  542. height: 24px;
  543. }
  544. }
  545. }
  546. .pop-btn {
  547. width: 100%;
  548. height: 80rpx;
  549. padding: 16rpx 32rpx;
  550. box-sizing: border-box;
  551. border: 1px solid rgba(255, 102, 0, 1);
  552. border-radius: 999px;
  553. background: rgba(255, 255, 255, 1);
  554. margin-bottom: 60rpx;
  555. color: rgba(1, 107, 246, 1);
  556. font-family: DM Sans;
  557. font-size: 32rpx;
  558. font-weight: 400;
  559. line-height: 48rpx;
  560. letter-spacing: 0%;
  561. }
  562. .pop-time-btn{
  563. margin-bottom: 22rpx;
  564. width: 100%;
  565. height: 100rpx;
  566. border-radius: 16rpx;
  567. background: rgba(1, 107, 246, 1);
  568. color: rgba(255, 255, 255, 1);
  569. font-family: DM Sans;
  570. font-size: 34rpx;
  571. font-weight: 400;
  572. line-height: 44rpx;
  573. letter-spacing: -0.41px;
  574. }
  575. }
  576. }
  577. ::v-deep .u-hairline-border:after {
  578. border: none !important;
  579. }
  580. </style>