diff --git a/components/mp-switch/mp-switch.js b/components/mp-switch/mp-switch.js
new file mode 100644
index 0000000..eb95cfb
--- /dev/null
+++ b/components/mp-switch/mp-switch.js
@@ -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
+ })
+ })
+ }
+ }
+})
\ No newline at end of file
diff --git a/components/mp-switch/mp-switch.json b/components/mp-switch/mp-switch.json
new file mode 100644
index 0000000..7e37c03
--- /dev/null
+++ b/components/mp-switch/mp-switch.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/components/mp-switch/mp-switch.wxml b/components/mp-switch/mp-switch.wxml
new file mode 100644
index 0000000..5ccdc4d
--- /dev/null
+++ b/components/mp-switch/mp-switch.wxml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/components/mp-switch/mp-switch.wxss b/components/mp-switch/mp-switch.wxss
new file mode 100644
index 0000000..82d7bc2
--- /dev/null
+++ b/components/mp-switch/mp-switch.wxss
@@ -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)));
+}
\ No newline at end of file
diff --git a/pages/mine/index.js b/pages/mine/index.js
index a92fe18..6f7b00d 100644
--- a/pages/mine/index.js
+++ b/pages/mine/index.js
@@ -1,309 +1,337 @@
// pages/mine/mine.js
const app = getApp();
Page({
- /**
- * 页面的初始数据
- */
- data: {
- isopen: 1, // 账户余额是否显示
- iosDialog: false,
- iosDialogTobe: false,
- isLoading: true, // 成为代理loading效果
- isLogin: app.globalData.isLogin,
- // user:app.globalData.user,
- serviceInfo: {},
- 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" },
- motto: "Hello World",
- userInfo: {},
- hasUserInfo: false,
- canIUse: wx.canIUse("button.open-type.getUserInfo"),
- canIUseGetUserProfile: false,
- // 如需尝试获取用户信息可改为false
- underReviewNum: -1,
- underReviewList: [],
- searchParam: {},
- recordBillType: "",
- configInfo:{},
- 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);
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isopen: 1, // 账户余额是否显示
+ isMyPro: false,// 是否是小程序拥有者登录判断
+ iosDialog: false,
+ iosDialogTobe: false,
+ isLoading: true, // 成为代理loading效果
+ isLogin: app.globalData.isLogin,
+ // user:app.globalData.user,
+ serviceInfo: {},
+ 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" },
+ motto: "Hello World",
+ userInfo: {},
+ hasUserInfo: false,
+ canIUse: wx.canIUse("button.open-type.getUserInfo"),
+ canIUseGetUserProfile: false,
+ // 如需尝试获取用户信息可改为false
+ underReviewNum: -1,
+ underReviewList: [],
+ searchParam: {},
+ recordBillType: "",
+ configInfo: {},
+ 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);
+ this.getProInfo()
+ },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {},
- openEyes:function(){
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () { },
+ openEyes: function () {
this.setData({
- showMoney:false
+ showMoney: false
})
},
- closeEyes:function(){
+ closeEyes: function () {
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 () {
- console.log("isshow");
- let that = this;
- wx.setStorageSync("comeFromPage", "me");
- if (typeof this.getTabBar === "function" && this.getTabBar()) {
- this.getTabBar().setData({
+ onShow: function () {
+ console.log("isshow");
+ let that = this;
+ wx.setStorageSync("comeFromPage", "me");
+ if (typeof this.getTabBar === "function" && this.getTabBar()) {
+ this.getTabBar().setData({
selected: 2,
- isShow:true
- });
- }
- wx.setStorageSync('BILLFROM','mine')
+ isShow: true
+ });
+ }
+ wx.setStorageSync('BILLFROM', 'mine')
// wx.showTabBar({
// success(e) {},
// });
- // if (!app.globalData.isLogin) {
- // wx.setStorageSync('comeFromPage', "me")
- // wx.redirectTo({
- // url: "/pages/login/index",
- // });
- // } else {
- // wx.switchTab({
- // url: "/pages/mine/index",
- // });
- // }
- // let serviceInfo = wx.getStorageSync('ServiceInfo')
- setTimeout(() => {
- if (app.globalData.isLogin) {
- console.log(that.data.userInfo);
- that.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,
- });
- that.getDataNum();
- } else {
- // 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
- // 所以此处加入 callback 以防止这种情况
- // app.userLoginCallback = (res) => {
- setTimeout(() => {
- console.log(that.data.userInfo);
- that.setData({
- isLogin: app.globalData.isLogin,
- hasUserInfo: app.globalData.hasUserInfo,
- userInfo: app.globalData.loginUserInfo,
- // agencyStatus: app.globalData.agencyStatus,
- serviceInfo: app.globalData.serviceInfo,
- });
- }, 100);
- // };
- that.getDataNum();
- }
- console.log(that.data.serviceInfo);
- // this.watch();
- }, 100);
- this.getConfigInfo();
+ // if (!app.globalData.isLogin) {
+ // wx.setStorageSync('comeFromPage', "me")
+ // wx.redirectTo({
+ // url: "/pages/login/index",
+ // });
+ // } else {
+ // wx.switchTab({
+ // url: "/pages/mine/index",
+ // });
+ // }
+ // let serviceInfo = wx.getStorageSync('ServiceInfo')
+ setTimeout(() => {
+ if (app.globalData.isLogin) {
+ console.log(that.data.userInfo);
+ that.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,
+ });
+ that.getDataNum();
+ } else {
+ // 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
+ // 所以此处加入 callback 以防止这种情况
+ // app.userLoginCallback = (res) => {
+ setTimeout(() => {
+ console.log(that.data.userInfo);
+ that.setData({
+ isLogin: app.globalData.isLogin,
+ hasUserInfo: app.globalData.hasUserInfo,
+ userInfo: app.globalData.loginUserInfo,
+ // agencyStatus: app.globalData.agencyStatus,
+ serviceInfo: app.globalData.serviceInfo,
+ });
+ }, 100);
+ // };
+ that.getDataNum();
+ }
+ console.log(that.data.serviceInfo);
+ // this.watch();
+ }, 100);
+ this.getConfigInfo();
- },
- watch() {
- // var obj = app.globalData;
- // this.setData({
- // isLogin: obj.isLogin,
- // });
- },
- onTabItemTap(item) {
- console.log(item.index);
- console.log(item.pagePath);
- console.log(item.text);
- },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
- console.log(123);
+ },
+ watch () {
+ // var obj = app.globalData;
+ // this.setData({
+ // isLogin: obj.isLogin,
+ // });
+ },
+ onTabItemTap (item) {
+ console.log(item.index);
+ console.log(item.pagePath);
+ console.log(item.text);
+ },
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+ console.log(123);
- this.setData({
- iosDialog: false,
- iosDialogTobe: false,
- });
- wx.onAppRoute({
- success(item) {
- console.log(item);
- },
- fail: function (item) {
- console.log(item);
- },
- });
- },
+ this.setData({
+ iosDialog: false,
+ iosDialogTobe: false,
+ });
+ wx.onAppRoute({
+ success (item) {
+ console.log(item);
+ },
+ fail: function (item) {
+ console.log(item);
+ },
+ });
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
- // var that = this;
- // console.log(that.data.isLogin)
- // if(!that.data.isLogin){
- // wx.setStorageSync('comeFromPage', "me")
- // wx.redirectTo({
- // url: "/pages/login/index",
- // });
- // }
- },
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+ // var that = this;
+ // console.log(that.data.isLogin)
+ // if(!that.data.isLogin){
+ // wx.setStorageSync('comeFromPage', "me")
+ // wx.redirectTo({
+ // url: "/pages/login/index",
+ // });
+ // }
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {},
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () { },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {},
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () { },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage1: function () {},
- showbalance(e) {
- this.setData({
- isopen: e.mark.open,
- });
- },
- showdialog() {
- this.setData({
- iosDialog: true,
- });
- },
- showTobe() {
- this.setData({
- iosDialogTobe: true,
- });
- },
- closeDialog() {
- this.setData({
- iosDialog: false,
- iosDialogTobe: false,
- });
- },
- login() {
- // this.setData({
- // isLogin:true
- // })
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage1: function () { },
+ showbalance (e) {
+ this.setData({
+ isopen: e.mark.open,
+ });
+ },
+ showdialog () {
+ this.setData({
+ iosDialog: true,
+ });
+ },
+ showTobe () {
+ this.setData({
+ iosDialogTobe: true,
+ });
+ },
+ closeDialog () {
+ this.setData({
+ iosDialog: false,
+ iosDialogTobe: false,
+ });
+ },
+ login () {
+ // this.setData({
+ // isLogin:true
+ // })
- app.globalData.isLogin = true;
- wx.reLaunch({
- url: "/pages/mine/index",
- });
- },
- /**
- * 获取商家配置信息
- *
- *
- */
- getConfigInfo() {
- let that = this;
- wx.request({
- url: app.globalData.ip + "/yishoudan/agency/config/get", // 分类列表获取接口
- header: app.globalData.headers,
- method: "GET",
- success: function (res) {
- console.log(res);
- if (res.data.status == 200) {
- that.setData({
- configInfo: res.data.data.config,
- });
+ app.globalData.isLogin = true;
+ wx.reLaunch({
+ url: "/pages/mine/index",
+ });
+ },
+ /**
+ * 获取商家配置信息
+ *
+ *
+ */
+ getConfigInfo () {
+ let that = this;
+ wx.request({
+ url: app.globalData.ip + "/yishoudan/agency/config/get", // 分类列表获取接口
+ header: app.globalData.headers,
+ method: "GET",
+ success: function (res) {
+ console.log(res);
+ if (res.data.status == 200) {
+ that.setData({
+ configInfo: res.data.data.config,
+ });
wx.setStorageSync('configInfo', res.data.data.config)
- console.log(that.data.configInfo);
- }
- },
- });
- },
- makePhoneCall() {
- console.log(1);
- var that = this;
- wx.makePhoneCall({
- // number: that.data.jobDetail.assistantUserTel + ""
- phoneNumber: that.data.serviceInfo.workPhone || "0371-6611 3723",
- });
- },
- /**
- * 前往工单页面
- *
- *
- */
- goList() {
- if (!app.globalData.isLogin) {
- wx.navigateTo({
- url: "/pages/login/index",
- });
- } else {
- wx.navigateTo({
- url: "../myBill/index?status=0",
- });
- }
- },
- /**
- * 获取各个数量
- *
- *
- */
- getDataNum() {
- let that = this;
- wx.request({
- url: app.globalData.ip + "/statistics/home",
- header: app.globalData.headers,
- success(res) {
- console.log(res);
- if (res.data.status == 200) {
- that.setData({
- map: res.data.data,
- });
- }
- },
- });
- },
- /**
- * 二维码加载laoding隐藏
- *
- *
- */
- imageLoad() {
- this.setData({
- isLoading: false,
- });
- },
- toTodayData() {
- if (!app.globalData.isLogin) {
- wx.navigateTo({
- url: "/pages/login/index",
- });
- } else {
- wx.navigateTo({
- url: "/pages/todayData/index",
- });
- }
- },
- modalMove() {
- return false;
- },
+ console.log(that.data.configInfo);
+ }
+ },
+ });
+ },
+ makePhoneCall () {
+ console.log(1);
+ var that = this;
+ wx.makePhoneCall({
+ // number: that.data.jobDetail.assistantUserTel + ""
+ phoneNumber: that.data.serviceInfo.workPhone || "0371-6611 3723",
+ });
+ },
+ /**
+ * 前往工单页面
+ *
+ *
+ */
+ goList () {
+ if (!app.globalData.isLogin) {
+ wx.navigateTo({
+ url: "/pages/login/index",
+ });
+ } else {
+ wx.navigateTo({
+ url: "../myBill/index?status=0",
+ });
+ }
+ },
+ /**
+ * 获取各个数量
+ *
+ *
+ */
+ getDataNum () {
+ let that = this;
+ wx.request({
+ url: app.globalData.ip + "/statistics/home",
+ header: app.globalData.headers,
+ success (res) {
+ console.log(res);
+ if (res.data.status == 200) {
+ that.setData({
+ map: res.data.data,
+ });
+ }
+ },
+ });
+ },
+ /**
+ * 二维码加载laoding隐藏
+ *
+ *
+ */
+ imageLoad () {
+ this.setData({
+ isLoading: false,
+ });
+ },
+ toTodayData () {
+ if (!app.globalData.isLogin) {
+ wx.navigateTo({
+ url: "/pages/login/index",
+ });
+ } else {
+ wx.navigateTo({
+ url: "/pages/todayData/index",
+ });
+ }
+ },
+ modalMove () {
+ return false;
+ },
});
diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml
index b932a56..b1b2e85 100644
--- a/pages/mine/index.wxml
+++ b/pages/mine/index.wxml
@@ -62,7 +62,7 @@
-
+
diff --git a/pages/mine/listManagement/index.js b/pages/mine/listManagement/index.js
new file mode 100644
index 0000000..66bfe0e
--- /dev/null
+++ b/pages/mine/listManagement/index.js
@@ -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 () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/mine/listManagement/index.json b/pages/mine/listManagement/index.json
new file mode 100644
index 0000000..fe2eff2
--- /dev/null
+++ b/pages/mine/listManagement/index.json
@@ -0,0 +1,7 @@
+{
+ "usingComponents": {
+ "mp-switch": "../../../components/mp-switch/mp-switch"
+ },
+ "backgroundColor": "#FFFFFF",
+ "navigationBarTitleText": "一才工作"
+}
\ No newline at end of file
diff --git a/pages/mine/listManagement/index.wxml b/pages/mine/listManagement/index.wxml
new file mode 100644
index 0000000..29183a9
--- /dev/null
+++ b/pages/mine/listManagement/index.wxml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.jobName}}
+ {{item.aliasName}}
+ {{item.salaryClassifyValue}}
+ {{item.monthlyPay}}
+
+
+
+
+ {{item.district == "" ?'':item.district + ' | ' }}
+ {{item.distanceKm}}
+ {{item.age}}
+
+
+
+
+
+
+ {{item1}}
+ 暂无特色
+
+
+ {{item.update}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 没有符合条件的职位
+
+
+
+ 已经到底啦~
+ 上滑加载更多
+
+
+
+
+
+
+
+
+ 没有符合条件的职位
+
+
\ No newline at end of file
diff --git a/pages/mine/listManagement/index.wxss b/pages/mine/listManagement/index.wxss
new file mode 100644
index 0000000..8ea3a8d
--- /dev/null
+++ b/pages/mine/listManagement/index.wxss
@@ -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;
+}