123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <template>
- <view>
- <u-navbar back-text="零工驿站" back-icon-size="0" :customBack="customBack" back-icon-color="#ffffff"
- :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
- <!-- 搜索框 -->
- <view class="search">
- <view class="search-box">
- <view class="option">
-
- <nxsearch :selectList="selectList" button="inside"
-
- @search="doSearch" @confirm="doSearc" :setIsFocus="false" @focus="gotoUrl('pages/packages/search/search')"
- v-model="searchQuery.keyword" placeholder="输入关键字找工作" />
- </view>
- </view>
- </view>
- <!-- 搜索结果 -->
- <view class="result">
- <view class="tabs">
- <view class="left">
- <u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current"
- @change="change"></u-tabs>
- </view>
- <view class="screen" @click="popupShow = true">
- <view class="icon">
- <img src="@/assets/img/riLine-filter-line@1x.png" alt="">
- </view>
- <view>筛选</view>
- </view>
- </view>
- <view class="result-item" v-for="item in 3">
- <!-- 照片 -->
- <view class="photo">
- <img src="@/assets/img/informationPhoto.png" alt="">
- </view>
- <view class="content">
- <!-- 职位薪水 -->
- <view class="top">
- <view class="position">
- 司机/保安/普工/地推
- </view>
- <view class="salary">
- 120元/天
- </view>
- </view>
- <view class="issuer">
- 李先生
- </view>
- <view class="bottom">
- <view class="tags">
- <view class="tag-item">
- 男
- </view>
- <view class="tag-item">
- 21岁
- </view>
- <view class="tag-item">
- 高中
- </view>
- </view>
-
- <view class="date">
- 更新时间:2023-06-01
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 筛选框 -->
- <u-popup v-model="popupShow" @close="close" mode="bottom" border-radius="20" :closeable="true">
- <view class="popup-content" >
- <view class="headline">
- 筛选
- </view>
- <!-- 薪资待遇 -->
- <view class="salary-package">
- <view class="title">
- 薪资待遇
- </view>
- <!-- 选项 -->
- <view class="options">
- <view :class="{item,checked:saralyChecked==index}" v-for="(item,index) in salaryList" :key="index"
- @click="changeSaralyChecked(index)" >
- {{item.name}}
- </view>
- </view>
- </view>
- <!-- 工作经验 -->
- <view class="work-experience">
- <view class="title">
- 工作经验
- </view>
- <!-- 选项 -->
- <view class="options">
- <view :class="{item,checked:workChecked==index}" v-for="(item,index) in workList" :key="index"
- @click="changeWorkChecked(index)" >
- {{item.name}}
- </view>
- </view>
- </view>
- <view class="button">
- <button class="reset">重置</button>
- <button class="confirm">确认</button>
- </view>
- </view>
- </u-popup>
- <tabbar :current="3"></tabbar>
- </view>
- </template>
- <script>
- import * as API from '@/apis/pagejs/tab.js'
- import tabbar from "@/components/Tabbar.vue"
-
- import nxsearch from "@/components/nx-search.vue"
- export default {
- components: {
- nxsearch,
- tabbar
- },
- data() {
- return {
- keyword: '',
- popupShow: false,
- saralyChecked:-1,
- workChecked:-1,
- searchQuery: {
- keyword: '',
- selectIndex: 0
- },
-
- salaryList:[{
- name:'100元/天以下'
- },
- {
- name:'100-150元/天'
- },{
- name:'150-180元/天'
- },{
- name:'200-300元/天'
- },{
- name:'300-400元/天'
- },{
- name:'400-500元/天'
- },
- {
- name:'500元/天以上'
- }
- ],
-
- workList:[{
- name:'应届生'
- },
- {
- name:'1年以上'
- },
- {
- name:'2年以上'
- },
- {
- name:'3年以上'
- },
- {
- name:'5年以上'
- }],
- // tabList: [{
- // name: '最新'
- // }, {
- // name: '日结'
- // }, {
- // name: '周结'
- // }, {
- // name: '月结'
- // }],
- selectList: [{
- id: 1,
- name: '找工作'
- },
- // {
- // id: 2,
- // name: '找公司'
- // },
- ],
- tabList: [{
- name: '最新'
- }, {
- name: '日结'
- }],
- current: 0
- }
- },
- methods: {
- customBack(){
-
- },
- // 执行搜索
- doSearch(searchQuery) {
- console.log('searchQuery', searchQuery);
- },
- change(index) {
- this.current = index;
- },
- changeSaralyChecked(index){
- this.saralyChecked = index;
- },
- changeWorkChecked(index){
- this.workChecked = index;
- },
- close(){
-
- this.saralyChecked = -1;
- this.workChecked = -1;
- }
-
-
- }
- }
- </script>
- <style>
- page {
- background: #F0F0F2;
- padding-bottom: 50px;
- }
- </style>
- <style lang="scss" scoped>
-
- .search {
- background-color: #fff;
- padding: 16rpx 32rpx;
- .search-box {
- border-radius: 50px;
- height: 72rpx;
- line-height: 72rpx;
- }
- }
- // 搜索结果
- .result{
- background-color: #fff;
- .tabs{
- padding-right:32rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom:1px solid #f1f1f1;
- .left{
- width: 33%;
- /deep/.u-tabs{
- background-color: #fff !important;
-
- }
- }
-
- .screen{
- display: flex;
- align-items: center;
- color: rgba(39, 149, 253, 1);
- font-size: 16px;
- img{
- width: 16px;
- height: 16px;
- vertical-align: middle;
- margin-right: 4rpx;
- }
- }
-
- }
-
- .result-item{
- padding: 32rpx 0;
- margin:0 32rpx;
- display: flex;
- border-bottom:1px solid #f1f1f1;
- // 照片
- .photo{
- width: 96rpx;
- height:96rpx;
- overflow: hidden;
- border-radius: 50px;
- border: 1px solid rgba(255, 255, 255, 1);
- img{
- width: 100%;
- height: 100%;
- }
- }
- .content{
- margin-left: 24rpx;
- flex:1;
- // 职位薪水
- .top{
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 36rpx;
- .position{
- color: rgba(16, 16, 16, 1);
-
- font-family: 'PingFangSC-medium';
- }
- .salary{
- color: rgba(255, 61, 0, 1);
- font-size: 32rpx;
- }
- }
- // 发布人
- .issuer{
- margin-top:16rpx;
- }
- // 标签和时间
- .bottom{
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top:24rpx;
- .tags{
- display: flex;
- .tag-item{
- padding:0 16rpx ;
- height: 36rpx;
- line-height: 36rpx;
- border-radius: 4px;
- background-color: rgba(241, 241, 247, 1);
- color: rgba(129, 127, 153, 1);
- font-size: 24rpx;
- text-align: center;
- margin-right: 8rpx;
- }
- }
- .date{
- color: rgba(153, 153, 153, 1);
- font-size: 24rpx;
- }
- }
- }
- }
-
-
- }
- // 筛选框
- .popup-content {
- padding: 32rpx;
-
- .headline {
- color: #101010;
- font-size: 40rpx;
- text-align: center;
- }
-
- // 薪资待遇
- .salary-package,.work-experience{
- margin-top: 16rpx;
-
- .title {
- font-size: 32rpx;
- color: #111111;
- }
-
- // 选项
- .options {
- display: flex;
- flex-wrap: wrap;
- justify-content:flex-start;
- margin-top: 24rpx;
-
- .item {
- height: 56rpx;
- line-height: 56rpx;
- width: 210rpx;
- text-align: center;
- margin-bottom: 16rpx;
- margin-right: 16rpx;
- color: #999999;
- background-color: #F3F3F4;
- border-radius: 4px;
- }
-
- .checked {
- background-color: #2795FD;
- color: #fff;
- }
- }
- }
-
- .button{
- display: flex;
-
- margin-top:8rpx;
- .reset{
- color: #999999;
- background-color: #F3F3F4;
- width: 200rpx;
- height: 72rpx;
- line-height: 72rpx;
- border-radius: 8px;
- }
- .confirm{
- width: 440rpx;
- background-color: #2795FD;
- color: #fff;
- height: 72rpx;
- line-height: 72rpx;
- border-radius: 8px;
- }
- }
- }
- .salary-form,.clearing-form{
- .options{
- justify-content: start !important;
- }
- .item{
- margin-right: 24rpx;
- }
- }
-
- /deep/.u-close--top-right {
- top: 44rpx;
- }
- </style>
|