cyl/dev
jscyl13849007907 1 year ago
parent 3aee586f21
commit 02960234db

@ -10,6 +10,7 @@ import {
} from '../../utils/request.js'
Page({
data: {
isSwiper:true,
toped: "1",
jobNum: 0, // 48小时更新职位数
currCode: '',
@ -610,7 +611,7 @@ Page({
this.data.recordList = [];
this.data.storeJobListSearchForm.pageNum = 1;
this.data.storeJobListSearchForm.keys = this.data.inputVal;
this.getJobList();
this.getJobList('search');
},
onShareAppMessage: function () {
var path = commonUtil.getCurrentPageUrlWithArgs();
@ -658,7 +659,7 @@ Page({
this.data.recordList = [];
this.data.storeJobListSearchForm.pageNum = 1;
this.data.storeJobListSearchForm.keys = "";
this.getJobList();
this.getJobList('search');
},
inputTyping: function (e) {
this.setData({
@ -1812,6 +1813,17 @@ Page({
// this.getJobList();
},
swiperToggleT(){
this.setData({
isSwiper:false
})
},
swiperToggleF(){
this.setData({
// isSwiper:true,
// inputVal:''
})
},
/**
* 点击确认按钮
*
@ -2581,7 +2593,7 @@ Page({
// this.getJobList();
},
getJobList () {
getJobList ($type) {
var that = this;
// debugger
that.setData({
@ -2629,6 +2641,12 @@ Page({
}).then((res) => {
console.log("职位列表↓↓↓↓");
console.log(res);
if($type == 'search'){
that.setData({
isSwiper:true,
inputVal:''
})
}
let data = res.data.data
that.setData({
totalPage: data.pageCount,

@ -11,21 +11,38 @@
</view>
<!-- catchtap="goSearch" -->
<view class="weui-search-bar__box" id="searchInput" style="overflow:hidden">
<view class="fss" hover-class="none" hover-stop-propagation="false">
<view class="fss g_flex_1" hover-class="none" hover-stop-propagation="false" style="position: relative;">
<i class="iconfont icon-sousuo11 mr4"></i>
<!-- <swiper class="c9 f14 ml4" style="height: 40px;width:70px;line-height:42px" bindchange="getSwiperIndex" autoplay circular vertical interval="{{5000}}" duration="{{600}}">
<view style="position: absolute;left: 18px;top: 0;width: 90%;" wx:if="{{isSwiper}}">
<swiper class="c9 f14 ml4"
style="height: 40px;width:70px;line-height:42px"
bindchange="getSwiperIndex"
autoplay
circular vertical interval="{{5000}}" duration="{{600}}">
<block wx:for="{{swiperTextList}}" wx:key="index">
<swiper-item catchtouchmove="modalMove">
<view data-item="{{item}}" class="single-word color-gray">{{item}}</view>
</swiper-item>
</block>
</swiper>-->
<input type="text" value="{{inputVal}}" class="f14" bindinput="inputTyping" placeholder="{{jobNum ? '最近更新' + jobNum + '条信息' : ''}}" catchblur placeholder-class="f14" confirm-type="search" />
<view class="iconfont icon-guanbi11 f10 c9 biggerSize" wx:if="{{chaShowed}}" style="color:#333;right:4px" catchtap="clearInput"></view>
</swiper>
</view>
<input type="text"
value="{{inputVal}}"
class="f14"
bindinput="inputTyping"
placeholder=""
catchblur
placeholder-class="f14"
confirm-type="search"
style="position: absolute;left: 18px;top: 0;width: 90%;height: 100%;"
bindfocus="swiperToggleT"
bindblur="swiperToggleF"
maxlength="12"
/>
<view class="iconfont icon-guanbi11 f10 c9 biggerSize" wx:if="{{chaShowed}}" style="color:#333;left: 80%;" catchtap="clearInput"></view>
</view>
<!-- <view class="weui-search-bar__input f14 oelps {{!chaShowed ? 'c9' : 'c3'}}" style="max-width: 70px;">{{inputVal}}</view> -->
<!-- <view class="iconfont icon-guanbi11 f10 c9" wx:if="{{chaShowed}}" style="color:#333" catchtap="clearInput"></view> -->
<view class="search f16" catchtap="searchKey" style="color: var(--color-ysd);">搜索</view>
<view class="search f16 g_flex_none" catchtap="searchKey" style="color: var(--color-ysd);">搜索</view>
</view>
<!-- <image class style="width:40px;height:40px;margin-left:12px" bindtap="toEnroll" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/IOS/ksbm.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image> -->
</view>

Loading…
Cancel
Save