browse.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <view class="">
  3. <view class="qyList flex justify-center">
  4. <view class="qyList-box">
  5. <view class="qyList-box-item flex justify-center" v-for="(item,index) in dataList" :key="index"
  6. @click="goNav('/pages/index/game/orderDet?resumesId='+item.resumesId)">
  7. <view class="qyList-box-item-box">
  8. <view class="qyList-box-item-info flex justify-between align-center">
  9. <view class="qyList-box-item-info-l">
  10. <view class="" style="color: #212121;font-size: 38rpx;font-weight: 800;">
  11. {{item.resumesName}}
  12. </view>
  13. <view class="flex align-center flex-wrap"
  14. style="color: #999999;font-size: 26rpx;margin-top: 10rpx;">
  15. <text>{{item.resumesAge}}岁</text>
  16. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  17. <text>{{item.resumesWorkExperience}}</text>
  18. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  19. <text>{{item.school}}</text>
  20. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  21. <text>期望{{item.resumesCompensation}}</text>
  22. </view>
  23. </view>
  24. <view class="qyList-box-item-info-r">
  25. <image :src="item.avatar?item.avatar:'../../static/logo.png'"
  26. style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode=""></image>
  27. </view>
  28. </view>
  29. <view class="qyList-box-item-job flex align-center">
  30. <u-icon name="heart-fill" color="#00B88F" size="30" style="margin-right: 16rpx;">
  31. </u-icon>
  32. 期望岗位:{{item.resumesPost}}
  33. </view>
  34. <view v-if="item.resumesCompanyList.length>0" class="qyList-box-item-job flex align-center">
  35. <image src="../../static/images/qi.png"
  36. style="width: 30rpx;height: 32rpx;margin-right: 16rpx;" mode=""></image>
  37. {{item.resumesCompanyList[0].resumesTitle}} /
  38. {{item.resumesCompanyList[0].resumesPost}}
  39. </view>
  40. <view class="qyList-box-item-rem" v-if="item.resumesDetails">
  41. 优势:{{item.resumesDetails}}
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <empty v-if="dataList.length==0" />
  48. <!-- 筛选悬浮 -->
  49. <view class="filterSe" @click="goScreen()">
  50. <image src="../../static/images/my/filterSe.png" mode=""></image>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import empty from '../../components/empty.vue'
  56. export default {
  57. components: {
  58. empty
  59. },
  60. data() {
  61. return {
  62. dataList: [],
  63. page: 1,
  64. pages: 1,
  65. limit: 10,
  66. myId: '',
  67. isVip: false,
  68. filter: {
  69. resumesCompensation: '', //薪资
  70. resumesEducation: '', //学历
  71. resumesWorkExperience: '', //经验
  72. industryName: '', //行业
  73. }
  74. }
  75. },
  76. onLoad(e) {
  77. this.$queue.showLoading("加载中...");
  78. this.myId = uni.getStorageSync('userId')
  79. this.getBrowseList()
  80. },
  81. watch: {
  82. filter: {
  83. handler() {
  84. this.page = 1
  85. this.getBrowseList()
  86. },
  87. deep: true,
  88. immediate: true
  89. }
  90. },
  91. onUnload() {
  92. uni.removeStorageSync('isCompyBrowse')
  93. },
  94. onShow() {
  95. if (uni.getStorageSync('isCompyBrowse') && (uni.getStorageSync('isCompyBrowse')).length > 0) {
  96. let isCompyBrowse = uni.getStorageSync('isCompyBrowse')
  97. isCompyBrowse.map(item => {
  98. let arr = []
  99. item.list.map(ite => {
  100. if (ite.value != '不限') {
  101. arr.push(ite.value)
  102. }
  103. })
  104. switch (item.name) {
  105. case '学历':
  106. this.filter.resumesEducation = arr.join(',')
  107. break;
  108. case '薪资':
  109. this.filter.resumesCompensation = arr.join(',')
  110. break;
  111. case '经验':
  112. this.filter.resumesWorkExperience = arr.join(',')
  113. break;
  114. case '行业':
  115. this.filter.industryName = arr.join(',')
  116. break;
  117. }
  118. })
  119. } else {
  120. this.filter.resumesEducation = '' //学历
  121. this.filter.resumesWorkExperience = '' //经验
  122. this.filter.industryName = '' //行业
  123. this.filter.resumesCompensation = '' //薪资
  124. }
  125. },
  126. methods: {
  127. // 去筛选
  128. goScreen() {
  129. uni.navigateTo({
  130. url: '/package/screen/screen?isCompyBrowse=1'
  131. })
  132. },
  133. goNav(url) {
  134. uni.navigateTo({
  135. url: url
  136. })
  137. },
  138. // 足迹
  139. getBrowseList() {
  140. let data = {
  141. page: this.page,
  142. limit: this.limit,
  143. resumesCompensation: this.filter.resumesCompensation, //薪资
  144. resumesEducation: this.filter.resumesEducation, //学历
  145. resumesWorkExperience: this.filter.resumesWorkExperience, //经验
  146. industryName: this.filter.industryName, //行业
  147. }
  148. this.$Request.get("/app/userBrowse/selectCompayBrowse", data).then(res => {
  149. uni.hideLoading();
  150. uni.stopPullDownRefresh();
  151. if (res.code == 0) {
  152. this.pages = res.data.pages
  153. if (this.page == 1) {
  154. this.dataList = res.data.records
  155. } else {
  156. this.dataList = [...this.dataList, ...res.data.records]
  157. }
  158. console.log(this.dataList)
  159. } else {
  160. console.log(res.msg)
  161. }
  162. })
  163. },
  164. // 跳转订单
  165. goDetail(e) {
  166. uni.navigateTo({
  167. url: '/pages/index/game/orderDet?resumesId=' + e.resumes.resumesId
  168. });
  169. },
  170. // 删除
  171. delData(e) {
  172. let that = this
  173. uni.showModal({
  174. title: '提示',
  175. content: '确定删除吗?',
  176. confirmColor: '#00B88F',
  177. success: function(res) {
  178. if (res.confirm) {
  179. console.log('用户点击确定');
  180. let data = {
  181. id: e.id
  182. }
  183. that.$Request.post("/app/userBrowse/deleteMyBrowse", data).then(res => {
  184. if (res.code == 0) {
  185. uni.showToast({
  186. title: '删除成功!',
  187. icon: 'none'
  188. })
  189. that.getBrowseList()
  190. }
  191. })
  192. } else if (res.cancel) {
  193. console.log('用户点击取消');
  194. }
  195. }
  196. })
  197. }
  198. },
  199. onReachBottom: function() {
  200. if (this.page < this.pages) {
  201. this.page += 1
  202. this.getBrowseList()
  203. }
  204. },
  205. onPullDownRefresh: function() {
  206. this.page = 1;
  207. this.getBrowseList()
  208. },
  209. }
  210. </script>
  211. <style lang="scss">
  212. page {
  213. background-color: #F2F2F7;
  214. }
  215. .filterSe {
  216. position: fixed;
  217. bottom: 10vh;
  218. right: 30rpx;
  219. image {
  220. width: 100rpx;
  221. height: 100rpx;
  222. // border-radius: 50%;
  223. }
  224. }
  225. .qyList {
  226. width: 100%;
  227. height: auto;
  228. margin-top: 20rpx;
  229. .qyList-box {
  230. width: 686rpx;
  231. height: 100%;
  232. .qyList-box-item {
  233. width: 100%;
  234. // height: 400rpx;
  235. padding-bottom: 40rpx;
  236. background-color: #ffffff;
  237. border-radius: 24rpx;
  238. margin-bottom: 20rpx;
  239. .qyList-box-item-box {
  240. width: 626rpx;
  241. height: 100%;
  242. }
  243. .qyList-box-item-info {
  244. margin-top: 40rpx;
  245. }
  246. .qyList-box-item-job {
  247. color: #121212;
  248. font-size: 28rpx;
  249. font-weight: 500;
  250. margin-top: 20rpx;
  251. }
  252. .qyList-box-item-rem {
  253. color: #999999;
  254. font-size: 26rpx;
  255. margin-top: 20rpx;
  256. }
  257. }
  258. }
  259. }
  260. </style>