diff --git a/app.json b/app.json index 40ed111..dc3cd43 100644 --- a/app.json +++ b/app.json @@ -36,6 +36,8 @@ "pages/mine/opinion/index", "pages/mine/opinionList/index", "pages/mine/listManagement/index", + "pages/mine/vitaeList/index", + "pages/mine/vitae/index", "pages/mine/wxMoney/index", "pages/message/index", @@ -46,7 +48,7 @@ "pages/type/type/index", "pages/company/company/index" - + ], "permission": { "scope.userLocation": { diff --git a/app.wxss b/app.wxss index 4a903a8..dbeacfe 100644 --- a/app.wxss +++ b/app.wxss @@ -814,6 +814,11 @@ button::after { display: flex; flex-flow: column; } +.fss { + display: flex; + align-items: center; + justify-content: start; +} .fsa { display: flex; align-items: center; diff --git a/assets/images/jianli.png b/assets/images/jianli.png new file mode 100644 index 0000000..8fec588 Binary files /dev/null and b/assets/images/jianli.png differ diff --git a/assets/images/quicklyRecord.png b/assets/images/quicklyRecord.png new file mode 100644 index 0000000..7bd4c63 Binary files /dev/null and b/assets/images/quicklyRecord.png differ diff --git a/components/bottom-drawer/index.js b/components/bottom-drawer/index.js new file mode 100644 index 0000000..4be5856 --- /dev/null +++ b/components/bottom-drawer/index.js @@ -0,0 +1,168 @@ +Component({ + data: { + sex: 1, + morePeople: false, + recordList: [ + { + id: 0, + name: '李红霞', + tel: 13488887125, + gender: '女', + checked: false + }, + { + id: 1, + name: '张卫国', + tel: 13488887125, + gender: '男', + checked: false + }, + { + id: 2, + name: '王丽丽', + tel: 13488887125, + gender: '男', + checked: false + }, + { + id: 3, + name: '王丽丽', + tel: 13488887125, + gender: '男', + checked: false + }, + { + id: 4, + name: '王丽丽', + tel: 13488887125, + gender: '男', + checked: false + }, + ] + }, + properties: { + // 抽屉高度 + height: { + type: String, + value: "", + }, + drawerType: { + type: String, + value: "", + }, + //抽屉显示隐藏 + show: { + type: Boolean, + value: false + }, + titleText: { + type: String, + value: '' + }, + // 是否需要显示tabbar + hideTabbar: { + type: Boolean, + value: false + }, + cancerShow: { + type: Boolean, + value: true + }, + // + touchClose: { + type: Boolean, + value: true + }, + + }, + methods: { + /** + * 阻止滑动穿透 + * + * + */ + modalMove () { + // console.log(this.data.color); + return false; + }, + // 触摸开始事件 + handletouchtart: function (event) { + this.data.lastX = event.touches[0].pageX; + this.data.lastY = event.touches[0].pageY; + }, + filterTouchStart (event) { + this.handletouchtart(event); + }, + filterTouchMove (event) { + let tx = this.handletouchmove(event); + if (this.data.touchClose) { + if (tx.ty > 100) { + this.hideLeft(); + + } + } else { + return false + } + }, + /** + * 页面滑动事件监听 + * + * + */ + handletouchmove: function (event) { + let that = this; + var currentX = event.touches[0].pageX; + var currentY = event.touches[0].pageY; + var tx = currentX - this.data.lastX; + var ty = currentY - this.data.lastY; + var text = ""; + //左右方向滑动 + if (Math.abs(tx) > Math.abs(ty)) { + return { + tx, + }; + } + //上下方向滑动 + else { + return { + ty, + }; + } + }, + hideLeft () { + // this.data.show = false + // this.setData({ + // show: false + // }) + var eventDetail = { + type: this.data.drawerType + }; + this.triggerEvent("hidedrawer", eventDetail); + + if (this.data.hideTabbar) { + setTimeout(() => { + this.getTabBar().setData({ + isShow: true, + }); + }, 200); + } + + }, + changeSex (e) { + this.setData({ + sex: e.currentTarget.dataset.type + }) + }, + addPersion () { + wx.navigateTo({ + url: '/pages/mine/vitaeList/index?type=add' + }) + }, + handlerMore () { + this.setData({ + morePeople: !this.data.morePeople + }) + } + + } +}) \ No newline at end of file diff --git a/components/bottom-drawer/index.json b/components/bottom-drawer/index.json new file mode 100644 index 0000000..32640e0 --- /dev/null +++ b/components/bottom-drawer/index.json @@ -0,0 +1,3 @@ +{ + "component": true +} \ No newline at end of file diff --git a/components/bottom-drawer/index.wxml b/components/bottom-drawer/index.wxml new file mode 100644 index 0000000..a7cb5f0 --- /dev/null +++ b/components/bottom-drawer/index.wxml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + {{item.name + (item.gender ? ('/' + item.gender) :'') }} + {{item.tel}} + + + + + + + + + + + + + + + + 先生 + 女士 + + + + + + + + + + + + + + + + + + + + + + 多人报名切换 + + + + + + + + + diff --git a/components/bottom-drawer/index.wxss b/components/bottom-drawer/index.wxss new file mode 100644 index 0000000..63154ba --- /dev/null +++ b/components/bottom-drawer/index.wxss @@ -0,0 +1,68 @@ +@import "../../app.wxss"; +.leftBox { + position: fixed; + left: 0; + top: 0; + width: 0; + height: 0; + /* width: 100vw; + height: 100vh; */ + z-index: 999; +} +.leftBox .mask { + position: fixed; + width: 100vw; + height: 100vh; + z-index: 99; + background-color: rgba(0, 0, 0, 0.5); +} + +.leftBox .hideBox { + position: fixed; + left: 0; + bottom: -100vh; + width: 100vw; + /* height: 100vh; */ + overflow: hidden; + z-index: 99; + /* background-color: #fff; */ + border-radius: 16px 16px 0px 0px; + transition: bottom linear 0.2s; +} + +.leftBox .leftShow { + box-sizing: border-box; + background: url("https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/quicklyRecord.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + background-position: center; + /* background: #8bbd85; */ + padding: 68px 10px 0; + bottom: 0px !important; +} + +.container { + height: calc(100%); + border-radius: 16px 16px 0px 0px; + padding: 12px 24px 0; + + /* padding-bottom: constant(safe-area-inset-top); + padding-bottom: env(safe-area-inset-top); + padding-bottom: 32px; */ +} +.sub { + padding: 6px 15px; + font-size: 14px; + border-radius: 16px; + color: #999; + background-color: #eeeeee55; +} +.sub.subActive { + color: #0dcc91; + background-color: #ebfff9; + justify-content: space-between; +} +.sticky{ + position: sticky; + bottom: 0; +} \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 72d66fa..9c02904 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -33,7 +33,7 @@ Page({ recordList: [], jobSpecialLabelNames: [], storeJobListSearchForm: { - recruitment:1, + recruitment: 1, pageNum: 1, pageSize: 20, classify: 1, @@ -118,7 +118,7 @@ Page({ halfHide: true, // 智能匹配显示一半控制 topNum: 0, scrollTo: "", // 列表滚动的控制 - + bannerList: [], filterData: { @@ -256,6 +256,7 @@ Page({ rangeValues: [16, 60], // 年龄筛选区间 maxAge: 60, // 年龄区间最大取值 minAge: 16, + recordShow: false }, // onPullDownRefresh:function(){ // this.getJobList(); @@ -399,7 +400,7 @@ Page({ } this.hideLeft(); }, - getType(){ + getType () { var that = this; wx.request({ url: app.globalData.ip + "/yishoudan/labels/type/app/95", @@ -412,7 +413,7 @@ Page({ that.setData({ [classifyList]: res.data.data.labels, }); - + // that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id // that.setData({ @@ -621,7 +622,7 @@ Page({ var that = this; wx.request({ url: app.globalData.ip + "/yishoudan/labels/type/app/90", - + header: app.globalData.header, method: "GET", success: function (res) { @@ -683,7 +684,7 @@ Page({ }); } }, - clear(){ + clear () { // wx.clearStorage() }, getBrandNameAllList: function () { @@ -717,7 +718,7 @@ Page({ } }, }); - }, + }, selectBrand: function (e) { var that = this; @@ -1951,14 +1952,14 @@ Page({ console.log(e); var that = this; if (this.data.isLogin) { - wx.navigateTo({ - url: "../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode, - }); - } else { - wx.navigateTo({ - url: "../login/index", - }); - } + wx.navigateTo({ + url: "../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode, + }); + } else { + wx.navigateTo({ + url: "../login/index", + }); + } }, /** @@ -2130,19 +2131,19 @@ Page({ app.globalData.openId = res.data.data.openId; let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null); var collected = e.currentTarget.dataset.collected; - + console.log(wx.getStorage("loginUserTokenInfo")) console.log(collected) - promise.then((res) => { - that.setData({ - isLogin: app.globalData.isLogin, - }); - // debugger - setTimeout(()=>{ - that.doCollected(collected, e.currentTarget.dataset.jobid); - },1000) - // that.collectedStoreJobList(); + promise.then((res) => { + that.setData({ + isLogin: app.globalData.isLogin, }); + // debugger + setTimeout(() => { + that.doCollected(collected, e.currentTarget.dataset.jobid); + }, 1000) + // that.collectedStoreJobList(); + }); }, fail: function (res) { console.log("获取用户手机号错误"); @@ -2369,7 +2370,7 @@ Page({ }, doCollected (collected, storeJobId) { var that = this; - var url = "/assistant/job/collect/"+storeJobId; + var url = "/assistant/job/collect/" + storeJobId; // if (collected - 1 == 0) { // url = "/user/collect/job/remove"; // } @@ -2737,6 +2738,19 @@ Page({ * */ recordBill (e) { + this.setData({ + recordShow: true + }) + console.log(this.data.recordShow); + wx.hideTabBar({ + animation: false, + success: (result) => { + + }, + fail: () => { }, + complete: () => { } + }); + return if (!this.data.isLogin) { wx.navigateTo({ url: "/pages/login/index", @@ -3087,4 +3101,18 @@ Page({ minAge, }); }, + hidedrawershow (e) { + console.log(e); + this.setData({ + [e.detail.type]: false + }) + wx.showTabBar({ + animation: false, + success: (result) => { + + }, + fail: () => { }, + complete: () => { } + }); + }, }); diff --git a/pages/index/index.json b/pages/index/index.json index bafc478..4ed1306 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -1,6 +1,7 @@ { "usingComponents": { - "range-slider": "../../components/range/range-slider" + "range-slider": "../../components/range/range-slider", + "bottom-drawer": "../../components/bottom-drawer/index" }, "navigationBarBackgroundColor": "#0dcc91", "navigationBarTextStyle": "white", diff --git a/pages/index/index.wxml b/pages/index/index.wxml index dfbf4f6..9984c08 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,6 +1,4 @@ - - {{searchCityParamStorage.name == '' ? '全国' : searchCityParamStorage.shortName}} @@ -16,9 +14,6 @@ - - - @@ -28,6 +23,7 @@ + @@ -92,7 +88,7 @@ {{selectJobList.length}} - + - - 1.年龄(岁) - - - {{minAge + '-'}} - {{maxAge == 60 ? maxAge + '+' : maxAge }} - - + + 1.年龄(岁) + + + {{minAge + '-'}} + {{maxAge == 60 ? maxAge + '+' : maxAge }} + + 2.性别(单选) @@ -265,6 +261,7 @@ + @@ -285,7 +282,7 @@ - + - \ No newline at end of file + + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 770bcc6..810ff59 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -102,7 +102,9 @@ page { color: #000000; } .tarbar { + /* position: relative; */ text-align: center; + /* z-index: 0; */ } .tarbarImg { width: 22px; diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index b1b2e85..82ec85c 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -89,7 +89,7 @@ --> - + 简历 diff --git a/pages/mine/vitae/index.js b/pages/mine/vitae/index.js new file mode 100644 index 0000000..da00fc5 --- /dev/null +++ b/pages/mine/vitae/index.js @@ -0,0 +1,1336 @@ +// pages/newEnroll/index.js +const app = getApp(); +var dateTimePicker = require("../../../utils/dateTimePicker.js"); +var dateUtil = require("../../../utils/dateUtil.js"); +import { isNotEmptyCheck, nationArray } from "../../../utils/commonUtil"; +const mydate = new Date(); +Page({ + /** + * 页面的初始数据 + */ + data: { + pageFrom: 1, + files: [], + switch1Checked: true, + urls: [], + userInfo: { + name: "", + address: "", + age: "", + nationality: "", + sex: "", + num: "", + tel: "", + idCardImageUrl: "", + }, + showUpload: true, + name: "", + sex: [ + { + id: 1, + value: "男", + }, + { + id: 2, + value: "女", + }, + ], + loading: false, + idInfo: {}, + index: -1, + agentArray: [], + ageArray: [], + ageIndex: -1, + // jobIndex: -1, + jobArray: [ + // { + // id: 1, + // name: "GG", + // }, + ], + storeIndex: -1, + storeArray: [ + // { + // id: 1, + // name: "GG", + // }, + ], + dateTimeArray1: null, + dateTime1: null, + startYear: 2022, + endYear: 2024, + currentTime: dateUtil.formatDateYMD(mydate.toLocaleDateString()), + currentTime2: dateUtil.formatDateYMD(mydate.toLocaleDateString()), + copyTime: dateUtil.formatDateYMD(mydate.toLocaleDateString()), + searchListShow: false, + searchListShow: false, + searchKeys: "", + searchKeysA: "", + inputShowed: false, + inputVal: "", + inputShowedA: false, + inputValA: "", + storeId: "", + agentId: "", + agentName: "", + storeJobId: "", + policy: "", + currentImg: "", + nationIndex: -1, // 民族的索引 + managerRoleClassify: app.globalData.loginUserInfo.managerRoleClassify, // 管理员权限 + agencyStatus: app.globalData.loginUserInfo.agencyStatus, + corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, //内部成员 + nationArray, + currentUser: {}, + jobName: "", + newAddImg: [], + tel: "", + zhedie: false, + isShowZhedie: false, + idCardImg: "", + dateTime: "", + pageShow: false, + }, + preventTouchMove() {}, + bindPickerChangeAge(e) { + console.log("picker发送选择改变,携带值为", e.detail.value); + this.setData({ + ageIndex: e.detail.value, + ["userInfo.age"]: parseInt(e.detail.value) + 16, + }); + }, + + ifZhedie() { + this.setData({ + zhedie: false, + }); + }, + ifZhankai() { + this.setData({ + zhedie: true, + }); + }, + + shrink() { + // wx.navigateBack({ + // delta: -1, + // }) + var that = this; + let from = wx.getStorageSync("BILLFROM"); + console.log(from); + wx.navigateBack({ + delta: -1, + }); + // wx.switchTab({ + // url: `/pages/${from}/index`, + // }); + // if (that.data.pageFrom == 1) { + // wx.switchTab({ + // url: "../../firstBill/index", + // }); + // } + // else { + // wx.switchTab({ + // url: "../../workBench/index", + // }); + // } + }, + chooseMedia() { + var that = this; + wx.chooseMedia({ + count: 1, + mediaType: ["image", "video"], + sizeType: ["original", "compressed"], + sourceType: ["album", "camera"], + success(res) { + // tempFilePath可以作为 img 标签的 src 属性显示图片 + wx.showLoading({ + title: "上传中...", + }); + console.log(res); + var currData = {}; + + const tempFilePaths = res.tempFiles; + tempFilePaths.forEach((item, index) => { + wx.uploadFile({ + url: app.globalData.ip + "/imgs/uploadImage", + method: "post", + // data:currData, + // name: "uploadFile", + filePath: tempFilePaths[index].tempFilePath, + name: "uploadFile", + header: app.globalData.headers, + success: function (res) { + that.data.files.push({ url: JSON.parse(res.data).data, id: new Date().getTime() }); + that.setData({ + files: that.data.files, + }); + that.pushImg(); + setTimeout(() => { + wx.hideLoading(); + }, 2000); + // that.updateImgs(currData.type,currData.fkId,currData.data.data); + }, + fail: function (res) { + console.log(res); + + setTimeout(() => { + wx.hideLoading(); + }, 2000); + }, + }); + setTimeout(() => { + wx.hideLoading(); + }, 2000); + }); + }, + fail(res) { + if (res["errMsg"]) { + } + console.log(res); + }, + }); + }, + delImgs(e) { + var that = this; + var url = e.currentTarget.dataset.url; + var id = e.currentTarget.dataset.id; + wx.showModal({ + title: "提示", + content: "确定要删除该图片?", + confirmColor: "#ff4400", + success(res) { + if (res.confirm) { + that.data.files.forEach((item, index) => { + if (id == item.id) { + that.data.files.splice(index, 1); + // that.data.newAddImg.splice(index, 1); + } + }); + that.pushImg(); + that.setData({ + files: that.data.files, + // newAddImg: that.data.newAddImg, + }); + if (id != -999) { + wx.request({ + url: app.globalData.ip + "/imgs/del/" + id, + header: app.globalData.header, + // data:currData, + method: "get", + success: function (res) { + console.log(res.data); + }, + fail: function (res) { + console.log(res); + }, + }); + } + } else if (res.cancel) { + console.log("用户点击取消"); + } + }, + }); + }, + pushImg() { + var that = this; + + console.log(that.data.files); + + that.data.urls = []; + // that.data.files.forEach(item=>{ + // that.data.urls.push(item.url) + // }) + + let curr = []; + that.data.files.forEach((item) => { + curr.push({ url: item.url, id: item.id }); + }); + that.setData({ + urls: curr, + }); + }, + showImgs(e) { + var that = this; + console.log(e); + console.log(that.data.urls); + let curr = []; + that.data.urls.forEach((item) => { + curr.push(item.url); + }); + + wx.previewImage({ + current: e.currentTarget.dataset.url, // 当前显示图片的 http 链接 + urls: curr, // 需要预览的图片 http 链接列表 + }); + }, + + radioChange: function (e) { + const sex = this.data.sex; + let currentSex = ""; + for (let i = 0, len = sex.length; i < len; ++i) { + sex[i].checked = sex[i].id == e.detail.value; + if (sex[i].checked) { + currentSex = sex[i].value; + } + } + this.setData({ + ["userInfo.sex"]: currentSex, + sex, + }); + console.log(e.detail.value); + }, + chooseIdCard() { + var that = this; + console.log("ischoise"); + wx.chooseImage({ + count: 1, + sizeType: ["original", "compressed"], + sourceType: ["album", "camera"], + success(res) { + console.log(res); + // debugger; + that.uploadIdcardImg(res); + }, + }); + }, + uploadIdcardImg(imgPath) { + let that = this; + // tempFilePath可以作为img标签的src属性显示图片 + let filePath; + console.log(imgPath); + if (imgPath.tempFilePaths) { + filePath = imgPath.tempFilePaths[0]; + } else { + filePath = imgPath; + } + + console.log(filePath); + wx.showLoading({ + title: "识别中...", + }); + wx.uploadFile({ + // url: app.globalData.ip + '/commons/idCardOcrRecognize', + url: app.globalData.ip + "/commons/idCardOcrRecognizeAndUploadToAliyunOss", + filePath, + name: "uploadFile", + header: app.globalData.headers, + success: function (res) { + console.log(res); + var idcard = JSON.parse(res.data); + idcard.data["tel"] = that.data.tel; + + if (idcard.status == 200) { + if (idcard.data.nationality.substr(idcard.data.nationality.length - 1, 1) != "族" && idcard.data.nationality.substr(idcard.data.nationality.length - 1, 1) != "") { + idcard.data.nationality = idcard.data.nationality + "族"; + } + + that.setData({ + userInfo: idcard.data, + ageIndex: parseInt(idcard.data.age) - 16, + showUpload: false, + idCardImg: idcard.data["idCardImageUrl"], + currentImg: imgPath.tempFilePaths ? imgPath.tempFilePaths[0] : imgPath, + }); + that.setStorage(); + console.log(that.data.userInfo); + that.data.nationArray.forEach((item, index) => { + if (item.name.includes(that.data.userInfo.nationality)) { + that.setData({ + nationIndex: index, + }); + } + }); + if (that.data.userInfo.sex == "男") { + that.data.sex[0].checked = true; + } else { + that.data.sex[1].checked = true; + } + + // that.data.files.push({'url':tempFilePaths[0]}) + + // console.log(that.data.files); + + that.setData({ + // files: that.data.files, + sex: that.data.sex, + }); + + // that.data.files.push({ url: idcard.data.idCardImageUrl, id: -999 }); + // that.data.newAddImg.push(idcard.data.idCardImageUrl); + that.setData({ + // files: that.data.files, + // newAddImg: that.data.newAddImg, + }); + that.pushImg(); + } else { + wx.showToast({ + duration: 2000, + title: "身份证未识别", + icon: "none", + mask: true, + }); + // console.log(1); + //app.showTips(that, res.data.msg); + } + wx.hideLoading(); + }, + fail: function (res) { + console.log(res); + setTimeout(() => { + wx.hideLoading(); + }, 2000); + }, + }); + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var that = this; + console.log(options); + // 先统一给代理名字赋予登陆者的名称applyType + that.setData({ + agentName: app.globalData.user.userName, + agentId: app.globalData.user.agencyId, + pageFrom: options.applyType, + }); + + console.log(that.data.pageFrom + "1首页 2报名页"); + + // console.log(JSON.parse(options.info)); + // 获取缓存的报名人信息 + let info = wx.getStorageSync("townsManInfo"); + console.log(info); + if (app.isNotEmptyCheck(info)) { + // 统一给代理岗位相关的字段赋值 + if (app.isNotEmptyCheck(info.userId)) { + that.getImgs(info.userId); + } + + if (info.nationality.substr(info.nationality.length - 1, 1) != "族" && info.nationality.substr(info.nationality.length - 1, 1) != "") { + info.nationality = info.nationality + "族"; + } + + that.setData({ + userInfo: info, + currentImg: info.currentImg, + }); + if (app.isNotEmptyCheck(info.imgs)) { + that.setData({ + files: info.imgs, + urls: info.imgs, + }); + } + + // this.setData({ + // userInfo: info, + // currentImg: info.currentImg, + // currentTime: info.currentTime, + // }); + console.log(info); + if (info.sex == "男" || info.sex == "1") { + this.data.sex[0].checked = true; + } else if (info.sex == "女" || info.sex == "2") { + this.data.sex[1].checked = true; + } + that.data.nationArray.forEach((item, index) => { + if (item.name.indexOf(info.nationality) > -1 && info.nationality != "") { + console.log("isin"); + that.setData({ + nationIndex: index, + }); + } + }); + + console.log(that.data.nationIndex); + this.setData({ + sex: this.data.sex, + }); + if (info.age) { + this.setData({ + ageIndex: parseInt(info.age) - 16, + }); + } + } + // this.getPolicyByStoreJobId(that.data.storeJobId); + console.log(app.globalData.loginUserInfo); + // let jobInfo = wx.getStorageSync("townsManInfoJob"); + // if (app.isNotEmptyCheck(jobInfo)) { + // console.log(jobInfo); + + // this.setData({ + // storeJobId: jobInfo.id, + // jobName: jobInfo.jobName, + // inputVal: jobInfo.storeName || jobInfo.aliasName, + // storeId: jobInfo.storeId, + // policy: jobInfo.policy, + // currentTime: jobInfo.currentTime, + // currentTime2: jobInfo.currentTime2, + // isShowZhedie: true, + // }); + // } + + if (app.isNotEmptyCheck(options.info)) { + console.log(options.info); + console.log(JSON.parse(options.info)); + + // 如果随路由传过来的信息有更新,赋值新的数据 + this.setData({ + storeJobId: JSON.parse(options.info).id, + jobName: JSON.parse(options.info).jobName, + inputVal: JSON.parse(options.info).storeName || JSON.parse(options.info).aliasName, + storeId: JSON.parse(options.info).storeId, + }); + that.getPolicyByStoreJobId(that.data.storeJobId).then(function () { + console.log(that.data.policy); + + let data = { currentTime: that.data.currentTime, currentTime2: that.data.currentTime2, storeJobId: that.data.storeJobId, jobName: that.data.jobName, agentName: that.data.agentName, policy: that.data.policy }; + console.log(data); + wx.setStorage({ + key: "townsManInfoJob", + data, + }); + }); + } + + if (app.isNotEmptyCheck(options.agencyInfo)) { + that.setData({ + agentName: JSON.parse(options.agencyInfo).agencyName, + agentId: JSON.parse(options.agencyInfo).id, + }); + } + if (app.isNotEmptyCheck(options.imgUrl)) { + console.log(options.imgUrl); + // let imgUrl = JSON.parse(options.imgUrl); + that.uploadIdcardImg(options.imgUrl); + } + }, + toJobAndAgencySelect(e) { + console.log(e); + var that = this; + console.log(this.data.userInfo); + this.setStorage().then(() => { + console.log("--------", "isIntonavigation"); + wx.navigateTo({ + url: `../../recordChoice/index?type=${e.currentTarget.dataset.type}&applyType=${that.data.pageFrom}`, + }); + }); + }, + showImg() { + wx.previewImage({ + current: this.data.currentImg, // 当前显示图片的 http 链接 + urls: [this.data.currentImg], // 需要预览的图片 http 链接列表 + }); + }, + deleteImg(e) { + var that = this; + console.log(e); + that.data.files.forEach((item, index) => { + if (item.id == e.currentTarget.dataset.id) { + that.data.files.splice(index, 1); + } + }); + that.setData({ + files: that.data.files, + }); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + // let src = wx.getStorageSync("src"); + // console.log(src); + }, + bothwayBind(e) { + console.log(e); + let type = `userInfo.${e.currentTarget.dataset.type}`; + this.setData({ + [type]: e.detail.value, + }); + }, + beforeFormSubmit: function (e) { + var that = this; + console.log(e); + console.log(that.data.files); + that.setData({ + loading: true, + }); + let time1 = new Date(that.data.currentTime).getTime(); + let time2 = new Date(that.data.currentTime2).getTime(); + let currentTime = new Date().getTime(); + if (time1 < time2) { + wx.showToast({ + duration: 2000, + title: "面试时间不能早于预计到达时间", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + return; + } + if (time1 < currentTime || time2 < currentTime) { + if (time1 < currentTime) { + wx.showToast({ + duration: 2000, + title: "面试时间不能早于现在的时间", + icon: "none", + mask: true, + }); + } else if (time2 < currentTime) { + wx.showToast({ + duration: 2000, + title: "到达时间不能早于现在的时间", + icon: "none", + mask: true, + }); + } + that.setData({ + loading: false, + }); + return; + } + if (app.isEmptyCheck(e.detail.value.userName)) { + wx.showToast({ + duration: 2000, + title: "请输入姓名", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + } else if (app.isEmptyCheck(e.detail.value.sex)) { + wx.showToast({ + duration: 2000, + title: "请选择性别", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + } else if (that.data.ageIndex == -1) { + wx.showToast({ + duration: 2000, + title: "请选择年龄", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + } else if (app.isEmptyCheck(wx.getStorageSync("townsManInfoJob"))) { + wx.showToast({ + duration: 2000, + title: "请补全岗位信息", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + } else if (app.isEmptyCheck(e.detail.value.idCard)) { + wx.showToast({ + duration: 2000, + title: "请输入身份证号", + icon: "none", + mask: true, + }); + that.setData({ + loading: false, + }); + } else { + setTimeout(() => { + that.formSubmit(e); + }, 1); + e.detail.value["idCardImageUrl"] = that.data.userInfo.idCardImageUrl; + } + }, + getTel(e) { + let tel = e.detail.value; + this.setData({ + tel: e.detail.value, + }); + }, + + setStorage() { + let that = this; + console.log(wx.getStorageSync("townsManInfo")); + console.log(this.data.userInfo.tel); + return new Promise((resolve, reject) => { + console.log("写入缓存"); + console.log(that.data.userInfo.tel); + // if(app.isNotEmptyCheck(that.data.tel)){ + // userInfo['tel'] = that.data.tel; + // that.setData({ + // tel:this.data.userInfo.tel, + // userInfo: + // }) + // } + + console.log(that.data.storeJobId); + let data = { ...that.data.userInfo, currentImg: that.data.currentImg, imgs: that.data.files, tel: that.data.userInfo.tel }; + + // currentTime: that.data.currentTime,currentTime2: that.data.currentTime2, storeJobId: that.data.storeJobId, jobName: that.data.jobName, agentName: that.data.agentName,policy:that.data.policy + console.log(data); + wx.setStorage({ + key: "townsManInfo", + data, + }); + + if (that.data.storeJobId) { + let data2 = { currentTime: that.data.currentTime, currentTime2: that.data.currentTime2, storeJobId: that.data.storeJobId, jobName: that.data.jobName, agentId: that.data.agentId, agentName: that.data.agentName, policy: that.data.policy }; + wx.setStorage({ + key: "townsManInfoJob", + data: data2, + }); + } + + console.log(wx.getStorageSync("townsManInfoJob")); + console.log(wx.getStorageSync("townsManInfo")); + resolve(); + }); + }, + formSubmit: function (e) { + var that = this; + console.log(e); + that.setData({ + loading: true, + }); + + wx.showLoading({ + title: "提交中...", + mask: true, + }); + let userInfo = wx.getStorageSync("townsManInfo"); + let jobInfo = wx.getStorageSync("townsManInfoJob"); + // wx.showLoading({ + // title: "提交中...", + // mask: true, + // }); + // if (that.data.index == -1) { + // wx.showToast({ + // duration: 2000, + // title: '请选择代理', + // icon: 'none', + // mask: true + // }) + // that.setData({ + // loading: false + // }) + // } else + + // if (that.data.jobIndex == -1) { + // wx.showToast({ + // duration: 2000, + // title: "请选择岗位", + // icon: "none", + // mask: true, + // }); + // that.setData({ + // loading: false, + // }); + // } else { + console.log(that.data.userInfo); + new Promise(function (resolve, reject) { + var paramData = that.data.userInfo; + paramData["userName"] = e.detail.value.userName; + paramData["sex"] = e.detail.value.sex; + paramData["age"] = that.data.userInfo.age; + paramData["nation"] = that.data.userInfo.nationality; + paramData["idCard"] = e.detail.value.idCard; + paramData["num"] = e.detail.value.idCard; + paramData["tel"] = e.detail.value.tel; + paramData["idCardImageUrl"] = that.data.userInfo.idCardImageUrl; + paramData["address"] = e.detail.value.address; + paramData["desp"] = e.detail.value.desp; + + // if(app.isNotEmptyCheck(userInfo.imgs)){ + // paramData["imgs"] = userInfo.imgs.toString(); + // } + + paramData["agencyId"] = '3087'; + paramData["jobId"] = jobInfo.storeJobId; + paramData["policy"] = jobInfo.policy; + paramData["interviewTime"] = jobInfo.currentTime; + paramData["receptionTime"] = jobInfo.currentTime2; + + let urlss = []; + if (app.isNotEmptyCheck(that.data.files)) { + that.data.files.forEach((item) => { + urlss.push(item.url); + }); + } + + paramData["imgs"] = urlss.toString(); + + resolve(paramData); + }).then((paramData) => { + console.log(paramData); + wx.request({ + url: app.globalData.ip + "/yishoudan/common/order/add", + header: app.globalData.headers, + data: paramData, + method: "POST", + success: function (res) { + // wx.removeStorageSync('townsManInfo') + // wx.removeStorageSync('townsManInfoJob') + + console.log(res); + if (res.data.status == 200) { + console.log(that.data.pageFrom + "1首页 2报名页"); + setTimeout(function () { + // wx.navigateBack({ + // delta: -1, + // }); + // wx.setStorageSync('comeFromPage','') + wx.navigateTo({ + url: `/pages/returnMessage/index?from=bill&type=success&msg=报名成功`, + }); + // if (that.data.pageFrom == 1) { + // wx.switchTab({ + // url: "../../firstBill/index", + // }); + // } else { + // wx.switchTab({ + // url: "../../workBench/index", + // }); + // } + }, 100); + + // wx.showToast({ + // duration: 2000, + // title: "报名成功", + // icon: "success", + // mask: true, + // }); + } else { + wx.navigateTo({ + url: `/pages/returnMessage/index?from=bill&type=fail&msg=报名已提交&status${res.data.status}`, + }); + // wx.showToast({ + // duration: 2000, + // title: res.data.msg, + // icon: "none", + // mask: true, + // }); + } + that.setData({ + loading: false, + }); + setTimeout(() => { + wx.hideLoading(); + }, 2000); + }, + fail(err) { + console.log(err); + wx.showToast({ + duration: 2000, + title: err, + icon: "none", + mask: true, + }); + setTimeout(() => { + wx.hideLoading(); + that.setData({ + loading: false, + }); + }, 2000); + }, + }); + }); + + // wx.navigateBack({ + // delta: -1, + // }) + // }); + + // } + }, + inputTyping: function (e) { + this.setData({ + inputVal: e.detail.value, + }); + if (e.detail.value.length > 0) { + this.setData({ + searchListShow: true, + }); + this.getStoreList(e.detail.value); + } else { + this.setData({ + searchListShow: false, + }); + } + }, + getStoreList: function (searchKeys) { + console.log(searchKeys); + var that = this; + that.data.searchKeys = searchKeys; + // 60秒后重新获取验证码 + wx.request({ + url: app.globalData.ip + "/store/getAllStoreAliasName", + data: { + keys: searchKeys, + }, + header: app.globalData.headers, + method: "GET", + success: function (res) { + console.log(res); + if (res.data.status == 200) { + that.setData({ + storeArray: res.data.data, + }); + } + }, + fail: function (res) {}, + }); + }, + setValue: function (e) { + let str = e.currentTarget.dataset.name; + let storeId = e.currentTarget.dataset.id; + console.log(storeId); + this.setData({ + inputVal: str, + storeId: storeId, + searchListShow: false, + }); + this.getJobList(storeId); + }, + getJobList: function (storeId) { + var that = this; + return new Promise((resolve, reject) => { + wx.request({ + url: app.globalData.ip + "/store/job/getJobNameByStoreId", + data: { + storeId: storeId, + }, + header: app.globalData.headers, + method: "GET", + success: function (res) { + console.log(res); + if (res.data.status == 200) { + that.setData({ + jobArray: res.data.data, + }); + resolve(); + } + }, + fail: function (res) {}, + }); + }); + }, + + // bindPickerChangeJob: function (e) { + // var that = this; + // console.log("picker发送选择改变,携带值为", e.detail.value); + // var storeJobId = that.data.jobArray[e.detail.value].id; + // console.log(storeJobId); + // that.getPolicyByStoreJobId(storeJobId); + // this.setData({ + // jobIndex: e.detail.value, + // }); + // }, + bindPickerChangeNation(e) { + let that = this; + console.log("picker发送选择改变,携带值为", e.detail.value); + var nationName = that.data.nationArray[e.detail.value].name; + + this.setData({ + nationIndex: e.detail.value, + ["userInfo.nationality"]: nationName, + }); + }, + getPolicyByStoreJobId: function (storeJobId) { + var that = this; + return new Promise((resolve, reject) => { + wx.request({ + url: app.globalData.ip + "/store/job/getPolicyByStoreJobId", + data: { + storeJobId: storeJobId ? storeJobId : "", + }, + header: app.globalData.headers, + method: "GET", + success: function (res) { + console.log(res); + if (res.data.status == 200) { + that.setData({ + policy: res.data.data, + isShowZhedie: true, + }); + resolve(); + } + }, + fail: function (res) { + console.log(res); + reject(); + }, + }); + }); + }, + + changeDateTime(e) { + var dateTimeArray = this.data.dateTimeArray, + dateTime = e.detail.value; + this.setData({ + // dateTime: e.detail.value, + currentTime: dateTimeArray[0][dateTime[0]].replace("年", "") + "-" + dateTimeArray[1][dateTime[1]].replace("月", "") + "-" + dateTimeArray[2][dateTime[2]].replace("日", "") + " " + dateTimeArray[3][dateTime[3]], + }); + console.log(this.data.dateTimeArray); + + console.log(wx.getStorageSync("townsManInfoJob")); + let result = wx.getStorageSync("townsManInfoJob"); + result.currentTime = this.data.currentTime; + wx.setStorageSync("townsManInfoJob", result); + }, + + changeDateTimeColumn(e) { + console.log(e); + var arr = this.data.dateTime, + dateArr = this.data.dateTimeArray; + arr[e.detail.column] = e.detail.value; + console.log("aaaaaa"); + console.log(dateArr[0][arr[0]], dateArr[1][arr[1]]); + + dateArr[2] = dateTimePicker.getMonthDay(dateArr[0][arr[0]], dateArr[1][arr[1]]); + for (let index = 0; index < dateArr[2].length; index++) { + dateArr[2][index] = dateArr[2][index] + "日"; + } + // .replace("年",'').replace("月",'').replace("日",'') + this.setData({ + dateTimeArray: dateArr, + dateTime: arr, + }); + }, + + changeDateTime2(e) { + var dateTimeArray = this.data.dateTimeArray, + dateTime = e.detail.value; + this.setData({ + // dateTime: e.detail.value, + currentTime2: dateTimeArray[0][dateTime[0]].replace("年", "") + "-" + dateTimeArray[1][dateTime[1]].replace("月", "") + "-" + dateTimeArray[2][dateTime[2]].replace("日", "") + " " + dateTimeArray[3][dateTime[3]], + }); + console.log(this.data.dateTimeArray); + + console.log(wx.getStorageSync("townsManInfoJob")); + let result = wx.getStorageSync("townsManInfoJob"); + result.currentTime2 = this.data.currentTime2; + wx.setStorageSync("townsManInfoJob", result); + }, + + changeDateTimeColumn2(e) { + var arr = this.data.dateTime2, + dateArr = this.data.dateTimeArray; + arr[e.detail.column] = e.detail.value; + dateArr[2] = dateTimePicker.getMonthDay(dateArr[0][arr[0]], dateArr[1][arr[1]]); + for (let index = 0; index < dateArr[2].length; index++) { + dateArr[2][index] = dateArr[2][index] + "日"; + } + // .replace("年",'').replace("月",'').replace("日",'') + this.setData({ + dateTimeArray: dateArr, + dateTime2: arr, + }); + }, + + // getAgencyList: function (searchKeys) { + // var that = this; + // that.data.searchKeysA = searchKeys; + // // 60秒后重新获取验证码 + // wx.request({ + // url: app.globalData.ip + "/agency/getByPmdUserId", + // data: { + // agencyName: searchKeys, + // // pmdUserId: 101125 + // }, + // header: app.globalData.headers, + // method: "GET", + // success: function (res) { + // console.log(res); + // if (res.data.status == 200) { + // that.setData({ + // agentArray: res.data.data, + // }); + // } + // }, + // fail: function (res) {}, + // }); + // }, + /** + * 生命周期函数--监听页面显示 + */ + getImgs(userId) { + var that = this; + wx.request({ + url: app.globalData.ip + "/imgs/list/" + userId + "?type=20", + header: app.globalData.headers, + method: "GET", + success: function (res) { + console.log(res); + // if (res.data.status == 200) { + let currFils = []; + let regs = /\.(jpg|jpeg|png)(\?.*)?$/; + // res.data.data.storeImage.forEach((item) => { + // item.isImg = regs.test(item.url.toLowerCase()); + // if(app.isEmptyCheck(item.recordState)){ + // item.recordState = 1 + // } + // }); + if (app.isNotEmptyCheck(res.data.data.userImgs)) { + res.data.data.userImgs.forEach((item) => { + if (regs.test(item.url.toLowerCase())) { + currFils.push({ url: item.url, id: item.id }); + } + }); + } + + that.setData({ + files: currFils, + urls: currFils, + }); + // } + }, + fail: function (res) { + console.log(res); + }, + }); + }, + + onShow: function () { + let that = this; + that.setData({ + pageShow: false, + }); + // wx.hideTabBar({ + // success(e) { + // setTimeout(() => { + that.setData({ + pageShow: true, + }); + // }, 500); + // // that.setData({ + // // currentJobDrawer: { ...event.currentTarget.dataset.item, index: event.currentTarget.dataset.index }, + // // drawerShow: true, + // // }); + // }, + // }); + if (typeof this.getTabBar === "function" && this.getTabBar()) { + this.getTabBar().setData({ + selected: 1, + isShow: false, + }); + } + that.pushImg(); + + for (let i = 16; i <= 60; i++) { + that.data.ageArray.push(i); + } + + // let that = this; + // let info = wx.getStorageSync("townsManInfo"); + // if (app.isNotEmptyCheck(info)) { + // this.setData({ + // userInfo: info, + // currentImg: info.currentImg, + // currentTime: info.currentTime, + // }); + // console.log(info); + // if (info.sex == "男") { + // this.data.sex[0].checked = true; + // } else if (info.sex == "女") { + // this.data.sex[1].checked = true; + // } + // that.data.nationArray.forEach((item, index) => { + // if (item.name.indexOf(info.nationality) > -1 && info.nationality != "") { + // console.log("isin"); + // that.setData({ + // nationIndex: index, + // }); + // } + // }); + // console.log(that.data.nationIndex); + // this.setData({ + // sex: this.data.sex, + // }); + // } + // this.pickerTap(); + let hour = new Date().getHours(); + if (hour < 20 && hour >= 6) { + if (that.data.currentTime == that.data.copyTime) { + that.data.currentTime = that.data.currentTime + " " + (hour + 1) + ":00"; + that.data.currentTime2 = that.data.currentTime2 + " " + (hour + 1) + ":00"; + } + } else if (hour >= 20) { + if (that.data.currentTime == that.data.copyTime) { + that.data.currentTime = that.data.currentTime + " " + "19:30"; + that.data.currentTime2 = that.data.currentTime2 + " " + "19:30"; + } + } else if (hour < 6) { + if (that.data.currentTime == that.data.copyTime) { + that.data.currentTime = that.data.currentTime + " " + "6:00"; + that.data.currentTime2 = that.data.currentTime2 + " " + "6:00"; + } + } + this.setData({ + currentTime: that.data.currentTime, + currentTime2: that.data.currentTime2, + }); + var obj = dateTimePicker.dateTimePicker(this.data.startYear, this.data.endYear, this.data.currentTime); + console.log(obj); + console.log(obj.dateTimeArray); + for (let index = 0; index < obj.dateTimeArray[0].length; index++) { + obj.dateTimeArray[0][index] = obj.dateTimeArray[0][index] + "年"; + } + for (let index = 0; index < obj.dateTimeArray[1].length; index++) { + obj.dateTimeArray[1][index] = obj.dateTimeArray[1][index] + "月"; + } + for (let index = 0; index < obj.dateTimeArray[2].length; index++) { + obj.dateTimeArray[2][index] = obj.dateTimeArray[2][index] + "日"; + } + if (that.data.storeJobId) { + that.getPolicyByStoreJobId(that.data.storeJobId).then(function () { + console.log(that.data.policy); + let data = { currentTime: that.data.currentTime, currentTime2: that.data.currentTime2, storeJobId: that.data.storeJobId, jobName: that.data.jobName, agentName: that.data.agentName, policy: that.data.policy }; + console.log(data); + wx.setStorage({ + key: "townsManInfoJob", + data, + }); + }); + } + + console.log(app.globalData.loginUserInfo); + this.setData({ + managerRoleClassify: app.globalData.loginUserInfo.managerRoleClassify, + corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, + dateTimeArray: obj.dateTimeArray, + dateTime: obj.dateTime, + dateTimeArray2: obj.dateTimeArray, + dateTime2: obj.dateTime, + ageArray: that.data.ageArray, + }); + console.log(); + }, + switch1Change: function (e) { + console.log("radio发生change事件,携带value值为:", e.detail.value); + console.log(e.detail.value); + + var check = this.data.switch1Checked; + if (check) { + this.data.switch1Checked = false; + console.log("已取消选中"); + wx.showToast({ + title: "请先阅读并同意《服务协议》及《隐私政策》", + icon: "none", + duration: 2000, + }); + } else { + this.data.switch1Checked = true; + console.log("已选中"); + } + this.setData({ + switch1Checked: this.data.switch1Checked, + }); + + // if(!e.detail.value){ + + // } + }, + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function (e) { + console.log("isHide"); + console.log(e); + }, + // tabbar点击监听 + onTabItemTap(e) { + console.log(e); + let that = this; + if (!app.globalData.isLogin) { + if (e.index == 1) { + wx.redirectTo({ + url: "/pages/login/index", + }); + } + } else { + console.log("1250", app.globalData.loginUserInfo.agencyStatus); + if (app.globalData.loginUserInfo.agencyStatus != 1) { + wx.redirectTo({ + url: "/pages/tobeAgency/index", + }); + } + } + }, + /** + * 预览身份证图片 + * + * + */ + previewImage(e) { + let that = this; + console.log(e); + wx.previewImage({ + current: that.data.idCardImg, // 当前显示图片的 http 链接 + urls: [that.data.idCardImg], // 需要预览的图片 http 链接列表 + }); + }, + /** + * 预览附件图片 + * + * + */ + previewImg() {}, + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + console.log("isonUnload"); + this.setData({ + userInfo: { + name: "", + address: "", + age: "", + nationality: "", + sex: "", + num: "", + idCardImageUrl: "", + }, + }); + wx.removeStorageSync("townsManInfo"); + // wx.removeStorageSync("townsManInfo"); + // wx.switchTab({ + // url: "../firstBill/index", + // }); + // console.log(wx.getStorageSync("townsManInfo")); + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () {}, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () {}, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage1: function () {}, + toJobAndAgencySelect (e) { + console.log(e); + var that = this; + console.log(this.data.userInfo); + this.setStorage().then(() => { + console.log("--------", "isIntonavigation"); + wx.navigateTo({ + url: `../../recordChoice/index?type=${e.currentTarget.dataset.type}&applyType=${that.data.pageFrom}`, + }); + }); + }, +}); diff --git a/pages/mine/vitae/index.json b/pages/mine/vitae/index.json new file mode 100644 index 0000000..5123515 --- /dev/null +++ b/pages/mine/vitae/index.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "新增报名人", + "backgroundColor": "#f5f5f5" + +} \ No newline at end of file diff --git a/pages/mine/vitae/index.wxml b/pages/mine/vitae/index.wxml new file mode 100644 index 0000000..c99dab2 --- /dev/null +++ b/pages/mine/vitae/index.wxml @@ -0,0 +1,149 @@ +
+ + + + 个人信息 + + + + + 默认报名人 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.value}} + + + + + + + + + + + + + + 请选择年龄 + + + {{ageArray[ageIndex]}} + + + + + + + + + + + + + + + + 请选择民族 + + + {{nationArray[nationIndex].name}} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/pages/mine/vitae/index.wxss b/pages/mine/vitae/index.wxss new file mode 100644 index 0000000..c1cedf0 --- /dev/null +++ b/pages/mine/vitae/index.wxss @@ -0,0 +1,296 @@ +.weui-cells__group_form { + margin-top: 0px; +} +.weui-cells__group_form .weui-label { + color: rgba(0, 0, 0, 0.65); +} +.weui-input::placeholder { + color: #ccc; +} +.weui-cells__group_form .weui-cell { + align-items: center; + padding: 0px 16px !important; + min-height: 56px; + line-height: 56px; + overflow: hidden; +} +.weui-cells__group_form .weui-cells:after, +.weui-cells__group_form .weui-cell:before, +.weui-cells__group_form .weui-cells:before { + left: 10px; + right: 10px; +} +.br8 { + border-radius: 8px; +} +.weui-cells__group_form .weui-cell__hd { + padding-right: 0; +} + +.weui-cells__group_form .weui-cell.weui-cell_vcode { + padding: 11px 10px; +} +.weui-input { + /* min-width: 250px; */ + min-height: 22px; + height: 22px; + line-height: 22px; +} +.weui-uploader__file, +.weui-uploader__input-box { + /* width: calc((100vw - 105px - 40px) / 3); + height: calc((100vw - 105px - 40px) / 3); */ + border-radius: 4px; + width: 76px; + height: 76px; + margin-right: 11px; +} +.weui-cells__group_form .weui-vcode-btn { + width: 68px; + height: 26px; + background-color: #fff; + border-radius: 13px; + font-size: 14px; + color: #027aff; + text-align: center; + padding: 0; + font-weight: 400; + line-height: 26px; +} +.weui-label.c085 { + color: #333; + /* font-weight: 500; */ +} +.weui-cell { + align-items: flex-start; +} +.weui-cells__group_form .weui-cells:before { + border-top: 0; +} + +.weui-cell.weui-cell_active.weui-cell_access { + padding: 12px 10px; +} +button[disabled]:not([type]) { + background-color: #ddd; +} + +.searchbar-result { + position: absolute; + z-index: 9; + width: calc(100% - 20px); + max-height: 200px; + overflow: auto; +} +.weui-cells:after, +.weui-cells:before { + height: 0; + border-top: 0; + border-bottom: 0; +} +.weui-input { + text-align: right; +} +.topViewN { + height: 66px; + background: #fff4f1; + border: 1px solid #ff8255; + border-radius: 6px; + display: flex; + padding: 0 16px; + line-height: 66px; +} +.weui-cell__bd { + color: #666; +} +.imgSpanIcon { + width: 23px; + height: 18px; +} +.imgSpanIcon1 { + width: 22px; + height: 22px; + position: absolute; + right: -11px; + top: -11px; +} + +.topImg { + position: absolute; + width: 100px; + height: 100px; + background: rgba(0, 0, 0, 0.48); + border-radius: 4px; +} + +button.newBtn { + width: 200px; + background-color: var(--color-ysd); +} + +.quickapply { + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + min-height: 54px; + margin-bottom: 0; + padding: 12px 10px 12px 14px; + /* padding-bottom: 48px; */ + background-color: #fff; + border-radius: 6px; +} + +.quickapply .upload .t-icon { + width: 46px; + height: 46px; + margin-right: 10px; + background-repeat: no-repeat; +} +.quickapply .upload { + display: flex; + align-items: center; +} +.quickapply .info view:first-child { + font-size: 17px; + font-weight: 500; + color: #333; +} +.quickapply .info view:last-child { + font-size: 14px; + color: #ccc; +} +.quickapply .idCardPreview, +.quickapply .idCardPreview image { + width: 28px; + height: 28px; + border-radius: 2px; +} +.quickapply .idCardPreview .t-icon { + width: 100%; + height: 100%; +} +.input__placeholder { + color: #ccc; +} +.weui-input { + color: #333; +} +.weui-uploader__input-box:before { + width: 2px; + height: 24px; +} +.weui-uploader__input-box:after { + width: 24px; + height: 2px; +} +.weui-uploader__img { + border-radius: 4px; +} +.weui-uploader__file .delImg { + position: absolute; + right: -6px; + top: -6px; + z-index: 99; +} +.weui-uploader__bd { + overflow: inherit; +} +.rightPz { + position: relative; + width: 24px; + height: 22px; + margin-left: 10px; + background-repeat: no-repeat; + background-size: 100% 100%; +} +.weui-cell.name { + padding: 7px 16px; + display: flex; + align-items: center; + position: relative; +} +.weui-cell.name .idcardImg { + position: absolute; + left: 70px; + top: 50%; + transform: translateY(-50%); + z-index: 99; +} +.weui-cell.sex { + /* padding: 10px 16px; */ + height: 56px; +} +.weui-cell.imgupdata { + justify-content: space-between; +} +.wbv0 .f16.c3.mb8 { + display: flex; +} +.over3 { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + text-overflow: ellipsis; +} +.wbv0.weui-dialog__bd { + display: inline; + max-height: 400px; + overflow: auto; +} +.weui-dialog__title { + font-weight: bold; +} +.hasHigh { + height: calc(100vh - 210px); +} +.weui-dialog { + top: calc(50% - 60px); +} +.heiover { + height: 0; + overflow: hidden; +} +.remark { + padding: 15px 16px; + align-items: center; +} +.uploadImgBox{ + display: flex; + justify-content: start; + font-display: row; + align-items: center; + padding-left: 10px; + /* padding-bottom: 12px; */ + width: calc(100vw - 40px); +} +.uploadImgSubBox { + width: 60px; + height: 60px; + position: relative; + margin-top:16px; + margin-right: 9px; + border-radius: 4px; + /* overflow: hidden; */ + +} +.uploadImgSubBox image{ + /* object-fit: contain; */ + width: 60px; + height: 60px; +} +.uploadImgSubBox .close{ + position: absolute; + width: 18px; + height: 18px; + right: -6px; + top: -6px; + z-index: 99; + background-color: #666; + color: #fff; + font-size: 8px; + text-align: center; + line-height: 18px; + border-radius: 50%; +} diff --git a/pages/mine/vitaeList/index.js b/pages/mine/vitaeList/index.js new file mode 100644 index 0000000..5c31721 --- /dev/null +++ b/pages/mine/vitaeList/index.js @@ -0,0 +1,98 @@ +// pages/mine/vitaeList/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + recordList: [ + { + id: 0, + name: '李红霞', + tel: 13488887125, + gender: '女', + checked: false + }, + { + id: 1, + name: '张卫国', + tel: 13488887125, + gender: '男', + checked: false + }, + { + id: 2, + name: '王丽丽', + tel: 13488887125, + gender: '男', + checked: false + }, + ], + type: 'add', // 判断进入的途径 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad (options) { + console.log(options); + if (options.type) { + this.setData({ + type: options.type + }) + } + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow () { + + }, + addPersion () { + wx.navigateTo({ + url: '/pages/mine/vitae/index' + }) + }, + /** + * 生命周期函数--监听页面隐藏 + */ + onHide () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage () { + + } +}) \ No newline at end of file diff --git a/pages/mine/vitaeList/index.json b/pages/mine/vitaeList/index.json new file mode 100644 index 0000000..845389a --- /dev/null +++ b/pages/mine/vitaeList/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "报名人", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/mine/vitaeList/index.wxml b/pages/mine/vitaeList/index.wxml new file mode 100644 index 0000000..ae6bde0 --- /dev/null +++ b/pages/mine/vitaeList/index.wxml @@ -0,0 +1,29 @@ + + + + + + + + + + {{item.name + (item.gender ? ('/' + item.gender) :'') }} + 默认 + + {{item.tel}} + + + + + + + + + + + + + + diff --git a/pages/mine/vitaeList/index.wxss b/pages/mine/vitaeList/index.wxss new file mode 100644 index 0000000..17fa246 --- /dev/null +++ b/pages/mine/vitaeList/index.wxss @@ -0,0 +1,8 @@ +/* pages/mine/vitaeList/index.wxss */ +.fixBottom { + position: fixed; + bottom: 0; + width: 100vw; + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); +}