myLove.vue 8.5 KB

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