resume.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <view>
  3. <view class="filterbg fixedtop">
  4. <view class="flex justify-between solids-bottom padding bg-white">
  5. <view class="text-bold">推荐</view>
  6. <view class="flex justify-end">
  7. <view class="cu-tag radius bg-green" data-filterbox="jobintention" @tap="showFilter">{{jobintentionlist.title}}</view>
  8. <view class="cu-tag radius bg-green" data-filterbox="cate" @tap="showFilter">{{catelist.title}}</view>
  9. </view>
  10. </view>
  11. <view class="filtercon" v-if="filterbox!==null" @click="hideFilter()">
  12. <view class="padding bg-white" v-if="filterbox=='jobintention'" @click.stop>
  13. <block v-for="(item,index) in jobintentionlist.data" :key="index">
  14. <button class="cu-btn margin-lr-xs margin-tb-xs" @click="checkJobintention(item.title,item.value)">{{item.title}}</button>
  15. </block>
  16. </view>
  17. <view class="padding bg-white" v-if="filterbox=='cate'" @click.stop>
  18. <block v-for="(item,index) in catelist.data" :key="index">
  19. <button class="cu-btn margin-lr-xs margin-tb-xs" @click="checkCate(item.title,item.value)">{{item.title}}</button>
  20. </block>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="" style="position: relative;margin-top: 100rpx;">
  25. <block v-for="(item,index) in plist" :key="index">
  26. <view class="cu-card dynamic no-card echo-comjobs-item radius">
  27. <view class="cu-item shadow padding-top padding-lr" @tap="goDetail(item.id)">
  28. <view class="flex">
  29. <view class="flex-sub flex-direction align-center padding-right">
  30. <view class="text-bold text-lg text-cut echo-comjobs-item-title">{{item.nickname}}</view>
  31. <view class="text-gray text-df padding-top-xs">
  32. <text class="padding-right-xs">{{item.age?item.age+'岁':'年龄未知'}} ·</text>
  33. <text class="padding-right-xs">{{item.education_text || '学历未知'}} ·</text>
  34. <text class="padding-right-xs">{{item.worker_text || '经验未知'}} ·</text>
  35. <text>{{item.jobintention_text || '求职区域未知'}}</text>
  36. </view>
  37. </view>
  38. <view class="round" style="width: 110rpx;position: relative;">
  39. <image class="round" :src="item.avatar" mode="aspectFit" style="width: 110rpx;height: 110rpx;"></image>
  40. <text class="round cuIcon-male bg-blue text-sm genderIcon" v-if="item.gender == 1"></text>
  41. <text class="round cuIcon-female bg-pink text-sm genderIcon" v-else-if="item.gender == 2"></text>
  42. </view>
  43. </view>
  44. <!-- <view class="padding-tb-xs text-cut">
  45. <view v-for="(titem,tindex) in item.com_cate" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
  46. </view>
  47. <view class="padding-tb-xs text-cut">
  48. <view v-for="(eitem,eindex) in item.emp_time" :key="eindex" class="cu-tag light bg-red lg echo-tags-item">{{eitem}}</view>
  49. </view> -->
  50. <view class="text-cut text-sm flex justify-between align-center padding-bottom-sm solid-bottom">
  51. <view class="basis-xl text-sm text-cut" style="color: #bfbfbf;">
  52. </view>
  53. <view class="basis-xs text-cut text-right text-sm">
  54. 浏览量:{{item.volume}}
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </block>
  60. <uni-load-more :status="pstatus"></uni-load-more>
  61. </view>
  62. <view class="padding-sm"></view>
  63. <view class="padding-xl"></view>
  64. <view class="cu-bar tabbar bg-white foot">
  65. <view class="action text-gray" @tap="goNavPage('/pages/worker/worker')">
  66. <view class="cuIcon-cu-image">
  67. <image src="../../static/tabbar/windex.png"></image>
  68. </view>
  69. 首页
  70. </view>
  71. <view class="action text-gray" @tap="goNavPage('/pages/demand/demand')" v-if="workerinfo.wtype==2">
  72. <view class="cuIcon-cu-image">
  73. <image src="../../static/tabbar/wdemand.png"></image>
  74. </view>
  75. 抢单大厅
  76. </view>
  77. <!-- #ifndef MP-WEIXIN -->
  78. <view class="action text-gray videoimg" @tap="goNavPage('/pages/video/video')">
  79. <view class="cuIcon-cu-image">
  80. <image src="../../static/tabbar/video.png"></image>
  81. </view>
  82. 录视频
  83. </view>
  84. <!-- #endif -->
  85. <view class="action text-red" @tap="goNavPage('/pages/resume/resume')">
  86. <view class="cuIcon-cu-image">
  87. <image src="../../static/tabbar/resumeSelected.png"></image>
  88. </view>
  89. 简历
  90. </view>
  91. <view class="action text-gray" @tap="goNavPage('/pages/supply/supply')" v-if="workerinfo.wtype==2">
  92. <view class="cuIcon-cu-image">
  93. <image src="../../static/tabbar/wsupply.png"></image>
  94. </view>
  95. 共享用工
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. import slFilter from '@/components/sl-filter/sl-filter.vue';
  102. import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue";
  103. var _this;
  104. export default {
  105. components: {
  106. slFilter,
  107. uniLoadMore
  108. },
  109. data() {
  110. return {
  111. filterbox: null,
  112. jobintentionlist: {
  113. title: "求职意向",
  114. value: 0,
  115. data: []
  116. },
  117. catelist: {
  118. title: "岗位",
  119. value: 0,
  120. data: []
  121. },
  122. workerinfo: {},
  123. pstatus: 'more',
  124. ppage: 1,
  125. psize: 20,
  126. plist: [],
  127. sex: ['未知','男','女'],
  128. };
  129. },
  130. onLoad: function(option){
  131. _this = this;
  132. _this.workerinfo = uni.getStorageSync('workerinfo') || false;
  133. _this.$req.ajax({
  134. path: "resume/searchItem",
  135. }).then((data) => {
  136. _this.catelist.data = data.catelist;
  137. _this.jobintentionlist.data = data.jobintentionlist;
  138. _this.getMore();
  139. }).catch((err) => {
  140. uni.showModal({
  141. title: '信息提示',
  142. content: err,
  143. showCancel: false
  144. });
  145. });
  146. },
  147. onPullDownRefresh: function() {
  148. _this.pageRefresh();
  149. },
  150. onReachBottom: function() {
  151. if (_this.pstatus !== 'more') {
  152. return;
  153. }
  154. _this.getMore();
  155. },
  156. onShareAppMessage: function(res) {
  157. return {
  158. title: "企业招聘",
  159. path: "/pages/comjobs/comjobs"
  160. }
  161. },
  162. methods: {
  163. showFilter: function(e) {
  164. var nowfilterbox = e.currentTarget.dataset.filterbox;
  165. if (_this.filterbox == nowfilterbox){
  166. _this.filterbox = null;
  167. }else{
  168. _this.filterbox = nowfilterbox;
  169. }
  170. uni.pageScrollTo({
  171. scrollTop: 0,
  172. duration: 300
  173. });
  174. },
  175. hideFilter: function(e) {
  176. _this.filterbox = null;
  177. },
  178. checkJobintention: function(title,value) {
  179. _this.jobintentionlist.title = title;
  180. _this.jobintentionlist.value = value;
  181. _this.filterbox = null;
  182. _this.pageRefresh();
  183. },
  184. checkCate: function(title,value) {
  185. _this.catelist.title = title;
  186. _this.catelist.value = value;
  187. _this.filterbox = null;
  188. _this.pageRefresh();
  189. },
  190. pageRefresh: function() {
  191. _this.pstatus = 'more';
  192. _this.ppage = 1;
  193. _this.plist = [];
  194. _this.getMore();
  195. },
  196. getMore: function() {
  197. _this.$req.ajax({
  198. path: "resume/listResume",
  199. data: {
  200. ppage: _this.ppage,
  201. psize: _this.psize,
  202. cateid: _this.catelist.value,
  203. jobintention: _this.jobintentionlist.value,
  204. }
  205. }).then((data) => {
  206. _this.pstatus = data.pstatus;
  207. _this.plist = _this.plist.concat(data.plist);
  208. _this.ppage += 1;
  209. uni.stopPullDownRefresh();
  210. }).catch((err) => {
  211. uni.showModal({
  212. title: '信息提示',
  213. content: err,
  214. showCancel: false
  215. });
  216. });
  217. },
  218. goDetail: function(id) {
  219. uni.navigateTo({
  220. url: '/pages/resume/detail?id=' + id
  221. });
  222. },
  223. result: function(e) {
  224. _this.cateid = e.cateid;
  225. _this.jobintention = e.jobintention;
  226. _this.province = e.province;
  227. _this.pageRefresh();
  228. },
  229. goNavPage: function(pageurl) {
  230. uni.redirectTo({
  231. url: pageurl
  232. });
  233. }
  234. }
  235. }
  236. </script>
  237. <style>
  238. .fixedtop {
  239. width: 100%;
  240. height: auto;
  241. position: fixed;
  242. left: 0;
  243. top: 0;
  244. z-index: 999;
  245. }
  246. </style>