myLove.vue 6.7 KB

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