禁止重复提交

master
zsk 2 years ago
parent cdb3a0feb5
commit 733ee575be

@ -4,6 +4,7 @@ var dateUtil = require("../../utils/dateUtil.js");
var dateTimePicker = require("../../utils/dateTimePicker.js"); var dateTimePicker = require("../../utils/dateTimePicker.js");
Component({ Component({
data: { data: {
disabled:false,
idCardImageUrl:"", idCardImageUrl:"",
idCardNum:"", idCardNum:"",
dateTime: "", dateTime: "",
@ -233,6 +234,12 @@ Component({
e.detail.value.idCardImageUrl = that.data.idCardImageUrl e.detail.value.idCardImageUrl = that.data.idCardImageUrl
} }
e.detail.value.jobId = that.data.info.id e.detail.value.jobId = that.data.info.id
that.setData({
disabled:true
})
console.log('form发生了submit事件携带数据为', e.detail.value) console.log('form发生了submit事件携带数据为', e.detail.value)
wx.request({ wx.request({
url: app.globalData.ip + '/yishoudan/common/order/add', url: app.globalData.ip + '/yishoudan/common/order/add',
@ -249,6 +256,7 @@ Component({
that.setData({ that.setData({
show: false, show: false,
ageIndex:-1, ageIndex:-1,
disabled:false,
idCardNum:"" idCardNum:""
}) })
wx.showTabBar({ wx.showTabBar({
@ -260,6 +268,9 @@ Component({
}); });
} else { } else {
that.setData({
disabled:false,
})
wx.showToast({ wx.showToast({
icon: "none", icon: "none",
title: res.data.msg, title: res.data.msg,

@ -113,7 +113,7 @@
<i class="iconfont icon-tianjia3 mr8 fw400"></i>选择报名人 <i class="iconfont icon-tianjia3 mr8 fw400"></i>选择报名人
</button> --> </button> -->
<button class="loginOut mt0" style="width: 100%; " formType="submit" hover-class="thover">立即报名</button> <button class="loginOut mt0 {{disabled ? 'disabled' : '' }}" style="width: 100%;" formType="submit" hover-class="thover">立即报名</button>
</view> </view>
</view> </view>
</view> </view>

@ -72,3 +72,7 @@
padding: 4px; padding: 4px;
box-sizing: border-box; box-sizing: border-box;
} }
button.loginOut.disabled {
pointer-events: none;
background: #aaa;
}

@ -3,6 +3,8 @@ const app = getApp();
const commonUtil = require("../../utils/commonUtil.js"); const commonUtil = require("../../utils/commonUtil.js");
Page({ Page({
data: { data: {
currentInfo:{},
recordShow: false,
toped: "1", toped: "1",
chaShowed: false, chaShowed: false,
isTrigger: false, isTrigger: false,
@ -45,7 +47,7 @@ Page({
jobSpecialLabelIds: "", jobSpecialLabelIds: "",
cityName: "", cityName: "",
brandIds: "", brandIds: "",
ucj: 0, ujc: 0,
}, },
loading: true, loading: true,
topJobList: [], topJobList: [],
@ -536,7 +538,7 @@ Page({
// var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(","); // var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(",");
// res.data.data.forEach((item) => { // res.data.data.pageBean.forEach((item) => {
// item["checked"] = false; // item["checked"] = false;
// brandIdArray.forEach((item1) => { // brandIdArray.forEach((item1) => {
// if (item.id == item1) { // if (item.id == item1) {
@ -1158,13 +1160,13 @@ Page({
var that = this; var that = this;
wx.request({ wx.request({
url: app.globalData.ip + "/store/job/collected/list?ucj=1", url: app.globalData.ip + "/store/job/collected/list?ujc=1",
method: "GET", method: "GET",
data: {}, data: {},
header: app.globalData.headers, header: app.globalData.headers,
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let collectList = res.data.data.recordList; let collectList = res.data.data.pageBean.recordList;
let jobs = that.data.recordList; let jobs = that.data.recordList;
if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) { if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) {
for (var j = 0; j != jobs.length; ++j) { for (var j = 0; j != jobs.length; ++j) {
@ -1367,7 +1369,7 @@ Page({
}); });
console.log(that.data.storeJobListSearchForm); console.log(that.data.storeJobListSearchForm);
wx.request({ wx.request({
url: app.globalData.ip + "/assistant/custom/job/v2/list", url: app.globalData.ip + "/yishoudan/custom/job/listApp",
method: "POST", method: "POST",
header: app.globalData.headers, header: app.globalData.headers,
data: that.data.storeJobListSearchForm, data: that.data.storeJobListSearchForm,
@ -1376,8 +1378,8 @@ Page({
console.log(res); console.log(res);
that.setData({ that.setData({
totalPage: res.data.data.pageCount, totalPage: res.data.data.pageBean.pageCount,
currPage: res.data.data.currentPage, currPage: res.data.data.pageBean.currentPage,
}); });
setTimeout(function () { setTimeout(function () {
@ -1385,8 +1387,8 @@ Page({
triggered: false, triggered: false,
}); });
}, 1000); }, 1000);
if (res.data.data.recordList == null || res.data.data.recordList.length == 0 || res.data.data.recordList.length < that.data.storeJobListSearchForm.pageSize) { if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.data.storeJobListSearchForm.pageSize) {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList); var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp); that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({ that.setData({
@ -1395,7 +1397,7 @@ Page({
isTrigger: false, isTrigger: false,
}); });
} else { } else {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList); var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp); that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({ that.setData({
@ -1442,7 +1444,7 @@ Page({
console.log(that.data.navigatorBarHeight); console.log(that.data.navigatorBarHeight);
}); });
}, 300); }, 300);
// if (that.data.recordList.length < res.data.data.recordCount) { // if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
// that.setData({ // that.setData({
// hasMoreData: true, // hasMoreData: true,
// }); // });
@ -1707,8 +1709,8 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
app.globalData.openId = res.data.data.openId; app.globalData.openId = res.data.data.pageBean.openId;
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
var collected = e.currentTarget.dataset.collected; var collected = e.currentTarget.dataset.collected;
if (collected) { if (collected) {
promise.then((res) => { promise.then((res) => {
@ -1760,7 +1762,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
var collected = e.currentTarget.dataset.collected; var collected = e.currentTarget.dataset.collected;
if (collected) { if (collected) {
promise.then((res) => { promise.then((res) => {
@ -1773,7 +1775,7 @@ Page({
promise.then((res) => { promise.then((res) => {
wx.navigateTo({ wx.navigateTo({
url: "../enroll/index?applyType=1", url: "../enroll/index?applyType=1",
//url: "../enroll/index?applyType=1&tel=" + res.data.data.phoneNumber //url: "../enroll/index?applyType=1&tel=" + res.data.data.pageBean.phoneNumber
}); });
}); });
} }
@ -1837,7 +1839,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
promise.then((res) => { promise.then((res) => {
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
@ -1867,7 +1869,7 @@ Page({
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
promise.then((res) => { promise.then((res) => {
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
@ -1932,102 +1934,84 @@ Page({
}, },
}); });
}, },
collectPaste(e) { collectPaste (e) {
var txt; var txt;
var that = this; var that = this;
if (!this.data.isLogin) { if (!this.data.isLogin) {
wx.redirectTo({ wx.navigateTo({
url: "/pages/login/index", url: "/pages/login/index",
}); });
return; return;
} }
var collected = e.currentTarget.dataset.collected; var collected = e.currentTarget.dataset.collected;
var storeJobId = e.currentTarget.dataset.jobid; var storeJobId = e.currentTarget.dataset.jobid;
that.doCollected(collected, storeJobId); that.doCollected(collected, storeJobId);
// console.log(collected); // console.log(collected);
// if(!this.data.isCollect){ // if(!this.data.isCollect){
// that.setData({ // that.setData({
// isCollect: true, // isCollect: true,
// collectTxt:'已收藏' // collectTxt:'已收藏'
// }) // })
// txt = '收藏成功' // txt = '收藏成功'
// }else{ // }else{
// that.setData({ // that.setData({
// isCollect: false, // isCollect: false,
// collectTxt:'收藏' // collectTxt:'收藏'
// }) // })
// } // }
}, },
doCollected(collected, storeJobId) { doCollected (collected, storeJobId) {
var that = this; var that = this;
var url = "/user/collect/job/add"; var url = "/yishoudan/custom/job/collect/" + storeJobId;
if (collected - 1 == 0) { // if (collected - 1 == 0) {
url = "/user/collect/job/remove"; // url = "/user/collect/job/remove";
} // }
console.log(app.globalData.headers); // console.log(app.globalData.headers);
//发起网络请求 //发起网络请求
wx.request({ wx.request({
url: app.globalData.ip + url, url: app.globalData.ip + url,
data: { // data: {
storeJobId: storeJobId, // jobId: storeJobId,
}, // classify:0
header: app.globalData.headers, // },
method: "GET", header: app.globalData.headers,
success: function (res) { method: "GET",
var txt; success: function (res) {
if (collected - 1 == 0) { var txt;
//取消收藏 if (collected - 1 == 0) {
for (var i = 0; i != that.data.recordList.length; ++i) { //取消收藏
if (that.data.recordList[i].id - storeJobId == 0) { for (var i = 0; i != that.data.recordList.length; ++i) {
that.data.recordList[i].collected = 2; if (that.data.recordList[i].id - storeJobId == 0) {
break; that.data.recordList[i].collected = 0;
} break;
} }
txt = "取消收藏"; }
that.data.currentJobDrawer.collected = 2; txt = "取消收藏";
} else {
if (that.data.choiceCollect == 1) { //收藏
if (that.data.drawerShow) { for (var i = 0; i != that.data.recordList.length; ++i) {
that.data.drawerShow = false; if (that.data.recordList[i].id - storeJobId == 0) {
} that.data.recordList[i].collected = 1;
that.data.storeJobListSearchForm.pageNum = 1; break;
that.setData({ }
recordList: [], }
drawerShow: that.data.drawerShow, txt = "收藏成功";
storeJobListSearchForm: that.data.storeJobListSearchForm, }
}); that.setData({
that.getJobList(); recordList: that.data.recordList,
} currentJobDrawer: that.data.currentJobDrawer,
} else { isLogin: app.globalData.isLogin,
//收藏 });
for (var i = 0; i != that.data.recordList.length; ++i) { wx.showToast({
if (that.data.recordList[i].id - storeJobId == 0) { icon: "none",
that.data.recordList[i].collected = 1; title: txt,
break; });
} },
} fail: function (res) {
that.data.currentJobDrawer.collected = 1; console.log("操作失败");
},
txt = "收藏成功"; });
} },
console.log(that.data.currentJobDrawer);
that.setData({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
isLogin: app.globalData.isLogin,
});
wx.showToast({
icon: "none",
title: txt,
});
},
fail: function (res) {
console.log("操作失败");
},
});
},
getUserInfoBtn: function (e) { getUserInfoBtn: function (e) {
console.log(e); console.log(e);
let that = this; let that = this;
@ -2134,7 +2118,7 @@ Page({
if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.id == 0)) { if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.id == 0)) {
if (e.currentTarget.dataset.id) { if (e.currentTarget.dataset.id) {
that.data.choiceCollect = e.currentTarget.dataset.id; that.data.choiceCollect = e.currentTarget.dataset.id;
that.data.storeJobListSearchForm.ucj = e.currentTarget.dataset.id; that.data.storeJobListSearchForm.ujc = e.currentTarget.dataset.id;
that.data.storeJobListSearchForm.pageNum = 1; that.data.storeJobListSearchForm.pageNum = 1;
that.setData({ that.setData({
choiceCollect: that.data.choiceCollect, choiceCollect: that.data.choiceCollect,
@ -2259,7 +2243,7 @@ Page({
} }
}); });
that.data.storeJobListSearchForm.jobSpecialLabelIds = ""; that.data.storeJobListSearchForm.jobSpecialLabelIds = "";
// that.data.storeJobListSearchForm.ucj = // that.data.storeJobListSearchForm.ujc =
// that.data.storeJobListSearchForm.brandIds = ""; // that.data.storeJobListSearchForm.brandIds = "";
that.data.storeJobListSearchForm.jobCategoryLabelIds = ""; that.data.storeJobListSearchForm.jobCategoryLabelIds = "";
that.data.storeJobListSearchForm.pageNum = 1; that.data.storeJobListSearchForm.pageNum = 1;
@ -2320,22 +2304,75 @@ Page({
* *
* *
*/ */
recordBill(e) { hidedrawershow (e) {
console.log(e);
this.setData({
[e.detail.type]: false
})
wx.showTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
},
hideDrawer () {
let that = this;
this.getTabBar().setData({
isShow: true,
});
that.setData({
drawerShow: false,
});
// this.getJobList();
// setTimeout(() => {
// wx.showTabBar({
// success(e) {},
// });
// }, 300);
},
recordBill (e) {
// if (!this.data.isLogin) {
// wx.navigateTo({
// url: "/pages/login/index",
// });
// return;
// }
console.log(e.currentTarget.dataset.job); console.log(e.currentTarget.dataset.job);
console.log(123); this.setData({
let middleInfo = e.currentTarget.dataset.job; recordShow: true,
let info = JSON.stringify({ currentInfo: e.currentTarget.dataset.job,
id: middleInfo.id, })
jobName: middleInfo.jobName, console.log(this.data.recordShow);
storeName: middleInfo.storeName, wx.hideTabBar({
aliasName: middleInfo.aliasName, animation: false,
storeId: middleInfo.storeId, success: (result) => {
});
console.log(info); },
wx.navigateTo({ fail: () => { },
url: `../newEnroll/enroll/index?applyType=1&info=${info}`, complete: () => { }
}); });
}, return
console.log(e.currentTarget.dataset.job);
console.log(123);
let middleInfo = e.currentTarget.dataset.job;
let info = JSON.stringify({
id: middleInfo.id,
jobName: middleInfo.jobName,
storeName: middleInfo.storeName,
aliasName: middleInfo.aliasName,
storeId: middleInfo.storeId,
});
console.log(info);
wx.navigateTo({
url: `../../newEnroll/enroll/index?applyType=1&info=${info}`,
});
// wx.navigateTo({
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
// });
},
imageLoad() { imageLoad() {
this.setData({ this.setData({
isLoading: false, isLoading: false,

@ -1,5 +1,7 @@
{ {
"usingComponents": {}, "usingComponents": {
"bottom-drawer": "../../components/bottom-drawer/index"
},
"navigationBarTitleText": "搜索", "navigationBarTitleText": "搜索",
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",

@ -89,7 +89,7 @@
</view> </view>
</view>--> </view>-->
<view class="xgxg p012" id="menu" wx:if="{{!isWannaShow && !isFilterPage}}"> <view class="xgxg p012" id="menu" wx:if="{{!isWannaShow && !isFilterPage}}">
<view class="display-flex" style="justify-content:space-beteween; height: 44px"> <view class="display-flex" style="justify-content:space-beteween; height: 36px">
<view class="csbf v-center p0" style="background-color:#fff" hover-class="thover" bindtap="goCity"> <view class="csbf v-center p0" style="background-color:#fff" hover-class="thover" bindtap="goCity">
<view class="f16 fw500 dib">{{searchCityParamStorage.name == '' ? '全国' : searchCityParamStorage.shortName}}</view> <view class="f16 fw500 dib">{{searchCityParamStorage.name == '' ? '全国' : searchCityParamStorage.shortName}}</view>
<i class="iconfont icon-zhankai f12" style="margin: 1px 0px 0 6px"></i> <i class="iconfont icon-zhankai f12" style="margin: 1px 0px 0 6px"></i>
@ -262,15 +262,10 @@
<view class="prImg"> <view class="prImg">
<image src="{{item.logo}}" wx:if="{{item.logo != null && item.logo != ''}}" mode="aspectFit" class="logoClass" alt></image> <image src="{{item.logo}}" wx:if="{{item.logo != null && item.logo != ''}}" mode="aspectFit" class="logoClass" alt></image>
<image class="logoClass" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image> <image class="logoClass" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image>
<button wx:if="{{isLogin && hasUserInfo - 0 == 0}}" class="collect biggerSize2 v-center {{item.collected - 1 == 0 ? 'collectred':''}}" open-type="getUserInfo" style="width:52px;" catchtap="getUserInfoBtn" data-type="4" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation> <button wx:if="{{isLogin}}" class="collect biggerSize v-center {{item.collected - 1 == 0 ? 'collectred':''}}" catchtap="collectPaste" style="width:52px;" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang lh12" style="color: #888" wx:if="{{item.collected - 2 == 0}}"></icon> <icon class="iconfont icon-shoucang lh12" style="color: #888" wx:if="{{item.collected == 0}}"></icon>
<icon class="iconfont icon-yishoucang lh12 color-f40" style wx:else></icon> <icon class="iconfont icon-yishoucang lh12 color-f40" style wx:else></icon>
<text class="f10 {{item.collected - 1 == 0 ? 'color-f40':'c8'}}" style="line-height: 36px; margin-left: 2px">{{item.collected - 2 == 0 ? '收藏' : '已收藏'}}</text> <text class="f10 {{item.collected - 1 == 0 ? 'color-f40':'c8'}}" style="line-height: 12px; margin-left: 2px">{{item.collected == 0 ? '收藏' : '已收藏'}}</text>
</button>
<button wx:if="{{isLogin && hasUserInfo - 1 == 0}}" class="collect biggerSize v-center {{item.collected - 1 == 0 ? 'collectred':''}}" catchtap="collectPaste" style="width:52px;" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang lh12" style="color: #888" wx:if="{{item.collected - 2 == 0}}"></icon>
<icon class="iconfont icon-yishoucang lh12 color-f40" style wx:else></icon>
<text class="f10 {{item.collected - 1 == 0 ? 'color-f40':'c8'}}" style="line-height: 12px; margin-left: 2px">{{item.collected - 2 == 0 ? '收藏' : '已收藏'}}</text>
</button> </button>
<button wx:if="{{!isLogin}}" style="width:52px;" class="collect biggerSize" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" catchtap="emptyMethod" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation> <button wx:if="{{!isLogin}}" style="width:52px;" class="collect biggerSize" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" catchtap="emptyMethod" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang" style="color: #888"></icon> <icon class="iconfont icon-shoucang" style="color: #888"></icon>
@ -290,7 +285,7 @@
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</block> <block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</block>
<block wx:else>{{item.age}}</block> <block wx:else>{{item.age}}</block>
</view> </view>
<view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> <!-- <view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> -->
</view> </view>
</view> </view>
<view class="display-flex"> <view class="display-flex">
@ -300,10 +295,10 @@
<view class="tagsLi" wx:if="{{item.jobSpecialLabelNameArray.length <= 0}}">暂无特色</view> <view class="tagsLi" wx:if="{{item.jobSpecialLabelNameArray.length <= 0}}">暂无特色</view>
</scroll-view> </scroll-view>
<block wx:if="{{item.state == 1 && item.recruitment == 2}}"> <block wx:if="{{item.state == 1 && item.recruitment == 2}}">
<view class="miniBtn disabled" hover-stop-propagation="false">报名</view> <view class="miniBtn disabled" hover-stop-propagation="false">立即报名</view>
</block> </block>
<block wx:else> <block wx:else>
<view class="miniBtn" bindtap="recordBill" data-job="{{item}}" hover-class="thover" hover-stop-propagation="false">报名</view> <view class="miniBtn" catchtap="recordBill" data-job="{{item}}" hover-class="thover" hover-stop-propagation="false">立即报名</view>
</block> </block>
<!-- <view class="fsa bz f12 fee" wx:if="{{agencyStatus == 1 || corpUserFlag == true}}"> <!-- <view class="fsa bz f12 fee" wx:if="{{agencyStatus == 1 || corpUserFlag == true}}">
@ -334,146 +329,15 @@
</view> </view>
<view wx:if="{{recordList == null || recordList.length == 0 && pageShow && !isWannaShow}}" style='height:calc(100vh - 95px)' class="tc"> <view wx:if="{{recordList == null || recordList.length == 0 && pageShow && !isWannaShow}}" style='height:calc(100vh - 95px)' class="tc">
<view class="t-icon t-icon-zanwu" style="width: 80px; height: 80px; margin: 50% auto 20px"></view> <view class="t-icon t-icon-zanwu" style="width: 80px; height: 80px; margin: 120px auto 20px"></view>
<view class="tc f14 c045">没有符合条件的职位</view> <view class="tc f14 c045">没有符合条件的职位</view>
</view> </view>
</block> </block>
<!-- 简版列表 -->
<block wx:if="{{toped == 2}}">
<view wx:if="{{recordList != null && recordList.length > 0}}" class style="padding-top: 0;">
<scroll-view scroll-y="{{true}}" enable-back-to-top="true" bindscrolltolower="onScrollToLower" bindrefresherrefresh="onScrollRefresh" refresher-enabled="{{!isScrollTop}}" refresher-triggered="{{isTrigger}}" class="jobCenterActive" scroll-with-animation="true" scroll-into-view="{{siv}}" style="height:calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'all' || sexid != '-1' ? (navigatorBarHeight + 151) : navigatorBarHeight + (!isFilterPage ? 103 : 95)}}px);">
<view x:if="{{recordList != null && recordList.length > 0}}" class style="padding-top: 0;">
<view class="jcenter bgf br8">
<view class="listcontainer" style="border-top: 1px solid #f3f3f3;">
<view class="jobOne" hover-start-time="50" hover-stay-time="0" wx:for="{{recordList}}" data-item="{{item}}" data-id="{{item.id}}" data-index="{{index}}" bindtap="goDrawer" wx:key="index" hover-class="ahoverd" style="background-color:{{item.recruitment == '1' ? '#fff':'#f5f5f5'}};padding: 0;">
<view class="jobIn" style="border-bottom: 1px dashed #cccccc;padding: 12px 0;" hover-class="none">
<image style="width: 80px;height: 80px;position: absolute;right: 100px;" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" wx:if="{{item.state == 1 && item.recruitment == 2}}"></image>
<image style="width: 72px;height: 72px;position: absolute;right: 100px;" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/weishangxian.svg" wx:if="{{item.state == 0}}"></image>
<view class="display-flex">
<view class="lNum" style="width: 60px;">{{index < 9?'0'+(index+1):index+1 }}</view>
<view class="flex-1">
<view class="jobTitle2">{{item.jobName}}</view>
<view class="jobText" wx:if="{{item.salaryClassify != 7}}">{{item.salaryClassifyValue}}{{item.age}}</view>
<view class="jobText" wx:else>{{item.minMonthlyPay+'-'+item.maxMonthlyPay+'元/月'}}{{item.age}}</view>
</view>
<button wx:if="{{!isLogin}}" class="biggerSize v-center {{item.collected - 1 == 0 ? 'collectred':''}}" open-type="getPhoneNumber" style="width:20px;background-color:#fff;padding:0;margin:0;height:20px;margin-right:13px" catchgetphonenumber="getPhoneNumber" catchtap="emptyMethod" data-type="4" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang f20 mt4 biggerSize" style="color: #888"></icon>
</button>
<view class="mt4" wx:else>
<i class="iconfont icon-yishoucang mt4 biggerSize" wx:if="{{item.collected - 1 == 0}}" catchtap="collectPaste" data-collected="{{item.collected}}" data-jobid="{{item.id}}" style="margin-right:12px;color: #FF4400;font-size: 18px;"></i>
<i class="iconfont icon-shoucang biggerSize f20 mt4" wx:else catchtap="collectPaste" data-collected="{{item.collected}}" data-jobid="{{item.id}}" style="margin-right:13px;"></i>
</view>
</view>
<view class="display-flex">
<view style="width: 60px;margin-right: 12px;">
<view class="daili">代理</view>
</view>
<view class="flex-1">
<view class="jobText">{{!isLogin ? '登录查看服务费' : (agencyStatus == 1 ? (item.fuWuFei ? item.fuWuFei : '-') : '服务费仅代理可见')}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<block wx:if="{{(recordList == null || recordList.length == 0) && (storeJobListSearchForm.keys != null && storeJobListSearchForm.keys != '')}}">
<view class="tc p20 f12 c045">没有符合条件的职位</view>
</block>
<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:else>上滑加载更多</view>
</block>
<block wx:if="{{!isLogin}}">
<view style="padding:10px 12px;">
<text style="font-size: 14px;color: #999999;line-height: 20px;">未登录时只能使用部分功能,成为伯才代理即可使用更多功能。</text>
</view>
<view class="mt12 f14 tc" bindtap="goLogin" style="color: #576b95;padding-bottom: 80px;">登录稻田</view>
</block>
</block>
</view>
</scroll-view>
</view>
<view wx:if="{{(recordList == null || recordList.length == 0 ) && pageShow && !isWannaShow}}" class="tc">
<view class="t-icon t-icon-zanwu" style="width: 80px; height: 80px; margin: 50% auto 20px"></view>
<view class="tc f14 c045">没有符合条件的职位</view>
</view>
</block>
<view class="bottomBox" wx:if="{{isFilterPage}}" hover-class="none" hover-stop-propagation="false"> <view class="bottomBox" wx:if="{{isFilterPage}}" hover-class="none" hover-stop-propagation="false">
<button class="normalBtn backIndex" bindtap="backIndex">返回首页</button> <button class="normalBtn backIndex" bindtap="backIndex">返回首页</button>
</view> </view>
</view> </view>
<view class="drawerBox">
<view class="drawerMask {{drawerShow ? 'showDrawer' : ''}}" bindtap="hideDrawer"></view>
<view class="drawer {{drawerShow ? 'showDrawer' : ''}}"> <bottom-drawer show="{{recordShow}}" info="{{currentInfo}}" drawerType="recordShow" cancerShow="{{false}}" touchClose="{{true}}" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="494px"></bottom-drawer>
<view class="title fsa bb1">
<view class hover-class="none" style="width:100%" hover-stop-propagation="false">
<span class="f18 fw500">{{currentJobDrawer.jobName}}</span>
<view class="flex-1">
<view class="jobText f14">服务费:{{!isLogin ? '登录查看服务费' : (agencyStatus == 1 ? (currentJobDrawer.fuWuFei ? currentJobDrawer.fuWuFei : '-') : '服务费仅代理可见')}}</view>
</view>
<i class="iconfont icon-guanbi biggerSize f16 c3" style="line-height:34px" bindtap="hideDrawer"></i>
</view>
</view>
<view class="content">
<view class="jobOne" hover-start-time="50" hover-stay-time="0" hover-class="none" style="padding: 0;">
<view class="jobIn fsa" style="border-bottom: 1px dashed #eee;padding: 10px 16px;" hover-class="none">
<view class style="min-width:78px">
<i class="iconfont icon-yishoucang biggerSize f16" wx:if="{{currentJobDrawer.collected - 1 == 0}}" catchtap="collectPaste" data-collected="{{currentJobDrawer.collected}}" data-jobid="{{currentJobDrawer.id}}" style="margin-right:12px;color: #FF4400">
<p class="f14 ml4">已收藏</p>
</i>
<i class="iconfont icon-shoucang f16 biggerSize" wx:else catchtap="collectPaste" data-collected="{{currentJobDrawer.collected}}" data-jobid="{{currentJobDrawer.id}}" style="margin-right:13px;">
<p class="f14 ml4">收藏</p>
</i>
</view>
<view class="miniBtn mr16" bindtap="recordBill" hover-class="thover" hover-stop-propagation="false" style="background-color:{{(agencyStatus != 1 || !isLogin) || (currentJobDrawer.state == 1 && currentJobDrawer.recruitment == 2) ? '#ccc' : ''}}">报名</view>
<view class="fsa" bindtap="copyClose" hover-class="thover">
<view class="iconfont icon-fuzhi c9 f16 mr4"></view>
<view class="f14">复制</view>
</view>
</view>
</view>
<scroll-view scroll-y="true" class="annunciate" style="white-space:pre-line">
<view class="info" hover-class="none" hover-stop-propagation="false">
<rich-text class hover-class="none" hover-stop-propagation="false" nodes="{{currentJobDrawer.jobDesp1}}"></rich-text>
<view class="contactInfo" hover-class="none" data-info="{{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : (serviceInfo.userName + ' ' + (serviceInfo.workPhone || '-'))}}" hover-stop-propagation="false">{{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : ('详情咨询:' + serviceInfo.aliasName + (serviceInfo.workPhone || '-'))}}</view>
<view class="f14 tac mt16" wx:if="{{userInfo.agencyStatus == 1}}" hover-class="none" hover-stop-propagation="false">
以上联系人,可以
<span class="fw500" bindtap="changeContact" style="color:#576B95;text-decoration:underline">改成我的</span>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<view aria-role="dialog" aria-modal="true" class="fadeIn" catchtouchmove="modalMove" wx:if="{{iosDialog}}">
<view class="weui-mask"></view>
<view class="weui-dialog contact tobe" style="box-sizing:border-box;">
<i class="iconfont icon-guanbi guanbi c6 biggerSize" bindtap="closeDialog"></i>
<view class="weui-dialog__hd">
<view class="f20 bbd1 top" hover-class="none" hover-stop-propagation="false">
<view class="fw500" hover-class="none" hover-stop-propagation="false">成为伯才代理</view>
<view class="f16 c6" hover-class="none" hover-stop-propagation="false">请联系客户经理</view>
</view>
<view class="bottom" hover-class="none" hover-stop-propagation="false">
<view class hover-class="none" hover-stop-propagation="false">
<view class="fw500 f18" hover-class="none" hover-stop-propagation="false">客户经理</view>
<view class="c3 f14">
{{serviceInfo.userName }}
<i class="mr4"></i>
<p class>{{serviceInfo.tel || '0371-6611 3723'}}</p>
</view>
<view wx:if="{{isLoading}}" class style="position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)" hover-class="none" hover-stop-propagation="false">
<view aria-role="img" aria-label="加载中" style class="weui-primary-loading">
<view class="weui-primary-loading__dot"></view>
</view>
<view class hover-class="none" hover-stop-propagation="false">加载中...</view>
</view>
<image src="{{serviceInfo.qrCode}}" bindload="imageLoad" show-menu-by-longpress="{{true}}" style="width: 161px;height: 161px;"></image>
<view class="f14 c9 mt6">长按识别二维码</view>
</view>
</view>
</view>
</view>
</view>

@ -3,6 +3,8 @@ const app = getApp();
const commonUtil = require("../../../utils/commonUtil.js"); const commonUtil = require("../../../utils/commonUtil.js");
Page({ Page({
data: { data: {
currentInfo:{},
recordShow: false,
pullNum: 0, //下拉次数 pullNum: 0, //下拉次数
loadMore: "", loadMore: "",
loadContent: ["马不停蹄加载更多数据中...", "-- 已经到底了,加不了咯 --"], loadContent: ["马不停蹄加载更多数据中...", "-- 已经到底了,加不了咯 --"],
@ -345,6 +347,35 @@ Page({
url: "/pages/filterPage/index", url: "/pages/filterPage/index",
}); });
}, },
hidedrawershow (e) {
console.log(e);
this.setData({
[e.detail.type]: false
})
wx.showTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
},
hideDrawer () {
let that = this;
this.getTabBar().setData({
isShow: true,
});
that.setData({
drawerShow: false,
});
// this.getJobList();
// setTimeout(() => {
// wx.showTabBar({
// success(e) {},
// });
// }, 300);
},
recordBill (e) { recordBill (e) {
// if (!this.data.isLogin) { // if (!this.data.isLogin) {
// wx.navigateTo({ // wx.navigateTo({
@ -353,6 +384,21 @@ Page({
// return; // return;
// } // }
console.log(e.currentTarget.dataset.job); console.log(e.currentTarget.dataset.job);
this.setData({
recordShow: true,
currentInfo: e.currentTarget.dataset.job,
})
console.log(this.data.recordShow);
wx.hideTabBar({
animation: false,
success: (result) => {
},
fail: () => { },
complete: () => { }
});
return
console.log(e.currentTarget.dataset.job);
console.log(123); console.log(123);
let middleInfo = e.currentTarget.dataset.job; let middleInfo = e.currentTarget.dataset.job;
let info = JSON.stringify({ let info = JSON.stringify({

@ -1,4 +1,7 @@
{ {
"usingComponents": {
"bottom-drawer": "../../../components/bottom-drawer/index"
},
"navigationBarBackgroundColor":"#0dcc91", "navigationBarBackgroundColor":"#0dcc91",
"navigationBarTextStyle":"white", "navigationBarTextStyle":"white",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",

@ -95,3 +95,5 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<bottom-drawer show="{{recordShow}}" info="{{currentInfo}}" drawerType="recordShow" cancerShow="{{false}}" touchClose="{{true}}" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="494px"></bottom-drawer>

Loading…
Cancel
Save