<wxs src="../tools.wxs" module="globalTools"></wxs>
<wxs src="./index.wxs" module="Tools"></wxs>

<view class='app-header'>
	<view class='map' bindtap='toCity'>
		<text class='cityname'>{{cityName}}</text>
		<view class='location'>
			<image src='/images/happyjob/index_position.png'></image>
		</view>
		<!-- <i-icon class="arrow-down" type="play_fill" /> -->
	</view>
	<view class='search' bindtap='toSearch'>
		<view class="search-content">
			<view class='i_search'>
				<image src='/images/happyjob/search.png'></image>
			</view>
			<text class='search-input'>搜索你想要的好岗位</text>
		</view>
		<!-- <view class="btn-search"><text>搜索</text></view> -->
	</view>
</view>
<!-- 轮播 -->
<!-- <view class="swiper">
	<swiper indicator-dots="true" autoplay="true" interval="5000" duration="500" circular="true" indicator-active-color="#FE7235" class="banner">
		<block wx:for="{{imgList}}" wx:key="picUrl">
			<swiper-item class='banner-item'>
				<image lazy-load='true' src="{{item.picUrl}}" catchtap='toDetail_slide' data-id="{{item.positionDetail}}" data-url="{{item.picDetail}}" class="slide-image" mode='widthFix' />
			</swiper-item>
		</block>
	</swiper>
</view> -->
<!-- 滚动 -->
<view class='marquee'>
	<view class='broadcast'>
		<image src='/images/happyjob/index_hot.png'></image>
		<text>开心头条：</text>
	</view>
	<!-- 跑马灯 暂未调好速度问题 -->
	<!-- <view class='swip'>
    <marquee text="{{broadcastText}}"></marquee>
  </view> -->
	<swiper class='swip' autoplay="true" interval="4000" duration="600" circular="true" vertical="true">
		<block wx:for="{{broadcastList}}" wx:key="bo">
			<swiper-item>
				<view>{{item}}</view>
			</swiper-item>
		</block>
	</swiper>
</view>

<!-- 岗位 -->
<view class="activity-box">
	<view class="activity">
		<block wx:for="{{activity}}" wx:key="text">
			<view class="activity-item" bindtap='changeList' data-index="{{index}}" hover-class="none">
				<image src="{{item.src}}" mode="scaleToFill"></image>
				<text>{{item.text}}</text>
			</view>
		</block>
	</view>
</view>
<!-- 岗位2 -->
<view class="activity-box2">
	<view class="activity2">
		<block wx:for="{{activity_two}}" wx:key="text">
			<view class="activity-item2" bindtap='changeList2' data-index="{{index}}" hover-class="none">
				<image src="{{item.src}}" mode="scaleToFill"></image>
			</view>
		</block>
	</view>
</view>

<!-- 热门岗位 -->
<view class='box-body safe_area'>
	<view class='box_title'>为您推荐：</view>
	<list list='{{list}}' isScroll='{{isScroll}}' showNoMore='{{showNoMore}}' bind:action='toDetail' />
</view>
<!-- <view class="loading_no" hidden='{{isScroll}}'>{{showNoMore}}</view> -->
<!-- 客服 -->
<kefu />
<!-- 公众号组件 -->
<view class='office'>
	<official-account></official-account>
</view>
<view class="no_data" wx:if='{{!list.length&&offline}}'>
	<image src="/images/happyjob/index_offline.png"></image>
	<view class="no_text">
		<text>无网络连接</text>
		<text class="text">请在地球有信号的地方使用</text>
	</view>
	<view class="reload" bindtap="reload">刷新试试</view>
</view>

<view class="disclaimer" wx:if='{{disclaimer}}'>
	<image class="disclaimer-image" src="{{imgServerUrl}}/images/happyjob/disclaimer.png"></image>
	<view class="disclaimer-button-content">
		<view class="disclaimer-button" bindtap="knowDisclaimer">
			<text>我已知晓，进入开心工作</text>
		</view>
	</view>
</view>