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

105 lines
3.7 KiB

<!--subpages/index/recruitment/recruitment.wxml-->
<view class="recruitment-container" >
<!-- 头部 -->
<view class="header">
<view class="navigation-back" bind:tap="handleGoToBack" style="top: {{statusHeight + 10}}px;">
<van-icon name="arrow-left" size="50rpx" color="#333333" />
</view>
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;line-height:{{navigationHeight}}px;text-align: center;">
{{recommendShow ? '招聘信息' : '推荐岗位'}}
</view>
<!-- 搜索框 -->
<view class="search-section" style="margin-top: {{statusHeight}}px;" wx:if="{{recommendShow}}">
<van-search
model:value="{{ searchValue }}"
placeholder="请输入职位/公司"
bind:search="onSearch"
shape="round"
background="transparent"
field-style="background: #fff; border-radius: 50rpx;"
>
</van-search>
</view>
</view>
<!-- 内容区域 -->
<view class="content-body">
<!-- 筛选下拉菜单 -->
<view class="filter-section" wx:if="{{recommendShow}}">
<van-dropdown-menu active-color="#01bbaf">
<van-dropdown-item
model:value="{{ areaValue }}"
options="{{ areaOptions }}"
bind:change="onAreaChange"
/>
<van-dropdown-item
model:value="{{ industryValue }}"
options="{{ industryOptions }}"
bind:change="onIndustryChange"
/>
<van-dropdown-item
model:value="{{ positionValue }}"
options="{{ positionOptions }}"
bind:change="onPositionChange"
/>
<van-dropdown-item
model:value="{{ salaryValue }}"
options="{{ salaryOptions }}"
bind:change="onSalaryChange"
/>
</van-dropdown-menu>
</view>
<!-- 温馨提示 -->
<view class="tip-section" wx:if="{{ !showTip }}">
<view class="tip-content">
<van-icon name="warning" size="32rpx" color="#ff9500" />
<text class="tip-text">您尚未填写意向岗位,请补充完善信息。</text>
<van-button size="mini" round color="#f1a113" bind:click="goComplete">去完善</van-button>
</view>
</view>
<!-- 职位列表 -->
<view class="job-list">
<view class="job-item" wx:for="{{ jobList }}" wx:key="id" bind:tap="onJobTap" data-item="{{ item }}">
<view class="job-header">
<view class="job-title">{{ item.positionCategory }}</view>
<view class="job-salary" style="color: #0fb3a2;">{{ item.minWage }}-{{ item.maxWage }}</view>
</view>
<view class="job-info">
<text class="job-date" wx:if="{{item.startTime}}">{{ item.startTime ||''}}</text>
<text class="job-degree" wx:if="{{item.minEdu}}">{{ item.minEdu||'' }}</text>
<text class="job-experience" wx:if="{{item.workExp}}">{{ item.workExp ||''}}</text>
</view>
<view class="company-info">
<text class="company-name">{{ item.companyName ||'' }}</text>
<text class="company-source">来源: 招聘e站</text>
</view>
<!-- <view class="job-tags" wx:if="{{ item.benefits && item.benefits.length > 0 }}">
<van-tag
wx:for="{{ item.benefits }}"
wx:for-item="benefits"
wx:key="*this"
size="small"
type="primary"
plain
>
{{ tag.benefits }}
</van-tag>
</view> -->
</view>
</view>
<!-- 加载更多 -->
<view class="loading-section" wx:if="{{ loading }}">
<text>加载中...</text>
</view>
<!-- 暂无数据 -->
<view class="empty-section" wx:if="{{ !loading && jobList.length === 0 }}">
<image src="../../../images/icon/zwsj.png" class="empty-image" />
<text class="empty-text">暂无招聘信息</text>
</view>
</view>
</view>