receiveRegistration.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <template>
  2. <view>
  3. <u-navbar back-text="人员管理" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <!-- 标签 -->
  6. <view class="tabs">
  7. <u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
  8. </view>
  9. <!-- 我的报名 -->
  10. <view class="receive-registration" v-for="(item,i) in list[current].list"
  11. v-if="item.jobInformationInfo"
  12. :key="i">
  13. <view class="card">
  14. <view class="top">
  15. <!-- 头像 -->
  16. <view class="photo">
  17. <!-- -->
  18. <span v-if="current==0&&!item.isRead" class="tag" >未读</span>
  19. <u-avatar :gender="item.workPersonInfo.gender"
  20. :src="item.jobInformationInfo.photo"></u-avatar>
  21. <span>{{item.workPersonInfo?getPersonName(item.workPersonInfo.realName,item.workPersonInfo):''}}</span>
  22. </view>
  23. <!-- 信息 -->
  24. <view class="infos">
  25. <view class="positon-salary">
  26. <view class="positon">
  27. {{item.jobInformationInfo.intendedIndustriesN}}
  28. </view>
  29. <view class="btncheck" @click="ckInfo(item,0)">
  30. 查看
  31. </view>
  32. </view>
  33. <view class="tags-date">
  34. <view class="salary">
  35. {{item.jobInformationInfo.hopeSalary}}{{getUnit(item.jobInformationInfo)}}
  36. </view>
  37. <view class="date">
  38. {{getTime(item)}}
  39. </view>
  40. </view>
  41. <view class="tags-date">
  42. <view class="tags">
  43. <view class="item" style="background-color: red;color:#fff" v-if="item.workPersonInfo&&item.workPersonInfo.intention==2" >
  44. 已入职/勿扰
  45. </view>
  46. <view class="item" v-if="item.workPersonInfo">
  47. {{item.workPersonInfo.gender==1?'男':'女'}}
  48. </view>
  49. <view class="item" v-if="item.workPersonInfo">
  50. {{item.workPersonInfo.age}}岁
  51. </view>
  52. <view class="item" v-if="item.jobInformationInfo.educationN" >
  53. {{item.jobInformationInfo.educationN}}
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <u-line color="#E6E6E6"></u-line>
  60. <view class="buttons">
  61. <view class=" view">
  62. <span class="positonSpan positonSpan2" v-if="!item.recruitInformationInfo.isOnline" >已下架</span>
  63. {{item.recruitInformationInfo.positionName}}-<span class="salary">{{item.recruitInformationInfo.salary}}{{getUnit(item.recruitInformationInfo)}}</span>
  64. </view>
  65. <view class="btn check" @click="ckInfo(item,1)">
  66. 岗位查看
  67. </view>
  68. <!-- <view class="btn delete">
  69. 删除
  70. </view> -->
  71. </view>
  72. </view>
  73. </view>
  74. <u-divider v-if="list[current].recordsTotal==list[current].list.length"
  75. :isnone="list[current].recordsTotal==0" nonetext="没有找到相关内容"
  76. border-color="#CFD2D5">已经到底了</u-divider>
  77. </view>
  78. </template>
  79. <script>
  80. import * as API from '@/apis/pagejs/packages.js'
  81. export default {
  82. data() {
  83. return {
  84. list: [{
  85. name: '收到的报名',
  86. pageIndex: 1,
  87. pageSize: 20,
  88. recordsTotal: 1,
  89. status: "0",
  90. list: []
  91. }, {
  92. name: '邀请记录',
  93. pageIndex: 1,
  94. pageSize: 20,
  95. recordsTotal: 1,
  96. status: "1",
  97. list: []
  98. }],
  99. current: 0
  100. }
  101. },
  102. onLoad(op) {
  103. if(op.c){
  104. this.current=op.c
  105. }
  106. this.getList();
  107. },
  108. methods: {
  109. ckInfo(item,current){
  110. var url=""
  111. if(current==0){
  112. url="/pages/packages/choreInformation/jobSearchDetails?id="+item.jobInformationInfo.id
  113. var isread=""
  114. if(!item.isRead){
  115. item.isRead=true
  116. url+="&isread=1&readid="+item.id
  117. }
  118. }
  119. if(current==1){
  120. url="/pages/packages/jobInformation/jobDetails?id="+item.recruitInformationInfo.id
  121. }
  122. uni.navigateTo({
  123. url:url
  124. })
  125. },
  126. getList() {
  127. uni.showLoading({
  128. title: "加载中",
  129. mask: true,
  130. })
  131. var list = this.list[this.current].list
  132. var obj = this.list[this.current]
  133. var listForm = {
  134. ...obj
  135. }
  136. delete listForm.list
  137. API.myReceivedRegistration(listForm).then((res) => {
  138. if (listForm.pageIndex == 1) {
  139. list = res.data.data;
  140. } else {
  141. list = [
  142. ...list,
  143. ...res.data.data
  144. ];
  145. }
  146. this.list[this.current].list = list
  147. this.list[this.current].recordsTotal = res.data.recordsTotal;
  148. uni.hideLoading();
  149. }).catch(error => {
  150. uni.showToast({icon: 'none',
  151. title: error,
  152. icon: "none"
  153. })
  154. })
  155. },
  156. myLoadmore() {
  157. this.list[this.current].pageIndex += 1;
  158. this.getList();
  159. },
  160. change(index) {
  161. this.current = index;
  162. var list = this.list[this.current].list
  163. this.list[this.current].pageIndex = 1;
  164. this.list[this.current].list = [];
  165. this.getList();
  166. }
  167. }
  168. }
  169. </script>
  170. <style>
  171. page {
  172. background: #F0F0F2;
  173. padding-bottom: 150px;
  174. }
  175. </style>
  176. <style scoped lang="scss">
  177. .card{
  178. margin: 24rpx 32rpx;
  179. background-color: #fff;
  180. padding: 24rpx;
  181. border-radius: 12px;
  182. .top{
  183. display: flex;
  184. }
  185. // 头像
  186. .photo{
  187. width: 48px;
  188. height: 48px;
  189. border-radius: 50px;
  190. text-align: center;
  191. //overflow: hidden;
  192. margin-right: 16rpx;
  193. img{
  194. width: 100%;
  195. height: 100%;
  196. }
  197. }
  198. // 信息
  199. .infos{
  200. flex: 1;
  201. }
  202. .salary{
  203. color: rgba(255, 61, 0, 1);
  204. font-size: 32rpx;
  205. font-family: 'PingFangSC-medium';
  206. }
  207. .positon-salary{
  208. display: flex;
  209. justify-content: space-between;
  210. align-items: center;
  211. .positon{
  212. width: 400rpx;
  213. color: rgba(16, 16, 16, 1);
  214. font-size: 36rpx;
  215. overflow: hidden; /*内容会被修剪,并且其余内容是不可见的*/
  216. text-overflow:ellipsis; /*显示省略符号来代表被修剪的文本。*/
  217. white-space: nowrap; /*文本不换行*/
  218. font-family: 'PingFangSC-medium';
  219. }
  220. .btncheck{
  221. width: 120rpx;
  222. height: 56rpx;
  223. line-height: 56rpx;
  224. border-radius: 50px;
  225. background-color: rgba(255, 255, 255, 1);
  226. color: rgba(119, 119, 119, 1);
  227. text-align: center;
  228. font-family: Microsoft Yahei;
  229. border: 1px solid rgba(207, 210, 213, 1);
  230. margin-left: 24rpx;
  231. }
  232. }
  233. .tags-date{
  234. display: flex;
  235. justify-content: space-between;
  236. align-items: center;
  237. margin-top: 16rpx;
  238. margin-bottom: 24rpx;
  239. .tags{
  240. display: flex;
  241. .item{
  242. border-radius: 4px;
  243. background-color: rgba(241, 241, 247, 1);
  244. color: rgba(129, 127, 153, 1);
  245. font-size: 12px;
  246. text-align: center;
  247. line-height: 36rpx;
  248. height: 36rpx;
  249. padding: 0 12rpx;
  250. margin-right: 8rpx;
  251. }
  252. }
  253. .company{
  254. color: rgba(51, 51, 51, 1);
  255. font-size: 24rpx;
  256. }
  257. .date{
  258. color: rgba(153, 153, 153, 1);
  259. font-size: 24rpx;
  260. }
  261. }
  262. .buttons{
  263. display: flex;
  264. justify-content: space-between;
  265. margin-top: 24rpx;
  266. .view{
  267. color: rgba(16, 16, 16, 1);
  268. font-size: 36rpx;
  269. }
  270. // 查看
  271. .btn{
  272. min-width: 140rpx;
  273. height: 56rpx;
  274. line-height: 56rpx;
  275. border-radius: 50px;
  276. background-color: rgba(255, 255, 255, 1);
  277. color: rgba(119, 119, 119, 1);
  278. text-align: center;
  279. font-family: Microsoft Yahei;
  280. border: 1px solid rgba(207, 210, 213, 1);
  281. margin-left: 24rpx;
  282. }
  283. // 删除
  284. .delete{
  285. color: rgba(255, 61, 0, 1);
  286. }
  287. }
  288. }
  289. .tag {
  290. top: -30rpx;
  291. left: -40rpx;
  292. position: relative;
  293. border-radius: 4px 4px 4px 0px;
  294. color: #fff;
  295. padding: 2px 6px;
  296. font-size: 20rpx;
  297. line-height: 20rpx;
  298. height: 30rpx;
  299. background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.4), transparent) var(--bg, #EA3447);
  300. background-blend-mode: soft-light;
  301. }
  302. .tag::before {
  303. content: '';
  304. position: absolute;
  305. width: 3px;
  306. height: 3px;
  307. left: 0;
  308. bottom: -3px;
  309. background-color: inherit;
  310. filter: brightness(.7);
  311. clip-path: polygon(0 0, 100% 0, 100% 100%);
  312. }
  313. .positonSpan{
  314. padding:0 6rpx;
  315. font-size: 24rpx;
  316. text-align: center;
  317. border-radius: 4px;
  318. color: rgba(255, 255, 255, 1);
  319. }
  320. .positonSpan1{
  321. background-color: rgba(34, 149, 255, 1);
  322. }
  323. .positonSpan2{
  324. background-color: rgba(178, 184, 190, 1);
  325. }
  326. </style>