receiveRegistration.vue 7.3 KB

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