职位管理

master
wangxia 2 years ago
parent ca1650191e
commit d32008fb7e

@ -0,0 +1,38 @@
// components/mp-switch/mp-switch.js
Component({
properties: {
trueText: {
type: String,
value: '开'
},
falseText: {
type: String,
value: '关'
},
// 传进来的对象
item: {
type: Object,
value: {}
},
width: {
type: Number,
value: 72
},
height: {
type: Number,
value: 32
}
},
methods: {
onChange() {
console.log(this.data.item);
this.setData({
checked: !this.data.item.checked
}, () => {
this.triggerEvent('change', {
value: this.data.item
})
})
}
}
})

@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

@ -0,0 +1,4 @@
<!--components/mp-switch/mp-switch.wxml-->
<view class="mp-switch" style="--mp-switch-width: {{width}}px;--mp-switch-height: {{height}}px;--mp-switch-text: '{{item.checked?trueText:falseText}}';">
<view class="wx-switch-input {{item.checked?'wx-switch-input-checked':''}}" bind:tap="onChange"></view>
</view>

@ -0,0 +1,62 @@
/* components/mp-switch/mp-switch.wxss */
.mp-switch .wx-switch-input {
-webkit-appearance: none;
appearance: none;
position: relative;
width: var(--mp-switch-width);
height: var(--mp-switch-height);
border: 1px solid #DFDFDF;
outline: 0;
border-radius: calc(var(--mp-switch-height) / 2);
box-sizing: border-box;
background-color: #e5e5e5;
transition: background-color 0.1s, border 0.1s;
}
.mp-switch .wx-switch-input::before {
content: var(--mp-switch-text);
position: absolute;
top: 0;
left: 0;
width: calc(var(--mp-switch-width) - 2px);
height: calc(var(--mp-switch-height) - 2px);
line-height: calc(var(--mp-switch-height) - 2px);
font-size: calc(var(--mp-switch-height) / 1.9);
padding-left: calc(var(--mp-switch-height));
padding-right: 6px;
box-sizing: border-box;
overflow: hidden;
color: #999;
text-align: center;
background-color: transparent;
}
.mp-switch .wx-switch-input::after {
content: " ";
position: absolute;
top: 0;
left: 0;
width: calc(var(--mp-switch-height) - 2px);
height: calc(var(--mp-switch-height) - 2px);
border-radius: 50%;
background-color: #FFFFFF;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.mp-switch .wx-switch-input.wx-switch-input-checked {
border-color: #07C160;
background-color: #07C160;
}
.mp-switch .wx-switch-input.wx-switch-input-checked::before {
color: #fff;
padding-right: calc(var(--mp-switch-height));
padding-left: 6px;
}
.mp-switch .wx-switch-input.wx-switch-input-checked::after {
-webkit-transform: translateX(calc(var(--mp-switch-width) - var(--mp-switch-height)));
transform: translateX(calc(var(--mp-switch-width) - var(--mp-switch-height)));
}

@ -1,309 +1,337 @@
// pages/mine/mine.js // pages/mine/mine.js
const app = getApp(); const app = getApp();
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
isopen: 1, // 账户余额是否显示 isopen: 1, // 账户余额是否显示
iosDialog: false, isMyPro: false,// 是否是小程序拥有者登录判断
iosDialogTobe: false, iosDialog: false,
isLoading: true, // 成为代理loading效果 iosDialogTobe: false,
isLogin: app.globalData.isLogin, isLoading: true, // 成为代理loading效果
// user:app.globalData.user, isLogin: app.globalData.isLogin,
serviceInfo: {}, // user:app.globalData.user,
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" }, serviceInfo: {},
motto: "Hello World", map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" },
userInfo: {}, motto: "Hello World",
hasUserInfo: false, userInfo: {},
canIUse: wx.canIUse("button.open-type.getUserInfo"), hasUserInfo: false,
canIUseGetUserProfile: false, canIUse: wx.canIUse("button.open-type.getUserInfo"),
// 如需尝试获取用户信息可改为false canIUseGetUserProfile: false,
underReviewNum: -1, // 如需尝试获取用户信息可改为false
underReviewList: [], underReviewNum: -1,
searchParam: {}, underReviewList: [],
recordBillType: "", searchParam: {},
configInfo:{}, recordBillType: "",
balance:'0.00' configInfo: {},
// agencyStatus: 0, // 是否是代理判断 balance: '0.00'
}, // agencyStatus: 0, // 是否是代理判断
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
setTimeout(() => {
console.log(app.globalData.loginUserInfo);
this.setData({
isLogin: app.globalData.isLogin,
hasUserInfo: app.globalData.hasUserInfo,
// agencyStatus: app.globalData.loginUserInfo.agencyStatus,
userInfo: app.globalData.loginUserInfo,
serviceInfo: app.globalData.serviceInfo,
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
});
}, 100);
}, /**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
setTimeout(() => {
console.log(app.globalData.loginUserInfo);
this.setData({
isLogin: app.globalData.isLogin,
hasUserInfo: app.globalData.hasUserInfo,
// agencyStatus: app.globalData.loginUserInfo.agencyStatus,
userInfo: app.globalData.loginUserInfo,
serviceInfo: app.globalData.serviceInfo,
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
});
}, 100);
this.getProInfo()
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
openEyes:function(){ openEyes: function () {
this.setData({ this.setData({
showMoney:false showMoney: false
}) })
}, },
closeEyes:function(){ closeEyes: function () {
this.setData({ this.setData({
showMoney:true showMoney: true
})
},
/**
* 获取当前小程序信息
*/
getProInfo () {
let that = this
wx.request({
url: app.globalData.ip + '/yishoudan/weixin/config/getConfig', // 分类列表获取接口
header: app.globalData.headers,
method: "GET",
success: function (res) {
console.log(res);
console.log(app.globalData.loginUserInfo);
if (res.data.status == 200) {
if (res.data.data.config.agencyId == app.globalData.loginUserInfo.agencyId) {
that.setData({
isMyPro: true
})
} else {
that.setData({
isMyPro: false
})
}
}
}
}) })
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
console.log("isshow"); console.log("isshow");
let that = this; let that = this;
wx.setStorageSync("comeFromPage", "me"); wx.setStorageSync("comeFromPage", "me");
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
selected: 2, selected: 2,
isShow:true isShow: true
}); });
} }
wx.setStorageSync('BILLFROM','mine') wx.setStorageSync('BILLFROM', 'mine')
// wx.showTabBar({ // wx.showTabBar({
// success(e) {}, // success(e) {},
// }); // });
// if (!app.globalData.isLogin) { // if (!app.globalData.isLogin) {
// wx.setStorageSync('comeFromPage', "me") // wx.setStorageSync('comeFromPage', "me")
// wx.redirectTo({ // wx.redirectTo({
// url: "/pages/login/index", // url: "/pages/login/index",
// }); // });
// } else { // } else {
// wx.switchTab({ // wx.switchTab({
// url: "/pages/mine/index", // url: "/pages/mine/index",
// }); // });
// } // }
// let serviceInfo = wx.getStorageSync('ServiceInfo') // let serviceInfo = wx.getStorageSync('ServiceInfo')
setTimeout(() => { setTimeout(() => {
if (app.globalData.isLogin) { if (app.globalData.isLogin) {
console.log(that.data.userInfo); console.log(that.data.userInfo);
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
hasUserInfo: app.globalData.hasUserInfo, hasUserInfo: app.globalData.hasUserInfo,
// agencyStatus: app.globalData.loginUserInfo.agencyStatus, // agencyStatus: app.globalData.loginUserInfo.agencyStatus,
userInfo: app.globalData.loginUserInfo, userInfo: app.globalData.loginUserInfo,
serviceInfo: app.globalData.serviceInfo, serviceInfo: app.globalData.serviceInfo,
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
}); });
that.getDataNum(); that.getDataNum();
} else { } else {
// 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回 // 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况 // 所以此处加入 callback 以防止这种情况
// app.userLoginCallback = (res) => { // app.userLoginCallback = (res) => {
setTimeout(() => { setTimeout(() => {
console.log(that.data.userInfo); console.log(that.data.userInfo);
that.setData({ that.setData({
isLogin: app.globalData.isLogin, isLogin: app.globalData.isLogin,
hasUserInfo: app.globalData.hasUserInfo, hasUserInfo: app.globalData.hasUserInfo,
userInfo: app.globalData.loginUserInfo, userInfo: app.globalData.loginUserInfo,
// agencyStatus: app.globalData.agencyStatus, // agencyStatus: app.globalData.agencyStatus,
serviceInfo: app.globalData.serviceInfo, serviceInfo: app.globalData.serviceInfo,
}); });
}, 100); }, 100);
// }; // };
that.getDataNum(); that.getDataNum();
} }
console.log(that.data.serviceInfo); console.log(that.data.serviceInfo);
// this.watch(); // this.watch();
}, 100); }, 100);
this.getConfigInfo(); this.getConfigInfo();
}, },
watch() { watch () {
// var obj = app.globalData; // var obj = app.globalData;
// this.setData({ // this.setData({
// isLogin: obj.isLogin, // isLogin: obj.isLogin,
// }); // });
}, },
onTabItemTap(item) { onTabItemTap (item) {
console.log(item.index); console.log(item.index);
console.log(item.pagePath); console.log(item.pagePath);
console.log(item.text); console.log(item.text);
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function () {
console.log(123); console.log(123);
this.setData({ this.setData({
iosDialog: false, iosDialog: false,
iosDialogTobe: false, iosDialogTobe: false,
}); });
wx.onAppRoute({ wx.onAppRoute({
success(item) { success (item) {
console.log(item); console.log(item);
}, },
fail: function (item) { fail: function (item) {
console.log(item); console.log(item);
}, },
}); });
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function () {
// var that = this; // var that = this;
// console.log(that.data.isLogin) // console.log(that.data.isLogin)
// if(!that.data.isLogin){ // if(!that.data.isLogin){
// wx.setStorageSync('comeFromPage', "me") // wx.setStorageSync('comeFromPage', "me")
// wx.redirectTo({ // wx.redirectTo({
// url: "/pages/login/index", // url: "/pages/login/index",
// }); // });
// } // }
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage1: function () {}, onShareAppMessage1: function () { },
showbalance(e) { showbalance (e) {
this.setData({ this.setData({
isopen: e.mark.open, isopen: e.mark.open,
}); });
}, },
showdialog() { showdialog () {
this.setData({ this.setData({
iosDialog: true, iosDialog: true,
}); });
}, },
showTobe() { showTobe () {
this.setData({ this.setData({
iosDialogTobe: true, iosDialogTobe: true,
}); });
}, },
closeDialog() { closeDialog () {
this.setData({ this.setData({
iosDialog: false, iosDialog: false,
iosDialogTobe: false, iosDialogTobe: false,
}); });
}, },
login() { login () {
// this.setData({ // this.setData({
// isLogin:true // isLogin:true
// }) // })
app.globalData.isLogin = true; app.globalData.isLogin = true;
wx.reLaunch({ wx.reLaunch({
url: "/pages/mine/index", url: "/pages/mine/index",
}); });
}, },
/** /**
* 获取商家配置信息 * 获取商家配置信息
* *
* *
*/ */
getConfigInfo() { getConfigInfo () {
let that = this; let that = this;
wx.request({ wx.request({
url: app.globalData.ip + "/yishoudan/agency/config/get", // 分类列表获取接口 url: app.globalData.ip + "/yishoudan/agency/config/get", // 分类列表获取接口
header: app.globalData.headers, header: app.globalData.headers,
method: "GET", method: "GET",
success: function (res) { success: function (res) {
console.log(res); console.log(res);
if (res.data.status == 200) { if (res.data.status == 200) {
that.setData({ that.setData({
configInfo: res.data.data.config, configInfo: res.data.data.config,
}); });
wx.setStorageSync('configInfo', res.data.data.config) wx.setStorageSync('configInfo', res.data.data.config)
console.log(that.data.configInfo); console.log(that.data.configInfo);
} }
}, },
}); });
}, },
makePhoneCall() { makePhoneCall () {
console.log(1); console.log(1);
var that = this; var that = this;
wx.makePhoneCall({ wx.makePhoneCall({
// number: that.data.jobDetail.assistantUserTel + "" // number: that.data.jobDetail.assistantUserTel + ""
phoneNumber: that.data.serviceInfo.workPhone || "0371-6611 3723", phoneNumber: that.data.serviceInfo.workPhone || "0371-6611 3723",
}); });
}, },
/** /**
* 前往工单页面 * 前往工单页面
* *
* *
*/ */
goList() { goList () {
if (!app.globalData.isLogin) { if (!app.globalData.isLogin) {
wx.navigateTo({ wx.navigateTo({
url: "/pages/login/index", url: "/pages/login/index",
}); });
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: "../myBill/index?status=0", url: "../myBill/index?status=0",
}); });
} }
}, },
/** /**
* 获取各个数量 * 获取各个数量
* *
* *
*/ */
getDataNum() { getDataNum () {
let that = this; let that = this;
wx.request({ wx.request({
url: app.globalData.ip + "/statistics/home", url: app.globalData.ip + "/statistics/home",
header: app.globalData.headers, header: app.globalData.headers,
success(res) { success (res) {
console.log(res); console.log(res);
if (res.data.status == 200) { if (res.data.status == 200) {
that.setData({ that.setData({
map: res.data.data, map: res.data.data,
}); });
} }
}, },
}); });
}, },
/** /**
* 二维码加载laoding隐藏 * 二维码加载laoding隐藏
* *
* *
*/ */
imageLoad() { imageLoad () {
this.setData({ this.setData({
isLoading: false, isLoading: false,
}); });
}, },
toTodayData() { toTodayData () {
if (!app.globalData.isLogin) { if (!app.globalData.isLogin) {
wx.navigateTo({ wx.navigateTo({
url: "/pages/login/index", url: "/pages/login/index",
}); });
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: "/pages/todayData/index", url: "/pages/todayData/index",
}); });
} }
}, },
modalMove() { modalMove () {
return false; return false;
}, },
}); });

@ -62,7 +62,7 @@
</view> </view>
</view> </view>
</navigator> </navigator>
<navigator class url="{{isLogin? '/pages/mine/listManagement/index': '/pages/login/index'}}" hover-class="none" hover-stop-propagation="false"> <navigator class url="{{isLogin? '/pages/mine/listManagement/index': '/pages/login/index'}}" hover-class="none" hover-stop-propagation="false" wx:if="{{isMyPro}}">
<view class="br_8" hover-class="none" style="background-color:#fff" hover-stop-propagation="false"> <view class="br_8" hover-class="none" style="background-color:#fff" hover-stop-propagation="false">
<view class="setting mt_10" hover-class="thover"> <view class="setting mt_10" hover-class="thover">
<view> <view>

@ -0,0 +1,370 @@
// pages/mine/listManagement/index.js
const app = getApp();
const commonUtil = require("../../../utils/commonUtil.js");
const dateUtil = require("../../../utils/dateUtil.js");
Page({
/**
* 页面的初始数据
*/
data: {
chaShowed: false,
inputVal: '',
hasMoreData: true, //下拉是否还有更多数据
navigatorBarHeight: 0, // 头部整体高度信息
editJobList: [
"复制内容",
"编辑", "删除"],
totalPage: 0,
currPage: 0,
isTrigger: 0,
pageShow: false,
storeJobListSearchForm: {
pageNum: 1,
pageSize: 40,
},
recordList: [],
currIndex: 0,
checked: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad (options) {
this.getJobList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady () {
},
changecheck (e) {
console.log(e);
let id = e.detail.value.id;
let ind = this.data.recordList.findIndex(item => item.id == id)
console.log(id);
console.log(ind);
this.data.recordList[ind].checked = !this.data.recordList[ind].checked
this.setData({
recordList: this.data.recordList
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow () {
},
// 下拉加载更多
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();
}
} else {
}
},
showDraw (e) {
let that = this;
let item = e.currentTarget.dataset.item
wx.showActionSheet({
itemList: that.data.editJobList,
success: function (res) {
if (res.tapIndex == 0) {
that.getJobDetail(item.id);
} else if (res.tapIndex == 1) {
// uni.navigateTo({
// url: "/root/home/jobForm?id=" + e.jobId,
// });
// that.delJob(item.id);
} else if (res.tapIndex == 2) {
that.delJob(item.id);
}
},
fail: function (res) { },
});
},
/**
* 获取职位详情
*/
getJobDetail (id) {
let that = this;
wx.request({
url: app.globalData.ip + "/assistant/custom/job/v2/getInfo/" + id,
method: "get",
header: app.globalData.headers,
success: function (res) {
console.log(res);
if (!res.data.data) {
wx.showToast({
title: "该职位无内容",
icon: "none",
});
} else {
console.log('right',res);
wx.setClipboardData({
data: res.data.data,
success (res) {
wx.showToast({
title: "内容已复制",
icon: "none",
duration: 1500,
});
},
fail (err) { },
});
}
}
})
},
/**
* 删除职位
*/
delJob (id) {
let that = this;
wx.showModal({
content: "是否确定删除该职位",
success: function (res) {
console.log(res);
if (res.confirm) {
wx.request({
url: app.globalData.ip + "/yishoudan/custom/job/del/" + id,
method: "get",
header: app.globalData.headers,
success: function (res) {
console.log(res);
if (res.data.status == 200) {
that.getJobList();
} else {
wx.showToast({
title: "删除失败",
icon: "none",
});
}
}
})
}
}
});
},
changeMenu (e) {
var that = this;
that.data.storeJobListSearchForm.pageNum = 1;
that.data.storeJobListSearchForm.recruitment = e.currentTarget.dataset.id;
this.setData({
currIndex: e.currentTarget.dataset.id,
recordList: [],
storeJobListSearchForm: this.data.storeJobListSearchForm,
});
this.getJobList();
},
clearInput: function () {
console.log('clearInput');
this.setData({
inputVal: "",
chaShowed: false,
hasMoreData: true,
});
// this.inputBlur();
this.data.recordList = [];
this.data.storeJobListSearchForm.pageNum = 1;
this.data.storeJobListSearchForm.keys = "";
this.getJobList();
},
searchKey: function (e) {
console.log(e);
if (this.data.inputVal.trim() == "") {
wx.showToast({
title: "请输入内容",
icon: "none",
});
} else {
this.setData({
isWannaShow: false,
recordList: [],
});
console.log(this.data.placeholderText);
this.data.storeJobListSearchForm.pageNum = 1;
this.data.storeJobListSearchForm.keys = this.data.inputVal || this.data.placeholderText;
this.setData({
inputVal: this.data.inputVal || this.data.placeholderText,
});
this.getJobList();
// this.setHistoryList();
}
},
inputTyping: function (e) {
console.log(e);
this.setData({
inputVal: e.detail.value,
});
console.log(this.data.inputVal == "");
if (this.data.inputVal == "") {
this.setData({
recordList: [],
});
this.data.storeJobListSearchForm.pageNum = 1;
this.data.storeJobListSearchForm.keys = "";
// this.getJobList();
}
},
getJobList (e) {
console.log(e);
var that = this;
// debugger
return new Promise(function (resolve, reject) {
console.log(that.data.inputVal);
that.data.storeJobListSearchForm.keys = that.data.inputVal == "" ? "" : that.data.inputVal;
// debugger;
wx.showLoading({
title: "加载中...",
});
console.log(that.data.storeJobListSearchForm);
wx.request({
url: app.globalData.ip + "/assistant/custom/job/v2/list",
method: "POST",
header: app.globalData.headers,
data: that.data.storeJobListSearchForm,
success: function (res) {
console.log("职位列表↓↓↓↓");
console.log(res);
that.setData({
totalPage: res.data.data.pageCount,
currPage: res.data.data.currentPage,
});
setTimeout(function () {
that.setData({
triggered: false,
});
}, 1000);
if (res.data.data.recordList == null || res.data.data.recordList.length == 0 || res.data.data.recordList.length < that.data.storeJobListSearchForm.pageSize) {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: false,
isTrigger: false,
});
} else {
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: true,
isTrigger: false,
});
}
that.data.recordList.forEach((item) => {
item.update = dateUtil.timeShowXXX(item.updateTime)
item.checked = false
})
that.setData({
recordList: that.data.recordList,
});
wx.hideLoading({
success: (res) => { },
});
that.setData({
pageShow: true,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
resolve();
// that.getTag();
that.data.recordList.forEach((item, index) => {
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
} else {
item["fuWuFei"] = "";
}
});
that.setData({
recordList: that.data.recordList,
});
setTimeout(() => {
var query = wx.createSelectorQuery();
query.select(".navigator").boundingClientRect();
query.exec(function (res) {
//res就是 所有标签为v1的元素的信息 的数组
console.log(res);
//取高度
// console.log(res[0].height);
that.setData({
navigatorBarHeight: res[0].height,
});
console.log(that.data.navigatorBarHeight);
});
}, 1000);
},
});
});
},
onScrollRefresh: function () {
var that = this;
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
recordList: [],
});
that.getJobList();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage () {
}
})

@ -0,0 +1,7 @@
{
"usingComponents": {
"mp-switch": "../../../components/mp-switch/mp-switch"
},
"backgroundColor": "#FFFFFF",
"navigationBarTitleText": "一才工作"
}

@ -0,0 +1,97 @@
<view class="navigator" hover-class="none" hover-stop-propagation="false">
<view class="p10 " style="background-color: #fff" hover-class="none" hover-stop-propagation="false">
<view class="weui-search-bar__box flex-1 fsa" style="background-color: #f5f5f5;border-radius: 17px;padding-left:16px">
<i class="iconfont icon-sousuo"></i>
<input type="text" class="weui-search-bar__input flex-1 c3 ml8" style="" placeholder-style="color:#999;" value="{{inputVal}}" placeholder="搜索职位名称" bindinput="inputTyping" bindconfirm="searchKey" auto-focus confirm-type="search" />
<view class="iconfont icon-qingchu biggerSize c9 mr12" wx:if="{{inputVal}}" catchtap="clearInput"></view>
<view class="search" catchtap="searchKey">搜索</view>
</view>
</view>
<view class="topMenu">
<view class="onMune {{currIndex == '0' ? 'active' : ''}}" data-id="0" bindtap="changeMenu">
<view class="pr dib">
全部
<view class="menuBorder"></view>
</view>
</view>
<view class="onMune {{currIndex == '1' ? 'active' : ''}}" data-id="1" bindtap="changeMenu">
<view class="pr dib">
在招中
<view class="menuBorder"></view>
</view>
</view>
<view class="onMune {{currIndex == '2' ? 'active' : ''}}" data-id="2" bindtap="changeMenu">
<view class="pr dib">
已停招
<view class="menuBorder"></view>
</view>
</view>
</view>
</view>
<view class="p10" hover-class="none" hover-stop-propagation="false">
<view wx:if="{{recordList != null && recordList.length > 0}}" class="standardList" 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" style='padding-bottom:24px' scroll-with-animation="true" scroll-into-view="{{siv}}" style="height:calc(100vh - {{selectBrandList.length > 0 || selectJobList.length > 0 || activez != 'all' || sexid != '-1' ? (navigatorBarHeight + 30) : navigatorBarHeight + (!isFilterPage ? 103 : 95)}}px);">
<view x:if="{{recordList != null && recordList.length > 0}}" class style="padding-top: 0;">
<view class="jcenter ">
<view class="listcontainer" style="">
<view class=" mb10 bgf br4" hover-start-time="50" hover-stay-time="0" wx:for="{{recordList}}" data-id="{{item.id}}" bindtap="goDetail" wx:key="index" hover-class="{{item.recruitment == '1' ? 'ahover':''}}" style="background-color:#fff;border-bottom: {{item.recruitment == '1' ? '':'1px solid #ddd'}};">
<view class="p10 pt16" hover-class="none">
<image class="markImg" style="width: 80px;height: 80px;position: absolute;right: 100px;" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" wx:if="{{item.recruitment == 2}}"></image>
<view class="display-flex">
<view class="flex-1 vsb">
<view class="display-flex">
<view class="storeName" wx:if="{{item.jobName != null && item.jobName != ''}}">{{item.jobName}}</view>
<view class="storeName" wx:else>{{item.aliasName}}</view>
<view class="hourPay" wx:if='{{item.salaryClassify != 7}}'>{{item.salaryClassifyValue}}</view>
<view class="hourPay " wx:else>{{item.monthlyPay}}</view>
</view>
<view class="v-center mt12 mb12">
<view class="f14s c045 flex-1 display-flex">
<view class="overflowOmit" hover-class="none" hover-stop-propagation="false" style="max-width:220px">
{{item.district == "" ?'':item.district + ' | ' }}
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</block>
<block wx:else>{{item.age}}</block>
</view>
</view>
</view>
<view class="display-flex" style="align-items:flex-end">
<view scroll-x="{{true}}" class=" {{item.isTagShow==true ?'isTagShow':''}}">
<!-- <view class="t-icon t-icon-ziying1 " wx:if="{{item.signType == 1}}" style="background-repeat:no-repeat"></view> -->
<view class="tagsLi" wx:for="{{item.jobSpecialLabelNameArray}}" wx:for-item="item1" wx:key="index">{{item1}}</view>
<view class="tagsLi" wx:if="{{item.jobSpecialLabelNameArray.length <= 0}}">暂无特色</view>
</view>
<view class="cccc f12" hover-class="none" hover-stop-propagation="false">
{{item.update}}
</view>
</view>
</view>
</view>
</view>
<view class="pb8 pt8 pl10 pr10 bt1 display-flex" style=''>
<mp-switch bindchange="changecheck" trueText="开招" height='24' width='60' falseText="停招" item='{{item}}'></mp-switch>
<view class="tac" bindtap='showDraw' data-item='{{item}}' style="width:39px;height:24px;border-radius:12px;background-color:#f5f5f5" hover-class="none" hover-stop-propagation="false">
<view class="iconfont icon-gengduo2 c9" style="transform: rotate(90deg)">
</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>
</view>
</scroll-view>
</view>
<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="tc f14 c045">没有符合条件的职位</view>
</view>
</view>

@ -0,0 +1,123 @@
@import "../../index/index.wxss";
.p1216 {
padding: 12px 16px;
}
page {
display: flex;
flex-direction: column;
}
.container {
flex: 1;
}
.historyBox {
display: flex;
flex-wrap: wrap;
}
.searchTag {
display: flex;
padding: 6px 12px;
margin-bottom: 10px;
/* float: left; */
background-color: #fff;
border-radius: 2px;
font-size: 14px;
color: #333333;
margin-left: 10px;
}
.weui-search-bar.fff {
background-color: #fff;
}
.weui-search-bar.be {
background-color: #ff4400;
}
.weui-search-bar .icon-qingchu {
position: absolute !important;
z-index: 9999999;
}
.weui-search-bar .icon-qingchu::after {
z-index: 9999;
}
.agencyRoleContainer {
padding: 10px;
}
.sub {
display: flex;
justify-content: space-between;
align-items: center;
height: 81px;
padding: 0 10px;
font-size: 18px;
background-color: #fff;
border-radius: 8px;
}
.sub-hover {
background-color: #e5e5e5;
}
.sub:not(:first-child) {
margin-top: 10px;
}
.weui-search-bar__box .weui-search-bar__input {
width: unset;
}
.wannaList {
display: flex;
flex-wrap: wrap;
}
.wannaList .subset {
position: relative;
padding: 5px 12px;
margin-right: 10px;
margin-top: 10px;
background-color: #fff;
border-radius: 16px;
}
.wannaList .subset .clearIcon {
position: absolute;
top: -6px;
right: -4px;
color: #aaa;
}
.wannaSearch {
position: relative;
/* margin-top: 32px; */
}
.wannaSearch .laji {
position: absolute;
right: 16px;
top: 0;
color: #999;
}
.markImg {
z-index: 9;
}
.bottomBox {
background-color: #fff;
border-top: 1px solid #eeeeee;
overflow: hidden;
position: absolute;
bottom: 0;
width: 100%;
}
.backIndex {
width: 260px !important;
height: 44px;
opacity: 1;
display: flex;
align-items: center;
justify-content: center;
background: var(--color-ysd);
border-radius: 25px;
font-size: 18px;
font-weight: 601;
color: #ffffff;
padding: 0;
line-height: 44px;
margin-bottom: 40px;
margin-top: 20rpx;
}
.weui-switch-cp__input:checked + .weui-switch-cp__box::after,
.weui-switch-cp__input[aria-checked="true"] + .weui-switch-cp__box::after,
.weui-switch:checked::after {
transform: translateX(38px) !important;
}
Loading…
Cancel
Save