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

259 lines
5.2 KiB

7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 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="请输入岗位/公司名称"
  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. <!-- @click="$utils.navigateTo('/pages_order/work/workList?id=' + item.id)" -->
  28. <uv-grid-item
  29. v-for="(item,index) in jobTypeList"
  30. :key="index">
  31. <image class="grid-icon" :src="item.image" mode="aspectFill"></image>
  32. <text class="grid-text">{{item.name}}</text>
  33. </uv-grid-item>
  34. </uv-grid>
  35. </view>
  36. </view>
  37. <!-- 筛选器 -->
  38. <screenWork ref="screenWork" @clickItem="clickItem"/>
  39. <!-- 老板看到的 -->
  40. <userList ref="workList" v-if="role"/>
  41. <!-- 工人看到的 -->
  42. <workList ref="workList" v-else/>
  43. <view class="box"
  44. @click="toAdd"
  45. v-if="role">
  46. <view class="left">
  47. 发布
  48. </view>
  49. <view class="center">
  50. <image src="/static/image/home/c.png" mode=""></image>
  51. </view>
  52. <view class="right">
  53. 招工
  54. </view>
  55. </view>
  56. <view class="switchIdentity"
  57. @click="switchIdentity">
  58. <image src="/static/image/home/x1.png"
  59. v-if="role"
  60. mode="widthFix"></image>
  61. <image src="/static/image/home/x1.png"
  62. v-else
  63. mode="widthFix"></image>
  64. </view>
  65. <checkinScore ref="checkinScore" v-if="numInfo.signFlag == false"/>
  66. <PrivacyAgreementPoup/>
  67. <tabber select="0"/>
  68. </view>
  69. </template>
  70. <script>
  71. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  72. import workList from '@/components/list/workList/index.vue'
  73. import userList from '@/components/list/userList/index.vue'
  74. import tabber from '@/components/base/tabbar.vue'
  75. import screenWork from '@/components/screen/screenWork.vue'
  76. import checkinScore from '@/components/checkinScore.vue'
  77. import { mapState } from 'vuex'
  78. export default {
  79. components : {
  80. PrivacyAgreementPoup,
  81. workList,
  82. tabber,
  83. screenWork,
  84. userList,
  85. checkinScore,
  86. },
  87. computed: {
  88. ...mapState([
  89. 'userInfo',
  90. 'role',
  91. 'banner',
  92. 'jobTypeList'
  93. ]),
  94. bannerList(){
  95. return this.banner.filter(n => n.type == 0)
  96. },
  97. },
  98. data() {
  99. return {
  100. productList: [],
  101. keyword : '',
  102. numInfo:{}
  103. }
  104. },
  105. onPullDownRefresh(){
  106. // this.$refs.videoList.queryVideoList()
  107. // this.queryBannerList()
  108. },
  109. // 页面显示的时候触发
  110. onShow() {
  111. this.$refs.workList.getData()
  112. this.$store.commit('getBanner')
  113. this.getUserCenterData();
  114. },
  115. //滚动到屏幕底部
  116. onReachBottom() {
  117. this.$refs.workList.loadMoreData()
  118. },
  119. methods: {
  120. //获取个人中心基础信息的接口
  121. getUserCenterData(){
  122. this.$api('getUserCenterData',{}, res =>{
  123. if(res.code == 200){
  124. this.numInfo = res.result
  125. }
  126. })
  127. },
  128. clickItem(result){
  129. console.log(result);
  130. this.$refs.workList.getData(result)
  131. },
  132. toAdd(){
  133. if(this.role){
  134. this.$utils.navigateTo('/pages_order/work/jobPosting')
  135. }else{
  136. this.$utils.navigateTo('/pages_order/work/addResume')
  137. }
  138. },
  139. search(){
  140. },
  141. // 切换身份
  142. switchIdentity(){
  143. this.$store.commit('setRole', !this.role)
  144. },
  145. }
  146. }
  147. </script>
  148. <style scoped lang="scss">
  149. .page{
  150. .banner{
  151. position: relative;
  152. background-color: $uni-color;
  153. .top{
  154. position: absolute;
  155. top: 190rpx;
  156. left:00rpx;
  157. padding-top: 30rpx;
  158. display: flex;
  159. width: 100%;
  160. flex-direction: column;
  161. align-items: center;
  162. .search{
  163. width: 700rpx;
  164. /deep/ .uv-search__content__icon{
  165. padding: 10rpx 0;
  166. }
  167. }
  168. .title{
  169. image{
  170. width: 600rpx;
  171. height: 300rpx;
  172. }
  173. }
  174. }
  175. }
  176. .box{
  177. position: fixed;
  178. left: 50%;
  179. background: $uni-color;
  180. bottom: calc(env(safe-area-inset-bottom) + 150rpx);
  181. color: #fff;
  182. display: flex;
  183. justify-content: center;
  184. align-items: center;
  185. transform: translate(-50%);
  186. border-radius: 20rpx;
  187. height: 80rpx;
  188. font-size: 28rpx;
  189. image{
  190. width: 100%;
  191. height: 100%;
  192. border-radius: 50%;
  193. }
  194. .left{
  195. padding-left: 30rpx;
  196. }
  197. .center{
  198. width: 100rpx;
  199. height: 100rpx;
  200. border-radius: 50%;
  201. background: $uni-color;
  202. margin: 0 20rpx;
  203. margin-top: -30rpx;
  204. box-shadow: 0 0 4rpx 4rpx #ffffff;
  205. }
  206. .right{
  207. padding-right: 30rpx;
  208. }
  209. }
  210. .content{
  211. position: relative;
  212. margin-top: -60rpx;
  213. .grid{
  214. padding-bottom: 30rpx;
  215. background-color: #fff;
  216. // border-radius: 60rpx;
  217. border-top-left-radius: 60rpx;
  218. border-top-right-radius: 60rpx;
  219. // box-shadow: 0 -10rpx 10rpx 10rpx #00000013;
  220. .grid-icon{
  221. width: 80rpx;
  222. height: 80rpx;
  223. margin-bottom: 10rpx;
  224. margin-top: 30rpx;
  225. }
  226. .grid-text{
  227. font-size: 24rpx;
  228. font-weight: 900;
  229. }
  230. }
  231. }
  232. .switchIdentity{
  233. position: fixed;
  234. right: 30rpx;
  235. bottom: 300rpx;
  236. image{
  237. width: 100rpx;
  238. }
  239. }
  240. }
  241. </style>