receiveRegistration.vue 7.5 KB

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