cyl/develop
wangxia 12 months ago
parent cc6727a351
commit 41b5bebaaa

@ -82,7 +82,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="pt8 pb8 pl10 pr10 fsa" wx:if="{{corpUserFlag}}"> <view class="pt8 pb8 pl10 pr10 fsa" wx:if="{{corpUserFlag && type != 'main'}}">
<view class="br2 fss" style="background: #f1faff;"> <view class="br2 fss" style="background: #f1faff;">
<view class="tac" style="width:33px;height:22px;"> <view class="tac" style="width:33px;height:22px;">
<image class style="width:100%;height:100%" src="../../assets/images/xmf.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image> <image class style="width:100%;height:100%" src="../../assets/images/xmf.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>

@ -10,7 +10,7 @@ Page({
*/ */
data: { data: {
appId: app.globalData.appId, appId: app.globalData.appId,
pageShow: true,
isopen: 1, // 账户余额是否显示 isopen: 1, // 账户余额是否显示
iosDialog: false, iosDialog: false,
iosDialogTobe: false, iosDialogTobe: false,
@ -87,9 +87,9 @@ Page({
}); });
if (app.globalData.isLogin) { if (app.globalData.isLogin) {
this.getTeamList() this.getTeamList()
}
this.getJobList() this.getJobList()
}
}, 100); }, 100);
}, },
hidedrawershow (e) { hidedrawershow (e) {
@ -516,8 +516,38 @@ Page({
that.getJobList(); that.getJobList();
} }
}, },
// 下拉加载更多
onScrollToLower () {
console.log("====================================================");
var that = this;
if (app.globalData.isLogin) {
that.data.storeJobListSearchForm.pageNum =
that.data.storeJobListSearchForm.pageNum + 1;
if (that.data.hasMoreData) {
that.getJobList();
}
// 根据实际数据加载情况设定 loadMore 的值即可,分别为 load 和 over
this.setData({
loadMore: "load",
// loading:true
});
} else {
// if (that.data.pullNum == 0) {
// that.openIOS1();
// }
}
that.data.pullNum = that.data.pullNum + 1;
},
getJobList ($type) { getJobList ($type) {
let that = this let that = this
that.setData({
pageShow: false,
});
wx.showLoading({
title: "加载中...",
});
customRequest("/yishoudan/custom/job/listV2", { customRequest("/yishoudan/custom/job/listV2", {
method: 'post', method: 'post',
header: 'headers', header: 'headers',
@ -615,26 +645,7 @@ Page({
} else { } else {
item["fuWuFei"] = ""; item["fuWuFei"] = "";
} }
// 简版弹窗通告显示
if (item.id == that.data.currentJobDrawer.id) {
item["jobDesp"] = item.jobDesp
.replace(/\*\*\*\*\*/g, "")
.split("————————")[0];
// 展示用字段
item["jobDesp1"] = item.jobDesp.replace(
"⚠",
"<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>"
);
item["jobDesp1"] = item.jobDesp1.replace(
"[红包]",
"<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>"
);
that.data.currentJobDrawer = {
...item,
index: that.data.currentJobDrawer.index ?
that.data.currentJobDrawer.index : null,
};
}
}); });
console.log(' that.data.recordList', that.data.recordList); console.log(' that.data.recordList', that.data.recordList);
that.setData({ that.setData({
@ -642,19 +653,10 @@ Page({
currentJobDrawer: that.data.currentJobDrawer, currentJobDrawer: that.data.currentJobDrawer,
}); });
wx.hideLoading({ wx.hideLoading({
success: (res) => { }, success: (res) => {
console.log(123123);
},
}); });
resolve();
that.getTag();
// if (that.data.recordList.length < data.recordCount) {
// that.setData({
// hasMoreData: true,
// });
// } else {
// that.setData({
// hasMoreData: false,
// });
// }
}) })
} }
}); });

@ -1,7 +1,7 @@
<!-- pages/mine/mine.wxml --> <!-- pages/mine/mine.wxml -->
<view class="container"> <view class="container">
<scroll-view bindscrolltolower="onScrollToLower" style="height:calc(100vh)" enable-passive scroll-x="{{false}}" scroll-y="{{true}}"> <scroll-view bindscrolltolower="onScrollToLower" style="height:calc(100vh - 90px)" enable-passive scroll-x="{{false}}" scroll-y="{{true}}">
<view class="pl10 pr10" hover-class="none" hover-stop-propagation="false"> <view class="pl10 pr10" hover-class="none" hover-stop-propagation="false">
<navigator class target url="/pages/userDetail/index" hover-class="none" open-type="navigate" wx:if="{{isLogin}}"> <navigator class target url="/pages/userDetail/index" hover-class="none" open-type="navigate" wx:if="{{isLogin}}">
<view class="userinfobox"> <view class="userinfobox">
@ -408,8 +408,28 @@
<!-- <image wx:if="{{toped == '1'}}" src="../../assets/images/border-circle.svg" class="tarbarImg"></image> --> <!-- <image wx:if="{{toped == '1'}}" src="../../assets/images/border-circle.svg" class="tarbarImg"></image> -->
</view> </view>
</view> </view>
<view class="mt12" hover-class="none" hover-stop-propagation="false"> <view class="mt12" style='min-height:80vh' hover-class="none" hover-stop-propagation="false">
<job-sub storeJobListSearchForm="{{storeJobListSearchForm}}" type="main" recordList="{{recordList}}" isLogin="{{isLogin}}" agencyStatus="{{userInfo.agencyStatus}}" hasUserInfo="{{hasUserInfo}}" loginUserInfo="{{userInfo}}"></job-sub> <job-sub storeJobListSearchForm="{{storeJobListSearchForm}}" type="main" recordList="{{recordList}}" isLogin="{{isLogin}}" agencyStatus="{{userInfo.agencyStatus}}" hasUserInfo="{{hasUserInfo}}" loginUserInfo="{{userInfo}}"></job-sub>
<view wx:if="{{(recordList == null || recordList.length == 0) }}" class="tc">
<block wx:if="{{pageShow}}">
<view class="t-icon t-icon-zanwu" style="width: 80px; height: 80px; margin: 50% auto 20px"></view>
<view class="tc p20 f12 c045">没有符合条件的职位</view>
</block>
</view>
<block wx:else>
<block wx:if="{{isLogin}}">
<view class="tc p20 f12 c045" wx:if="{{!hasMoreData && recordList.length != 0}}">已经到底啦~</view>
<view class="tc p20 f12 c045" wx:if="{{hasMoreData }}">上滑加载更多</view>
</block>
<block wx:if="{{!isLogin}}">
<view style="padding:0px 12px 10px;margin-top: -6px;">
<text style="font-size: 14px;color: #999999;line-height: 20px;">未登录时只能使用部分功能,申请加入伯才供应链即可使用更多功能。</text>
</view>
<!-- <button class="clickMore mb20" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber1" catchtap="emptyMethod">登录查看更多职位</button> -->
<view class="mt12 f14 tc" bindtap="goLogin" style="color: #576b95;padding-bottom: 80px;">登录伯才</view>
<!-- <view class="tc p20 f12 c045">已经到底啦~</view> -->
</block>
</block>
</view> </view>
</view> </view>

Loading…
Cancel
Save