receiveRegistration.vue 6.6 KB

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