用工小程序前端代码
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.

160 lines
4.1 KiB

10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
  1. <template>
  2. <view>
  3. <view class="se-bgc-orange se-pos se-pos-lt se-w-vw-100 se-h-vh-30" style="z-index: -1;border-bottom-left-radius: 120rpx;border-bottom-right-radius: 120rpx;"></view>
  4. <view class="se-flex se-flex-h-sb se-px-40 se-pb-30 se-pt-10 se-bgc-orange se-zi-s">
  5. <view class="se-c-white se-fs-28">
  6. <view class="se-bgc-white se-py-5 se-px-10 se-fw-6 se-br-12 se-c-orange se-fs-24 se-display-ib">
  7. </view>
  8. <text class="se-ml-10 se-fw-6 se-fs-28">用工平台</text>
  9. </view>
  10. <!-- <view class="se-br-30 se-bgc-white se-fw-6 se-c-orange se-fs-28 se-px-20 se-py-10">
  11. 企业/个人端
  12. </view> -->
  13. </view>
  14. <view class="se-px-20 se-pt-10 se-zi-s">
  15. <u-search height="40" placeholder="搜索" :showAction="false" v-model="keyword"></u-search>
  16. </view>
  17. <view class="se-pb-20 se-pt-40 se-zi-s">
  18. <view class="se-px-20">
  19. <u-swiper height="300rpx" style="background-color: transparent;height: 300rpx;" :list="list" @change="change" @click="click"></u-swiper>
  20. </view>
  21. <view class="se-pt-10 se-bgc-white se-px-0 se-py-10 se-ta-l se-c-orange se-flex se-flex-ai-c se-fs-26">
  22. <image class="se-a-80" src="@/static/image/aed60x.png" mode=""></image>
  23. <text class="se-ml-10">今日有6个工作息新发布....</text>
  24. </view>
  25. </view>
  26. <view class="se-my-20 se-bgc-white se-grid">
  27. <navigator url="/pages_subpack/category/index" v-for="(item, index) in nav" :key="index" class="se-flex-v-c se-pt-30 se-mb-20">
  28. <image class="se-a-100 se-br-20" :src="item.img" mode=""></image>
  29. <text class="se-w-150 se-h-60 se-lh-30 se-c-black se-fs-22 se-ta-c se-mt-10 se-toe-2">{{item.name}}</text>
  30. </navigator>
  31. </view>
  32. <view class="se-my-20 se-bgc-white se-p-20 se-flex">
  33. <view @click="toNavigator(1)" class="se-flex-1 se-flex-h-c se-flex-ai-c se-c-white se-py-20 se-fw-6 enterprise">
  34. 找工作
  35. </view>
  36. <view @click="toNavigator(2)" class="se-flex-1 se-ml-20 se-flex-h-c se-flex-ai-c se-c-white se-py-20 se-fw-6 master">
  37. 找师傅
  38. </view>
  39. </view>
  40. <u-tabs
  41. :current="current"
  42. lineWidth="30"
  43. lineColor="#FF7A31"
  44. :activeStyle="{
  45. color: '#303133',
  46. fontWeight: 'bold',
  47. transform: 'scale(1.05)'
  48. }"
  49. :inactiveStyle="{
  50. color: '#606266',
  51. transform: 'scale(1)'
  52. }"
  53. itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;"
  54. :list="navList"
  55. @click="navClick($event)">
  56. </u-tabs>
  57. <!-- 企业端 -->
  58. <enterpriseBox v-if="current==0" />
  59. <!-- 师傅端 -->
  60. <masterBox v-if="current==1" />
  61. </view>
  62. </template>
  63. <script>
  64. import enterpriseBox from "./component/enterprise.vue"
  65. import masterBox from "./component/master.vue"
  66. export default{
  67. components:{
  68. enterpriseBox,
  69. masterBox
  70. },
  71. data(){
  72. return {
  73. status:1,
  74. list: [
  75. '../../static/image/banner.png',
  76. "https://cdn.uviewui.com/uview/swiper/swiper1.png"
  77. ],
  78. nav:[
  79. {
  80. img:"../../static/image/nav1.png",
  81. name:"家政"
  82. },
  83. {
  84. img:"../../static/image/nav2.png",
  85. name:"餐饮"
  86. },
  87. {
  88. img:"../../static/image/nav3.png",
  89. name:"娱乐"
  90. },
  91. {
  92. img:"../../static/image/nav4.png",
  93. name:"生产创意"
  94. },
  95. {
  96. img:"../../static/image/nav5.png",
  97. name:"物流"
  98. },
  99. {
  100. img:"../../static/image/nav6.png",
  101. name:"装修"
  102. },
  103. {
  104. img:"../../static/image/nav7.png",
  105. name:"美容/美发"
  106. },
  107. {
  108. img:"../../static/image/nav8.png",
  109. name:"兼职"
  110. }
  111. ],
  112. current:0,
  113. navList:[
  114. {
  115. name: '求职大厅',
  116. },
  117. {
  118. name: '招聘大厅',
  119. }
  120. ]
  121. }
  122. },
  123. mounted() {
  124. },
  125. methods:{
  126. navClick(event){
  127. this.current=event.index
  128. },
  129. change(event){
  130. console.info(event)
  131. },
  132. click(event){
  133. console.info(event)
  134. },
  135. toNavigator(event){
  136. uni.navigateTo({
  137. url:"/pages_subpack/release/index?status="+event
  138. })
  139. },
  140. }
  141. }
  142. </script>
  143. <style>
  144. page{
  145. background-color: #f5f5f5;
  146. }
  147. .enterprise{
  148. background: #ff7a31;
  149. border: 4rpx solid rgba(255,255,255,0.50);
  150. border-radius: 14rpx;
  151. }
  152. .master{
  153. background: #f0b744;
  154. border: 4rpx solid rgba(255,255,255,0.50);
  155. border-radius: 14rpx;
  156. }
  157. </style>