特易招,招聘小程序
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.

299 lines
6.6 KiB

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