receiveRegistration.vue 7.9 KB

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