my-order.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <template>
  2. <view class="my-order">
  3. <view class="my-order-header">
  4. <view class="header-search u-flex">
  5. <u-icon name="search" size="36" color="#444444"></u-icon>
  6. <input type="text" class="input" placeholder="请输入关键词搜索" v-model="keyword1" confirm-type="search"
  7. @confirm="tosearch(1)">
  8. </view>
  9. <scroll-view scroll-x="true" class="order-tabs">
  10. <view class="u-flex-col tabs-item u-col-center u-row-center" :class="{'tabs-item1':current == index}"
  11. @click="change(index)" v-for="(item,index) in tabslist" :key="index">
  12. <text>{{item.name}}</text>
  13. <text></text>
  14. </view>
  15. </scroll-view>
  16. </view>
  17. <!-- <view class="order-item" v-for="(item,index) in list" :key="index" @click="toinfo(item)">
  18. <view class="item-header u-flex u-row-between">
  19. <text>订单编号:{{item.order_no}}</text>
  20. <text v-if="item.stage == 'recommend'">推荐阶段</text>
  21. <text v-if="item.stage == 'interview'">面试阶段</text>
  22. <text v-if="item.stage == 'offer'">offer阶段</text>
  23. <text v-if="item.stage == 'entry'">入职阶段</text>
  24. <text v-if="item.stage == 'over_protected'">过保阶段</text>
  25. <text v-if="item.stage == 'failed'">已淘汰</text>
  26. </view>
  27. <view class="jieshao-user jieshao-user1 u-flex u-row-between">
  28. <view class="left u-flex-col">
  29. <text class="user-name">{{item.resume.name}}</text>
  30. <view class="user-tips1">
  31. {{item.resume.province}}·{{item.resume.city}}|{{item.resume.experience}}年|{{item.resume.education_name}}
  32. | {{item.resume.salary}}K/{{item.resume.salary_type == 'year' ? '年' : '月'}}
  33. </view>
  34. </view>
  35. </view>
  36. <view class="u-flex item-other" v-if="item.resume.job_experience[0]">
  37. <image src="../static/images/dizhi.png" mode=""></image>
  38. <text>{{item.resume.job_experience[0].company_name}}·{{item.resume.job_experience[0].job_name}}</text>
  39. </view>
  40. <view class="jieshao-user jieshao-user2 u-flex u-row-between" style="margin-top: 30rpx;">
  41. <view class="left u-flex-col">
  42. <text class="user-name">{{item.job.job_name}}</text>
  43. <view class="user-tips1">
  44. {{item.job.work_province}}·{{item.job.work_city}}|{{item.job.experience_name}}|{{item.job.education_name}}
  45. | {{item.job.salary_min}}-{{item.job.salary_max}}K
  46. </view>
  47. </view>
  48. </view>
  49. <view class="u-flex item-other">
  50. <image src="static/address.png" mode=""></image>
  51. <text>{{item.company.name}}</text>
  52. </view>
  53. <view class="u-flex item-other">
  54. <image src="static/dingwei.png" mode=""></image>
  55. <text>{{item.company.city}}</text>
  56. </view>
  57. </view> -->
  58. <view class="" style="padding:0 24rpx ;">
  59. <view class="content" @click="todetails(item.id)" v-for="(item,index) in list" :key="item.manager_id">
  60. <view class="u-flex u-row-between">
  61. <view class="u-flex">
  62. <view class="font">{{item.job.job_name}}</view>
  63. </view>
  64. <view class="money">{{item.job.salary_min}}-{{item.job.salary_max}}K
  65. <text v-if="item.job.salary_structure">·{{item.job.salary_structure}}</text>
  66. </view>
  67. </view>
  68. <view class="u-flex" style="margin: 16rpx 0 14rpx 0;">
  69. <text class="introduce">{{item.company.name}}</text>
  70. <text class="introduce">{{item.company.stage_name}}</text>
  71. <text class="introduce">{{item.company.scale_name}}</text>
  72. </view>
  73. <view class="u-flex" style="margin-bottom: 24rpx;">
  74. <view class="tabs">
  75. {{item.company.province}}{{item.company.city}}
  76. </view>
  77. <view class="tabs">
  78. {{item.job.education_name}}
  79. </view>
  80. <view class="tabs">
  81. {{item.job.experience_name}}
  82. </view>
  83. </view>
  84. <view class="u-flex u-row-between u-col-center">
  85. <view class=" u-flex u-col-center">
  86. <image :src="item.recommend_info.avatar" mode=""
  87. style="width: 50rpx;height: 50rpx;border-radius: 50%;">
  88. </image>
  89. <view class="" style="margin-left: 16rpx;">
  90. <text>{{item.recommend_info.username}}</text>·
  91. <text>{{item.recommend_info.type}}</text>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="bottom u-flex u-row-between">
  96. <text class="tou">{{item.updatetime}}{{item.updatetime?"投递":""}}</text>
  97. <text class="success">投递成功</text>
  98. </view>
  99. </view>
  100. </view>
  101. <view style="height: 70vh;justify-content: center;" class="u-flex" v-if="list.length == 0">
  102. <u-empty text="暂无数据" mode="list"></u-empty>
  103. </view>
  104. <view class="safe-area-inset-bottom"></view>
  105. </view>
  106. </template>
  107. <script>
  108. import {
  109. orderlist
  110. } from "@/units/inquire.js"
  111. export default {
  112. data() {
  113. return {
  114. current: 0,
  115. tabslist: [{
  116. name: '投递阶段',
  117. id: 'recommend'
  118. }, {
  119. name: '面试阶段',
  120. id: 'interview'
  121. }, {
  122. name: '入职阶段',
  123. id: 'entry'
  124. }, {
  125. name: '过保阶段',
  126. id: 'over_protected'
  127. }, {
  128. name: '不合适',
  129. id: 'failed'
  130. }],
  131. page: 1,
  132. list: [],
  133. total: 0,
  134. keyword: '',
  135. keyword1: '',
  136. list1: [],
  137. }
  138. },
  139. onLoad(option) {
  140. this.current = option.current || 0
  141. },
  142. onShow() {
  143. this.page = 1
  144. this.list = []
  145. this.getlist()
  146. console.log(this.list);
  147. },
  148. onReachBottom() {
  149. if (this.total != this.list.length) {
  150. this.page++
  151. this.getlist()
  152. }
  153. },
  154. methods: {
  155. tosearch(type) {
  156. if (type == 1) {
  157. this.keyword = this.keyword1
  158. }
  159. this.page = 1
  160. this.list = []
  161. this.getlist()
  162. },
  163. getlist() {
  164. orderlist({
  165. stage: this.tabslist[this.current].id,
  166. page: this.page,
  167. name: this.keyword
  168. }).then(res => {
  169. if (res.code == 1) {
  170. if (this.page == 1) {
  171. this.list = res.data.data
  172. console.log(this.list);
  173. } else {
  174. this.list = this.list.concat(res.data.data)
  175. }
  176. }
  177. this.total = res.data.total
  178. })
  179. },
  180. change(index) {
  181. this.current = index
  182. this.tosearch()
  183. },
  184. todetails(id) {
  185. uni.navigateTo({
  186. url: "/pagesD/order-info?id=" + id
  187. })
  188. }
  189. }
  190. }
  191. </script>
  192. <style lang="scss">
  193. .my-order {
  194. .content {
  195. padding: 24rpx 20rpx;
  196. margin-top: 20rpx;
  197. background-color: #fff;
  198. border-radius: 16rpx;
  199. .bottom {
  200. border-top: 2rpx solid #F0F0F0;
  201. margin-top: 32rpx;
  202. padding-top: 20rpx;
  203. .tou {
  204. font-size: 20rpx;
  205. font-family: SFPro-Regular, SFPro;
  206. font-weight: 400;
  207. color: #666666;
  208. }
  209. .success {
  210. font-size: 20rpx;
  211. font-family: PingFangSC-Regular, PingFang SC;
  212. font-weight: 400;
  213. color: #F7B500;
  214. }
  215. }
  216. .font {
  217. font-size: 32rpx;
  218. font-family: PingFangSC-Medium, PingFang SC;
  219. font-weight: 500;
  220. color: #222222;
  221. line-height: 44rpx;
  222. max-width: 326rpx;
  223. overflow: hidden; //超出隐藏
  224. white-space: nowrap; //不换行,同一行展示
  225. text-overflow: ellipsis; //设置超出部分以省略号展示
  226. }
  227. .back {
  228. width: 58rpx;
  229. height: 32rpx;
  230. background: #FF5335;
  231. border-radius: 6rpx;
  232. font-size: 22rpx;
  233. font-family: PingFangSC-Regular, PingFang SC;
  234. font-weight: 400;
  235. color: #FFFFFF;
  236. line-height: 32rpx;
  237. text-align: center;
  238. margin-left: 16rpx;
  239. }
  240. .money {
  241. font-size: 32rpx;
  242. font-family: JDZhengHT-Regular, JDZhengHT;
  243. font-weight: 400;
  244. color: #0C66C2;
  245. }
  246. .introduce {
  247. height: 40rpx;
  248. font-size: 28rpx;
  249. font-family: PingFangSC-Regular, PingFang SC;
  250. font-weight: 400;
  251. color: #555555;
  252. line-height: 40rpx;
  253. margin-right: 16rpx;
  254. }
  255. .tabs {
  256. background: #F3F3F3;
  257. border-radius: 4rpx;
  258. padding: 6rpx 14rpx;
  259. margin-right: 16rpx;
  260. font-size: 24rpx;
  261. font-family: PingFangSC-Regular, PingFang SC;
  262. font-weight: 400;
  263. color: #5F5F5F;
  264. height: 34rpx;
  265. line-height: 34rpx;
  266. }
  267. }
  268. .order-item {
  269. width: 702rpx;
  270. background: #FFFFFF;
  271. border-radius: 20rpx;
  272. margin: 20rpx auto;
  273. padding: 0 20rpx 8rpx 20rpx;
  274. .item-header {
  275. height: 84rpx;
  276. border-bottom: 2rpx solid #F3F3F3;
  277. margin-bottom: 22rpx;
  278. text:first-child {
  279. font-size: 22rpx;
  280. font-family: SFPro-Regular, SFPro;
  281. font-weight: 400;
  282. color: #555555;
  283. }
  284. text:nth-child(2) {
  285. line-height: 40rpx;
  286. background: #FEF7E5;
  287. border-radius: 6rpx;
  288. padding: 0 12rpx;
  289. font-size: 20rpx;
  290. font-family: PingFangSC-Regular, PingFang SC;
  291. font-weight: 400;
  292. color: #F7B500;
  293. }
  294. }
  295. .item-other {
  296. margin-bottom: 16rpx;
  297. padding-left: 32rpx;
  298. image {
  299. width: 28rpx;
  300. height: 28rpx;
  301. margin-right: 12rpx;
  302. }
  303. text {
  304. font-size: 28rpx;
  305. font-family: PingFangSC-Regular, PingFang SC;
  306. font-weight: 400;
  307. color: #222222;
  308. }
  309. }
  310. .jieshao-user {
  311. padding-left: 32rpx;
  312. position: relative;
  313. margin-bottom: 20rpx;
  314. .left {
  315. .user-name {
  316. font-size: 32rpx;
  317. font-family: PingFangSC-Medium, PingFang SC;
  318. font-weight: 500;
  319. color: #222222;
  320. margin-bottom: 16rpx;
  321. }
  322. .user-tips1 {
  323. font-size: 26rpx;
  324. font-family: PingFangSC-Regular, PingFang SC;
  325. font-weight: 400;
  326. color: #666666;
  327. }
  328. }
  329. .right {
  330. width: 96rpx;
  331. height: 96rpx;
  332. position: relative;
  333. .img1 {
  334. width: 96rpx;
  335. height: 96rpx;
  336. border-radius: 100rpx;
  337. }
  338. .sex {
  339. position: absolute;
  340. bottom: 0;
  341. right: 4rpx;
  342. width: 24rpx;
  343. height: 24rpx;
  344. }
  345. }
  346. }
  347. .jieshao-user1::after {
  348. position: absolute;
  349. content: " ";
  350. width: 12rpx;
  351. height: 12rpx;
  352. background: #131415;
  353. border-radius: 100rpx;
  354. top: 16rpx;
  355. left: 0;
  356. }
  357. .jieshao-user2::after {
  358. position: absolute;
  359. content: " ";
  360. width: 12rpx;
  361. height: 12rpx;
  362. background: #0C66C2;
  363. border-radius: 100rpx;
  364. top: 16rpx;
  365. left: 0;
  366. }
  367. }
  368. .my-order-header {
  369. padding: 20rpx 24rpx 0 24rpx;
  370. position: sticky;
  371. top: 0;
  372. left: 0;
  373. z-index: 99;
  374. background-color: #fff;
  375. .order-tabs {
  376. height: 96rpx;
  377. width: 100%;
  378. white-space: nowrap;
  379. .tabs-item {
  380. display: inline-flex;
  381. height: 96rpx;
  382. margin: 0 18rpx;
  383. text:first-child {
  384. font-size: 26rpx;
  385. font-family: PingFangSC-Regular, PingFang SC;
  386. font-weight: 400;
  387. color: #444444;
  388. }
  389. text:last-child {
  390. width: 100%;
  391. height: 8rpx;
  392. border-radius: 4rpx;
  393. margin-top: -12rpx;
  394. position: relative;
  395. z-index: -1;
  396. }
  397. }
  398. .tabs-item1 {
  399. text:first-child {
  400. font-size: 26rpx;
  401. font-family: PingFangSC-Medium, PingFang SC;
  402. font-weight: 500;
  403. color: #141414;
  404. }
  405. text:last-child {
  406. background: linear-gradient(270deg, #0C66C2 0%, #FFFFFF 100%);
  407. }
  408. }
  409. }
  410. .header-search {
  411. height: 68rpx;
  412. background: #F3F3F3;
  413. border-radius: 38rpx;
  414. padding: 0 36rpx;
  415. .input {
  416. flex: 1;
  417. font-size: 28rpx;
  418. margin-left: 24rpx;
  419. }
  420. }
  421. }
  422. }
  423. page {
  424. background-color: #F3F3F3;
  425. }
  426. </style>