choreInformation.vue 7.9 KB

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