特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

287 lines
6.3 KiB

4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
1 month ago
4 months ago
4 months ago
4 months ago
1 month ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
3 weeks ago
2 months ago
4 months ago
  1. <template>
  2. <view class="page">
  3. <view class="banner">
  4. <uv-swiper
  5. :list="bannerList"
  6. indicator
  7. height="620rpx"
  8. keyName="image"></uv-swiper>
  9. <!-- indicatorStyle="bottom: 100rpx;" -->
  10. <view class="top">
  11. <view class="search">
  12. <uv-search
  13. :placeholder="role ? '请输入简历名称' : '请输入岗位名称'"
  14. :showAction="false"
  15. search-icon-size="40rpx"
  16. @search="search"
  17. v-model="keyword"></uv-search>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 工人看到的 -->
  22. <view class="content"
  23. v-if="!role">
  24. <view class="grid">
  25. <uv-grid :border="false"
  26. :col="5">
  27. <uv-grid-item
  28. @click="$utils.navigateTo(`/pages_order/work/workList?typeId=${item.id}&title=${item.name}`)"
  29. v-for="(item,index) in jobTypeList"
  30. v-if="index < 4"
  31. :key="index">
  32. <image class="grid-icon" :src="item.image" mode="aspectFill"></image>
  33. <text class="grid-text">{{item.name}}</text>
  34. </uv-grid-item>
  35. <uv-grid-item
  36. v-if="jobTypeList.length > 4"
  37. @click="$utils.navigateTo(`/pages_order/work/workTypeList`)"
  38. >
  39. <image class="grid-icon" src="/static/image/home/5.png" mode="aspectFill"></image>
  40. <text class="grid-text">其他招工</text>
  41. </uv-grid-item>
  42. </uv-grid>
  43. </view>
  44. </view>
  45. <!-- 筛选器 -->
  46. <screenWork ref="screenWork" @clickItem="clickItem"/>
  47. <!-- 老板看到的 -->
  48. <userList ref="workList" v-if="role"/>
  49. <!-- 工人看到的 -->
  50. <workList ref="workList" v-else/>
  51. <view class="box"
  52. @click="toAdd"
  53. v-if="role">
  54. <view class="left">
  55. 发布
  56. </view>
  57. <view class="center">
  58. <image src="/static/image/home/c.png" mode=""></image>
  59. </view>
  60. <view class="right">
  61. 招工
  62. </view>
  63. </view>
  64. <view class="switchIdentity"
  65. @click="switchIdentity">
  66. <image src="/static/image/home/x1.png"
  67. v-if="role"
  68. mode="widthFix"></image>
  69. <image src="/static/image/home/x2.png"
  70. v-else
  71. mode="widthFix"></image>
  72. </view>
  73. <checkinScore ref="checkinScore" v-if="UserExtensionInfo.signFlag == false"/>
  74. <PrivacyAgreementPoup/>
  75. <tabber select="0"/>
  76. </view>
  77. </template>
  78. <script>
  79. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  80. import workList from '@/components/list/workList/index.vue'
  81. import userList from '@/components/list/userList/index.vue'
  82. import tabber from '@/components/base/tabbar.vue'
  83. import screenWork from '@/components/screen/screenWork.vue'
  84. import checkinScore from '@/components/checkinScore.vue'
  85. import { mapState } from 'vuex'
  86. export default {
  87. components : {
  88. PrivacyAgreementPoup,
  89. workList,
  90. tabber,
  91. screenWork,
  92. userList,
  93. checkinScore,
  94. },
  95. computed: {
  96. ...mapState([
  97. 'userInfo',
  98. 'role',
  99. 'banner',
  100. 'jobTypeList',
  101. 'UserExtensionInfo',
  102. ]),
  103. bannerList(){
  104. return this.banner.filter(n => n.type == 0)
  105. },
  106. },
  107. data() {
  108. return {
  109. productList: [],
  110. keyword : '',
  111. screenWorkList : [],
  112. }
  113. },
  114. onPullDownRefresh(){
  115. this.$refs.workList.getData(this.screenWorkList)
  116. this.$store.commit('getBanner')
  117. },
  118. // 页面显示的时候触发
  119. onShow() {
  120. this.$refs.workList.getData(this.screenWorkList)
  121. this.$store.commit('getBanner')
  122. if(uni.getStorageSync('token')){
  123. this.$store.commit('getUserExtensionInfo')
  124. this.$store.commit('getBanner')
  125. }
  126. },
  127. //滚动到屏幕底部
  128. onReachBottom() {
  129. this.$refs.workList.loadMoreData()
  130. },
  131. methods: {
  132. clickItem(result){
  133. this.screenWorkList = result
  134. this.$refs.workList.getData(this.screenWorkList)
  135. },
  136. toAdd(){
  137. if(this.role){
  138. // 在完成企业认证的情况下执行
  139. this.$store.commit('isAuthCertificationEnterprise', state => {
  140. this.$utils.navigateTo('/pages_order/work/jobPosting')
  141. })
  142. }else{
  143. this.$utils.navigateTo('/pages_order/work/addResume')
  144. }
  145. },
  146. search(){
  147. this.$utils.navigateTo(`/pages_order/work/workList?keyword=${this.keyword}`)
  148. this.keyword = ''
  149. },
  150. // 切换身份
  151. async switchIdentity(){
  152. // 在完成实名认证的情况下执行
  153. this.$store.commit('isAuthCertification', () => {
  154. // 在完成企业认证的情况下执行
  155. this.$store.commit('isAuthCertificationEnterprise', state => {
  156. uni.showModal({
  157. title: `确认切换到${
  158. this.role ? '师傅' : '雇主'
  159. }身份吗`,
  160. success : e => {
  161. if(!e.confirm){
  162. return
  163. }
  164. this.$store.commit('setRole', !this.role)
  165. this.$nextTick(() => {
  166. this.$refs.workList.getData(this.screenWorkList)
  167. })
  168. }
  169. })
  170. })
  171. })
  172. },
  173. }
  174. }
  175. </script>
  176. <style scoped lang="scss">
  177. .page{
  178. .banner{
  179. position: relative;
  180. background-color: $uni-color;
  181. .top{
  182. position: absolute;
  183. top: 190rpx;
  184. left:00rpx;
  185. padding-top: 30rpx;
  186. display: flex;
  187. width: 100%;
  188. flex-direction: column;
  189. align-items: center;
  190. .search{
  191. width: 700rpx;
  192. /deep/ .uv-search__content__icon{
  193. padding: 10rpx 0;
  194. }
  195. }
  196. .title{
  197. image{
  198. width: 600rpx;
  199. height: 300rpx;
  200. }
  201. }
  202. }
  203. }
  204. .box{
  205. position: fixed;
  206. left: 50%;
  207. background: $uni-color;
  208. bottom: calc(env(safe-area-inset-bottom) + 150rpx);
  209. color: #fff;
  210. display: flex;
  211. justify-content: center;
  212. align-items: center;
  213. transform: translate(-50%);
  214. border-radius: 20rpx;
  215. height: 80rpx;
  216. font-size: 28rpx;
  217. image{
  218. width: 100%;
  219. height: 100%;
  220. border-radius: 50%;
  221. }
  222. .left{
  223. padding-left: 30rpx;
  224. }
  225. .center{
  226. width: 100rpx;
  227. height: 100rpx;
  228. border-radius: 50%;
  229. background: $uni-color;
  230. margin: 0 20rpx;
  231. margin-top: -30rpx;
  232. box-shadow: 0 0 4rpx 4rpx #ffffff;
  233. }
  234. .right{
  235. padding-right: 30rpx;
  236. }
  237. }
  238. .content{
  239. position: relative;
  240. margin-top: -60rpx;
  241. .grid{
  242. padding-bottom: 30rpx;
  243. background-color: #fff;
  244. // border-radius: 60rpx;
  245. border-top-left-radius: 60rpx;
  246. border-top-right-radius: 60rpx;
  247. // box-shadow: 0 -10rpx 10rpx 10rpx #00000013;
  248. .grid-icon{
  249. width: 80rpx;
  250. height: 80rpx;
  251. margin-bottom: 10rpx;
  252. margin-top: 30rpx;
  253. }
  254. .grid-text{
  255. font-size: 24rpx;
  256. font-weight: 900;
  257. }
  258. }
  259. }
  260. .switchIdentity{
  261. position: fixed;
  262. right: 30rpx;
  263. bottom: 300rpx;
  264. image{
  265. width: 130rpx;
  266. }
  267. }
  268. }
  269. </style>