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

217 lines
4.3 KiB

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
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
4 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
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
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
  1. <template>
  2. <view class="page">
  3. <view class="banner">
  4. <uv-swiper
  5. :list="banner"
  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 @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. <PrivacyAgreementPoup/>
  57. <tabber select="0"/>
  58. </view>
  59. </template>
  60. <script>
  61. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  62. import workList from '@/components/list/workList/index.vue'
  63. import userList from '@/components/list/userList/index.vue'
  64. import tabber from '@/components/base/tabbar.vue'
  65. import screenWork from '@/components/screen/screenWork.vue'
  66. import {
  67. mapState,
  68. } from 'vuex'
  69. export default {
  70. components : {
  71. PrivacyAgreementPoup,
  72. workList,
  73. tabber,
  74. screenWork,
  75. userList
  76. },
  77. computed: {
  78. ...mapState([
  79. 'userInfo',
  80. 'role',
  81. 'banner',
  82. 'jobTypeList'
  83. ]),
  84. },
  85. data() {
  86. return {
  87. productList: [],
  88. keyword : '',
  89. }
  90. },
  91. // onPullDownRefresh(){
  92. // this.$refs.videoList.queryVideoList()
  93. // this.queryBannerList()
  94. // },
  95. // 页面显示的时候触发
  96. onShow() {
  97. this.$refs.workList.getData()
  98. this.$store.commit('getBanner')
  99. },
  100. //滚动到屏幕底部
  101. onReachBottom() {
  102. this.$refs.workList.loadMoreData()
  103. },
  104. methods: {
  105. clickItem(result){
  106. console.log(result);
  107. this.$refs.workList.getData(result)
  108. },
  109. toAdd(){
  110. if(this.role){
  111. this.$utils.navigateTo('/pages_order/work/jobPosting')
  112. }else{
  113. this.$utils.navigateTo('/pages_order/work/addResume')
  114. }
  115. },
  116. }
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .page{
  121. .banner{
  122. position: relative;
  123. background-color: $uni-color;
  124. .top{
  125. position: absolute;
  126. top: 190rpx;
  127. left:00rpx;
  128. padding-top: 30rpx;
  129. display: flex;
  130. width: 100%;
  131. flex-direction: column;
  132. align-items: center;
  133. .search{
  134. width: 700rpx;
  135. /deep/ .uv-search__content__icon{
  136. padding: 10rpx 0;
  137. }
  138. }
  139. .title{
  140. image{
  141. width: 600rpx;
  142. height: 300rpx;
  143. }
  144. }
  145. }
  146. }
  147. .box{
  148. position: fixed;
  149. left: 50%;
  150. background: $uni-color;
  151. bottom: calc(env(safe-area-inset-bottom) + 150rpx);
  152. color: #fff;
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. transform: translate(-50%);
  157. border-radius: 20rpx;
  158. height: 80rpx;
  159. font-size: 28rpx;
  160. image{
  161. width: 100%;
  162. height: 100%;
  163. border-radius: 50%;
  164. }
  165. .left{
  166. padding-left: 30rpx;
  167. }
  168. .center{
  169. width: 100rpx;
  170. height: 100rpx;
  171. border-radius: 50%;
  172. background: $uni-color;
  173. margin: 0 20rpx;
  174. margin-top: -30rpx;
  175. box-shadow: 0 0 4rpx 4rpx #ffffff;
  176. }
  177. .right{
  178. padding-right: 30rpx;
  179. }
  180. }
  181. .content{
  182. position: relative;
  183. margin-top: -60rpx;
  184. .grid{
  185. padding-bottom: 30rpx;
  186. background-color: #fff;
  187. // border-radius: 60rpx;
  188. border-top-left-radius: 60rpx;
  189. border-top-right-radius: 60rpx;
  190. // box-shadow: 0 -10rpx 10rpx 10rpx #00000013;
  191. .grid-icon{
  192. width: 80rpx;
  193. height: 80rpx;
  194. margin-bottom: 10rpx;
  195. margin-top: 30rpx;
  196. }
  197. .grid-text{
  198. font-size: 24rpx;
  199. font-weight: 900;
  200. }
  201. }
  202. }
  203. }
  204. </style>