choreInformation.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <template>
  2. <view>
  3. <u-navbar back-text="零工驿站" back-icon-size="0" :customBack="customBack" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <!-- 搜索框 -->
  6. <view class="search">
  7. <view class="search-box">
  8. <view class="option">
  9. <nxsearch :selectList="selectList" button="inside"
  10. @search="doSearch" @confirm="doSearc" :setIsFocus="false" @focus="gotoUrl('pages/packages/search/search')"
  11. v-model="searchQuery.keyword" placeholder="输入关键字找工作" />
  12. </view>
  13. </view>
  14. </view>
  15. <!-- 搜索结果 -->
  16. <view class="result">
  17. <view class="tabs">
  18. <view class="left">
  19. <u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current"
  20. @change="change"></u-tabs>
  21. </view>
  22. <view class="screen" @click="popupShow = true">
  23. <view class="icon">
  24. <img src="@/assets/img/riLine-filter-line@1x.png" alt="">
  25. </view>
  26. <view>筛选</view>
  27. </view>
  28. </view>
  29. <view class="result-item" v-for="item in 3">
  30. <!-- 照片 -->
  31. <view class="photo">
  32. <img src="@/assets/img/informationPhoto.png" alt="">
  33. </view>
  34. <view class="content">
  35. <!-- 职位薪水 -->
  36. <view class="top">
  37. <view class="position">
  38. 司机/保安/普工/地推
  39. </view>
  40. <view class="salary">
  41. 120元/天
  42. </view>
  43. </view>
  44. <view class="issuer">
  45. 李先生
  46. </view>
  47. <view class="bottom">
  48. <view class="tags">
  49. <view class="tag-item">
  50. </view>
  51. <view class="tag-item">
  52. 21岁
  53. </view>
  54. <view class="tag-item">
  55. 高中
  56. </view>
  57. </view>
  58. <view class="date">
  59. 更新时间:2023-06-01
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <!-- 筛选框 -->
  66. <u-popup v-model="popupShow" @close="close" mode="bottom" border-radius="20" :closeable="true">
  67. <view class="popup-content" >
  68. <view class="headline">
  69. 筛选
  70. </view>
  71. <!-- 薪资待遇 -->
  72. <view class="salary-package">
  73. <view class="title">
  74. 薪资待遇
  75. </view>
  76. <!-- 选项 -->
  77. <view class="options">
  78. <view :class="{item,checked:saralyChecked==index}" v-for="(item,index) in salaryList" :key="index"
  79. @click="changeSaralyChecked(index)" >
  80. {{item.name}}
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 工作经验 -->
  85. <view class="work-experience">
  86. <view class="title">
  87. 工作经验
  88. </view>
  89. <!-- 选项 -->
  90. <view class="options">
  91. <view :class="{item,checked:workChecked==index}" v-for="(item,index) in workList" :key="index"
  92. @click="changeWorkChecked(index)" >
  93. {{item.name}}
  94. </view>
  95. </view>
  96. </view>
  97. <view class="button">
  98. <button class="reset">重置</button>
  99. <button class="confirm">确认</button>
  100. </view>
  101. </view>
  102. </u-popup>
  103. <tabbar :current="3"></tabbar>
  104. </view>
  105. </template>
  106. <script>
  107. import * as API from '@/apis/pagejs/tab.js'
  108. import tabbar from "@/components/Tabbar.vue"
  109. import nxsearch from "@/components/nx-search.vue"
  110. export default {
  111. components: {
  112. nxsearch,
  113. tabbar
  114. },
  115. data() {
  116. return {
  117. keyword: '',
  118. popupShow: false,
  119. saralyChecked:-1,
  120. workChecked:-1,
  121. searchQuery: {
  122. keyword: '',
  123. selectIndex: 0
  124. },
  125. salaryList:[{
  126. name:'100元/天以下'
  127. },
  128. {
  129. name:'100-150元/天'
  130. },{
  131. name:'150-180元/天'
  132. },{
  133. name:'200-300元/天'
  134. },{
  135. name:'300-400元/天'
  136. },{
  137. name:'400-500元/天'
  138. },
  139. {
  140. name:'500元/天以上'
  141. }
  142. ],
  143. workList:[{
  144. name:'应届生'
  145. },
  146. {
  147. name:'1年以上'
  148. },
  149. {
  150. name:'2年以上'
  151. },
  152. {
  153. name:'3年以上'
  154. },
  155. {
  156. name:'5年以上'
  157. }],
  158. // tabList: [{
  159. // name: '最新'
  160. // }, {
  161. // name: '日结'
  162. // }, {
  163. // name: '周结'
  164. // }, {
  165. // name: '月结'
  166. // }],
  167. selectList: [{
  168. id: 1,
  169. name: '找工作'
  170. },
  171. // {
  172. // id: 2,
  173. // name: '找公司'
  174. // },
  175. ],
  176. tabList: [{
  177. name: '最新'
  178. }, {
  179. name: '日结'
  180. }],
  181. current: 0
  182. }
  183. },
  184. methods: {
  185. customBack(){
  186. },
  187. // 执行搜索
  188. doSearch(searchQuery) {
  189. console.log('searchQuery', searchQuery);
  190. },
  191. change(index) {
  192. this.current = index;
  193. },
  194. changeSaralyChecked(index){
  195. this.saralyChecked = index;
  196. },
  197. changeWorkChecked(index){
  198. this.workChecked = index;
  199. },
  200. close(){
  201. this.saralyChecked = -1;
  202. this.workChecked = -1;
  203. }
  204. }
  205. }
  206. </script>
  207. <style>
  208. page {
  209. background: #F0F0F2;
  210. padding-bottom: 50px;
  211. }
  212. </style>
  213. <style lang="scss" scoped>
  214. .search {
  215. background-color: #fff;
  216. padding: 16rpx 32rpx;
  217. .search-box {
  218. border-radius: 50px;
  219. height: 72rpx;
  220. line-height: 72rpx;
  221. }
  222. }
  223. // 搜索结果
  224. .result{
  225. background-color: #fff;
  226. .tabs{
  227. padding-right:32rpx;
  228. display: flex;
  229. justify-content: space-between;
  230. align-items: center;
  231. border-bottom:1px solid #f1f1f1;
  232. .left{
  233. width: 33%;
  234. /deep/.u-tabs{
  235. background-color: #fff !important;
  236. }
  237. }
  238. .screen{
  239. display: flex;
  240. align-items: center;
  241. color: rgba(39, 149, 253, 1);
  242. font-size: 16px;
  243. img{
  244. width: 16px;
  245. height: 16px;
  246. vertical-align: middle;
  247. margin-right: 4rpx;
  248. }
  249. }
  250. }
  251. .result-item{
  252. padding: 32rpx 0;
  253. margin:0 32rpx;
  254. display: flex;
  255. border-bottom:1px solid #f1f1f1;
  256. // 照片
  257. .photo{
  258. width: 96rpx;
  259. height:96rpx;
  260. overflow: hidden;
  261. border-radius: 50px;
  262. border: 1px solid rgba(255, 255, 255, 1);
  263. img{
  264. width: 100%;
  265. height: 100%;
  266. }
  267. }
  268. .content{
  269. margin-left: 24rpx;
  270. flex:1;
  271. // 职位薪水
  272. .top{
  273. display: flex;
  274. justify-content: space-between;
  275. align-items: center;
  276. font-size: 36rpx;
  277. .position{
  278. color: rgba(16, 16, 16, 1);
  279. font-family: 'PingFangSC-medium';
  280. }
  281. .salary{
  282. color: rgba(255, 61, 0, 1);
  283. font-size: 32rpx;
  284. }
  285. }
  286. // 发布人
  287. .issuer{
  288. margin-top:16rpx;
  289. }
  290. // 标签和时间
  291. .bottom{
  292. display: flex;
  293. justify-content: space-between;
  294. align-items: center;
  295. margin-top:24rpx;
  296. .tags{
  297. display: flex;
  298. .tag-item{
  299. padding:0 16rpx ;
  300. height: 36rpx;
  301. line-height: 36rpx;
  302. border-radius: 4px;
  303. background-color: rgba(241, 241, 247, 1);
  304. color: rgba(129, 127, 153, 1);
  305. font-size: 24rpx;
  306. text-align: center;
  307. margin-right: 8rpx;
  308. }
  309. }
  310. .date{
  311. color: rgba(153, 153, 153, 1);
  312. font-size: 24rpx;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. // 筛选框
  319. .popup-content {
  320. padding: 32rpx;
  321. .headline {
  322. color: #101010;
  323. font-size: 40rpx;
  324. text-align: center;
  325. }
  326. // 薪资待遇
  327. .salary-package,.work-experience{
  328. margin-top: 16rpx;
  329. .title {
  330. font-size: 32rpx;
  331. color: #111111;
  332. }
  333. // 选项
  334. .options {
  335. display: flex;
  336. flex-wrap: wrap;
  337. justify-content:flex-start;
  338. margin-top: 24rpx;
  339. .item {
  340. height: 56rpx;
  341. line-height: 56rpx;
  342. width: 210rpx;
  343. text-align: center;
  344. margin-bottom: 16rpx;
  345. margin-right: 16rpx;
  346. color: #999999;
  347. background-color: #F3F3F4;
  348. border-radius: 4px;
  349. }
  350. .checked {
  351. background-color: #2795FD;
  352. color: #fff;
  353. }
  354. }
  355. }
  356. .button{
  357. display: flex;
  358. margin-top:8rpx;
  359. .reset{
  360. color: #999999;
  361. background-color: #F3F3F4;
  362. width: 200rpx;
  363. height: 72rpx;
  364. line-height: 72rpx;
  365. border-radius: 8px;
  366. }
  367. .confirm{
  368. width: 440rpx;
  369. background-color: #2795FD;
  370. color: #fff;
  371. height: 72rpx;
  372. line-height: 72rpx;
  373. border-radius: 8px;
  374. }
  375. }
  376. }
  377. .salary-form,.clearing-form{
  378. .options{
  379. justify-content: start !important;
  380. }
  381. .item{
  382. margin-right: 24rpx;
  383. }
  384. }
  385. /deep/.u-close--top-right {
  386. top: 44rpx;
  387. }
  388. </style>