tuiList.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view>
  3. <!-- #ifdef MP-WEIXIN -->
  4. <view class="" v-if="list.length" style="margin-top: 10upx;">
  5. <!-- #endif -->
  6. <!-- #ifndef MP-WEIXIN -->
  7. <view class="" v-if="list.length" style="margin-top: 10upx;">
  8. <!-- #endif -->
  9. <view class="listbox" v-for="(item,index) in list" :key="index" @click="goDetail(item)">
  10. <view class="flex align-center justify-between">
  11. <view>
  12. <view class="text-xl text-bold" style="color: #000;">{{item.resumes.resumesName}}</view>
  13. <view class="flex align-center margin-top-xs flex-wrap" style="color: #999999;">
  14. <view>{{item.resumes.resumesAge}}岁</view>
  15. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  16. </view>
  17. <view>工作{{item.resumes.resumesWorkExperience}}</view>
  18. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  19. </view>
  20. <view>{{item.resumes.resumesEducation}}</view>
  21. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  22. </view>
  23. <view>{{item.resumes.resumesCompensation}}</view>
  24. </view>
  25. </view>
  26. <view>
  27. <image :src="item.resumes.avatar?item.resumes.avatar:'../../../static/logo.png'"
  28. style="width: 100upx;height: 100upx;border-radius: 55upx;">
  29. </image>
  30. </view>
  31. </view>
  32. <view class="margin-top" v-if="item.resumes.resumesCompanyList">
  33. <view class="flex align-center">
  34. <view class="margin-right-xs">
  35. <image src="../../../static/images/qi.png" style="width: 30upx;height: 32upx;">
  36. </image>
  37. </view>
  38. <view class="text-bold" style="color: #121212;">{{item.resumes.resumesCompanyList[0].resumesTitle}}</view>
  39. </view>
  40. <view class=" margin-left margin-top-xs padding-left-xs" style="color: #999999;font-size: 26upx;">
  41. {{item.resumes.resumesCompanyList[0].resumesPost}}</view>
  42. </view>
  43. <view class="margin-top-sm" v-if="item.resumes.resumesWorkList">
  44. <view class="flex align-center">
  45. <view class="margin-right-xs">
  46. <image src="../../../static/images/geren.png" style="width: 35upx;height:26upx;">
  47. </image>
  48. </view>
  49. <view class="text-bold" style="color: #121212;">{{item.resumes.school?item.resumes.school:'暂无'}}</view>
  50. </view>
  51. <view class=" margin-left margin-top-xs padding-left-xs" style="color: #999999;font-size: 26upx;">
  52. {{item.resumes.resumesPost}}</view>
  53. </view>
  54. </view>
  55. </view>
  56. <empty v-if="list.length == 0"></empty>
  57. </view>
  58. </template>
  59. <script>
  60. import empty from '@/components/empty.vue'
  61. export default {
  62. components: {
  63. empty
  64. },
  65. data() {
  66. return {
  67. page: 1,
  68. limit: 10,
  69. token: '',
  70. cont:'',
  71. list:[],
  72. postDetailsId:'',
  73. }
  74. },
  75. onLoad(option) {
  76. this.postDetailsId = option.postDetailsId
  77. //获取简历列表
  78. this.getorderList();
  79. },
  80. methods: {
  81. //简历详情
  82. goDetail(e) {
  83. uni.navigateTo({
  84. url: '/pages/index/game/orderDet?resumesId=' + e.resumesId
  85. });
  86. },
  87. //简历列表
  88. getorderList() {
  89. let data = {
  90. page: this.page,
  91. limit: this.limit,
  92. classify:2,
  93. status:2,
  94. postDetailsId:this.postDetailsId
  95. }
  96. this.$Request.get("/app/postPush/selectResumesPushLists", data).then(res => {
  97. if (res.code == 0) {
  98. this.cont = res.data.totalPage
  99. if (this.page == 1) {
  100. this.list = res.data.list
  101. } else {
  102. this.list = [...this.list, ...res.data.list]
  103. }
  104. }
  105. uni.stopPullDownRefresh();
  106. })
  107. }
  108. },
  109. onReachBottom: function() {
  110. if(this.page == this.cont){
  111. uni.showToast({
  112. title:'已经到底了',
  113. icon:'none'
  114. })
  115. }else{
  116. this.page += 1;
  117. this.getorderList();
  118. }
  119. },
  120. onPullDownRefresh: function() {
  121. this.page = 1;
  122. this.getorderList();
  123. },
  124. }
  125. </script>
  126. <style>
  127. page {
  128. background-color: #F5F5F5;
  129. }
  130. .bg {
  131. background: #ffffff;
  132. }
  133. /deep/.navs {
  134. background: #FFFFFF !important;
  135. }
  136. .listbox {
  137. background: #FFFFFF;
  138. border-radius: 24upx;
  139. margin: 20upx 30upx;
  140. padding: 30upx;
  141. }
  142. .argrtn {
  143. background: #F6F6F6;
  144. color: #666666;
  145. font-size: 24upx;
  146. border-radius: 8upx;
  147. padding: 5upx 20upx;
  148. margin-right: 20upx;
  149. }
  150. </style>