// pages/jobDetail/index.js const app = getApp(); const commonUtil = require("../../utils/commonUtil"); Page({ /** * 页面的初始数据 */ data: { roleOf41: false, roleOf132: false, managerRoleClassify: false, supplier: {}, isEdit: false, value: '', allShow: false, navlist: 1, jjHeight: 0, jjText: "-", storeJobId: "", showSexAgeText: '', isImg: true, mapLoad: true, case: 1, showReturnFeeType: '', isAdmin: false, aliasName: "", valueNormal: '', title: '', value1: '', value2: '', value3: '', value4: "", icon: '', onSiteInfoTel: '', fabuD: false, telStr: [], zhuchangInfo: '', policyList: [], queryNum: 0, }, makePhone (e) { wx.makePhoneCall({ phoneNumber: e.currentTarget.dataset.tel //仅为示例,并非真实的电话号码 }) }, zcNum (index) { let str = '' if (index == 0) { str = '一' } else if (index == 1) { str = '二' } else if (index == 2) { str = '三' } else if (index == 3) { str = '四' } else if (index == 4) { str = '五' } else if (index == 5) { str = '六' } else if (index == 6) { str = '七' } else if (index == 7) { str = '八' } else if (index == 8) { str = '九' } else if (index == 9) { str = '十' } return '政策' + str }, setCopy (e) { var that = this; wx.setClipboardData({ data: e.currentTarget.dataset.content, success (res) { wx.getClipboardData({ success (res) { console.log(res.data) // data wx.showToast({ title: '内容已复制', icon: 'none', duration: 1500 }) } }) } }) }, chooseTimeTap () { this.setData({ fabuD: true, }); }, close () { this.setData({ fabuD: false, }); }, fabu () { var that = this; wx.request({ url: app.globalData.ip + "/store/job/sendPublicNoticeMsg?jobId=" + that.data.jobDetail.storeJob.id, header: app.globalData.header, method: "POST", success: function (res) { wx.showToast({ title: '发布成功', icon: 'success', duration: 1000 }) that.setData({ fabuD: false }) } }) }, showForm () { var that = this; that.setData({ isEdit: !that.data.isEdit }) }, case (e) { this.setData({ case: e.currentTarget.dataset.id }) }, openMap (e) { var that = this; console.log(e); let lat = e.currentTarget.dataset.lat; let lng = e.currentTarget.dataset.lng; let address = e.currentTarget.dataset.address; if (!lat || !lng) { return; } let name = this.data.aliasName if (address == "-") { return } console.log(lat); wx.openLocation({ latitude: Number(lat), longitude: Number(lng), name: name, address: address, scale: 15 }) that.setData({ mapLoad: false }) }, changeactive: function (e) { this.setData({ navlist: e.mark.ind, }); // this.getList(); }, editDetail (e) { var title = e.currentTarget.dataset.title; var content = e.currentTarget.dataset.content; var namestr = e.currentTarget.dataset.namestr; wx.navigateTo({ url: './editDetail/index?title=' + title + "&namestr=" + namestr, }) // if (this.data.roleOf41 || this.data.managerRoleClassify) { // wx.navigateTo({ // url: './editDetail/index?title=' + title + "&namestr=" + namestr, // }) // } else { // wx.showToast({ // title: '暂无权限', // icon: 'error', // duration: 1000 // }) // } }, editfwfDetail (e) { var title = e.currentTarget.dataset.title; var content = e.currentTarget.dataset.content; var namestr = e.currentTarget.dataset.namestr; // if(this.data.roleOf41 || this.data.managerRoleClassify){ wx.navigateTo({ url: './editZhengce/index?title=' + title + "&namestr=" + namestr, }) // }else{ // wx.showToast({ // title: '暂无权限', // icon:'error', // duration:1000 // }) // } }, editDetailStore (e) { var title = e.currentTarget.dataset.title; var content = e.currentTarget.dataset.content; var namestr = e.currentTarget.dataset.namestr; if (this.data.roleOf41 || this.data.managerRoleClassify) { wx.navigateTo({ url: './editStoreDetail/index?title=' + title + "&namestr=" + namestr, }) } else { wx.showToast({ title: '暂无权限', icon: 'error', duration: 1000 }) } }, /** * 生命周期函数--监听页面加载 */ onLoad (options) { var that = this; this.setData({ storeJobId: options.storeJobId }) for (let i = 0; i < 60; ++i) { this.setData({ ["isEditA" + i]: false, ["isEditB" + i]: false, ["isEditC" + i]: false }) } that.setData({ roleOf41: app.globalData.roleOf41, roleOf132: app.globalData.roleOf132, managerRoleClassify: app.globalData.managerRoleClassify, }) }, formSubmit (e) { var that = this; console.log(e.detail.value) let currData = {}; currData["id"] = that.data.jobDetail.storeJob.id; currData["fieldName"] = 'jobDesp'; currData["value"] = `${that.data.title}\n${that.data.icon}*****${e.detail.value.value1}*****\n${that.data.icon}*****${e.detail.value.value2}*****\n${that.data.icon}*****${e.detail.value.value3}*****${that.data.value4}`; console.log(currData) wx.request({ url: app.globalData.ip + "/store/job/updateJobField", header: app.globalData.header, data: currData, method: "POST", success: function (res) { wx.showToast({ title: '保存成功', icon: 'success', duration: 1000 }) that.setData({ valueNormal: currData["value"].replace(/\*\*\*\*\*/g, ""), value1: currData["value"].split("*****")[1], value2: currData["value"].split("*****")[3], value3: currData["value"].split("*****")[5], isEdit: false }) } }) }, // fabuTap(){ // let currData = {}; // currData["storeId"] = that.data.jobDetail.store.id; // currData["storeInfo"] =e.detail.value[that.data.name]; // wx.request({ // url: app.globalData.ip + "/store/updateStoreInfo", // header: app.globalData.header, // data:currData, // method: "POST", // success: function (res) { // wx.showToast({ // title: '保存成功', // icon:'success', // duration:1000 // }) // }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady () { }, /** * 生命周期函数--监听页面显示 */ onShow () { var that = this; wx.showLoading({ title: '加载中...', }) this.getStoreJobDetailById(); // that.setData({ // title:that.data.value.split('\n')[0], // value1:that.data.value.split("*****")[1], // value2:that.data.value.split("*****")[3], // value3:that.data.value.split("*****")[5], // value4:that.data.value.split("*****")[6], // }) // str }, changeEdit (e) { var that = this; let curr = e.currentTarget.dataset.edit for (let i = 0; i < 60; ++i) { if (curr == i) { that.setData({ ["isEditA" + i]: true, ["isEditB" + i]: true, ["isEditC" + i]: true }) } else { that.setData({ ["isEditA" + i]: false, ["isEditB" + i]: false, ["isEditC" + i]: false }) } } }, shrinkAll (e) { var that = this; // for (let i = 0; i < 100; ++i) { // this.setData({ // ["isEditA" + i] :false, // }) // setTimeout(()=>{ // that.setData({ // ["isEditB" + curr] :false // }) // },250) // } }, shrink (e) { var that = this; let curr = e.currentTarget.dataset.edit if (curr == 1 || curr == 2) { wx.pageScrollTo({ scrollTop: 0, duration: 300 }) } // setTimeout(()=>{ that.setData({ ["isEditA" + curr]: false, ["isEditB" + curr]: false }) setTimeout(() => { that.setData({ ["isEditC" + curr]: false }) }, 200) }, handlerStr (str) { let newStr = null; //返回值 const phoneReg = /(1[0-9]{2,10})|([0-9]{3,4})?[0-9]{7,8}|[\d\w]+\b@[a-zA-ZA-z0-9]+.[a-z]+/g; //匹配手机号或者固话,邮箱 const num = str.replace(/\s|[(]|[)]|[(]|[)]|[-]*/g, ''); //去除字符串中所有空格、小括号和横杠 const phone = num.match(phoneReg); //识别手机号或者固话(在字符串内检索指定的值,或找到一个或多个正则表达式的匹配) phone && (newStr = phone.join('')); //有值的话得到一个数组,用空格隔开转化为字符串 // console.log('输出的值:', newStr) return newStr; }, getStoreJobDetailById () { var that = this; console.log(that.data.mapLoad); if ((wx.getStorageSync('isLoad') == "" || wx.getStorageSync('isLoad')) && that.data.mapLoad) { wx.showLoading({ title: '加载中...', }) } wx.removeStorage({ key: 'isLoad', }) wx.request({ // url: app.globalData.ip + "/store/job/getStoreJobDetailById?storeJobId=" + that.data.searchForm.storeJobId, url: app.globalData.ip + "/overall/store/job/getStoreJobDetailById?storeJobId=" + that.data.storeJobId, method: "POST", header: app.globalData.headers, data: that.data.searchForm, success: function (res) { console.log(res); if (res.data.status == 200) { wx.setStorageSync('jobDetail', res.data.data) var result = res.data.data; var title = result.storeJob.jobName; // var title1 = result.store.aliasName; // that.data.logo2 // var telStr = result.storeJob.onSiteInfo; var telN = "" if(result.storeJob.onSiteInfo.includes(",")){ telN = result.storeJob.onSiteInfo.split(","); }else if(result.storeJob.onSiteInfo.includes("-")){ telN = result.storeJob.onSiteInfo.split("-"); }else{ telN = result.storeJob.onSiteInfo.split("\n"); } that.data.telStr = []; // console.log(result.storeJob.onSiteInfo.split("\n")); telN.forEach((item, index) => { item = item.replace(/\d\./, '') that.data.telStr.push(item) // console.log(item) }) console.log(that.data.telStr); that.data.zhuchangInfo = '驻场:' + that.data.telStr; var str = result.storeJob.jobDesp; var aPos = str.indexOf('\n'); var bPos = str.indexOf('*'); console.log(aPos, bPos); console.log(str.substr(aPos + 1, bPos - aPos - 1)); console.log(result.storeJob.jobDesp.split("*****")); console.log('详情的查询次数', that.data.queryNum); that.setData({ // policyList: zhuchangInfo: that.data.zhuchangInfo, telStr: that.data.telStr, value: result.storeJob.jobDesp, valueNormal: result.storeJob.jobDesp.replace(/\*\*\*\*\*/g, ""), title: result.storeJob.jobDesp.split('\n')[0], value1: result.storeJob.jobDesp.split("*****")[1], value2: result.storeJob.jobDesp.split("*****")[3], value3: result.storeJob.jobDesp.split("*****")[5], value4: result.storeJob.jobDesp.split("*****")[6], icon: str.substr(aPos + 1, bPos - aPos - 1), shareTitle: title, aliasName: result.store.aliasName, // 根据详情的查询次数判断是否点过编辑 queryNum: that.data.queryNum += 1 }); 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 } }); console.log(res); if (res.data.data.admin === 1) { that.setData({ isAdmin: true }) } else { that.setData({ isAdmin: false }) } result.storeJob.genderRestrict = commonUtil.getGenderByMinAge(result.storeJob) if (app.isNotEmptyCheck(title)) { title = result.storeJob.jobName; } else { title = result.store.aliasName; } wx.setNavigationBarTitle({ title, }); result.storeJob.workType = commonUtil.getWorkTypeById(result.storeJob.workTypeMulti); if (app.isNotEmptyCheck(result.storeJob.calculationSalaryType)) { result.storeJob.calculationSalaryType = result.storeJob.calculationSalaryType.split("#")[0]; } if (app.isNotEmptyCheck(result.storeJob.paymentSalaryType)) { result.storeJob.paymentSalaryType = result.storeJob.paymentSalaryType.split(","); } if (app.isNotEmptyCheck(result.storeJob.salaryDesp)) { result.storeJob.salaryDesp = result.storeJob.salaryDesp.split(";"); } if (app.isNotEmptyCheck(result.storeJob.workDurationDesp)) { result.storeJob.workDurationDesp = result.storeJob.workDurationDesp.split(";"); } if (app.isNotEmptyCheck(result.storeJob.probationDesp)) { result.storeJob.probationDesp = result.storeJob.probationDesp.split(";"); } if (app.isNotEmptyCheck(result.storeJob.workingLunchDesp)) { result.storeJob.workingLunchDesp = result.storeJob.workingLunchDesp.split(";"); } if (app.isNotEmptyCheck(result.storeJob.dormitoryDesp)) { result.storeJob.dormitoryDesp = result.storeJob.dormitoryDesp.split(";"); } // if (app.isNotEmptyCheck(result.storeJob.foregift)) { // result.storeJob.foregift = result.storeJob.foregift.split(";"); // var arrTemp = []; // result.storeJob.foregift.forEach((item) => { // var arr = item.split(","); // if (app.length > 0) { // arrTemp.push({ // item0: arr[0].split("#")[0], // item1: arr[1].split("#")[0], // }); // } // }); // result.storeJob.foregift = arrTemp; // } else { // result.storeJob.foregift = "无押金"; // } result.store.distance = commonUtil.getDistanceName(result.store.distance); if (app.isNotEmptyCheck(result.store.distance)) { result.store.distance = "丨" + result.store.distance; } that.disposeJobListData(result); if (app.isNotEmptyCheck(result.store.logo)) { result["logo2"] = result.store.logo.replace("http:", "http:"); } else { result["logo2"] = ""; } // console.log(commonUtil.getReturnFeeTypeName1ById(result.storeJob.returnFeeType, result.storeJob.returnFee)); console.log("isout"); that.setData({ fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.storeJob.returnFeeType, result.storeJob.returnFee), }); console.log(result.store); console.log(commonUtil); let citys = commonUtil.setJobInfoPosition(result.store.district) // city = city.replace(/,/g, " | ") // that.getAgencyInfo(res.data.data.storeJob); if (app.isEmptyCheck(res.data.data.storeJob.handoverInfo)) { that.setData({ djxx: "暂无对接信息", }); } else { that.setData({ djxx: res.data.data.storeJob.handoverInfo, }); } console.log(result.storeJob); for (let key in result.storeJob) { // console.log(typeof(result.storeJob[key])) // foo, bar if (result.storeJob[key] === "") { result.storeJob[key] = "-"; } // console.log(typeof(result.storeJob[key]) == "string"); // console.log(typeof(result.storeJob[key]) == string); if (typeof (result.storeJob[key]) == "string") { result.storeJob[key] = result.storeJob[key].trim(); } // else{ // // result.storeJob[key] = result.storeJob[key].trim(); // } } if (result.storeImage.length > 4) { result.storeImage = result.storeImage.splice(0, 4) } // result.storeImage = res.data.data.imageList.splice(0,4) that.setData({ jobDetail: result, supplier: result.supplier, citys: citys || "-", allShow: true, onSiteInfoTel: that.handlerStr(result.storeJob.onSiteInfo), addressNew: result.store.district.replace(/,/g, "") + result.store.detailPosition, }); that.data.jobDetail.storeJob["storeName"] = that.data.jobDetail.store.storeName; that.showSexAge(); that.showReturnFeeType() wx.hideLoading({ success: (res) => { }, }) // setTimeout(() => { //厂区简介高度判断 // let query = wx.createSelectorQuery(); // query.select('.dtHeight').boundingClientRect(rect=>{ // let height = rect.height; // console.log(height); // that.setData({ // jjHeight:height // }) // }).exec(); // }, 200) } }, }); }, showReturnFeeType () { var that = this; var str = ""; console.log(app.isNotEmptyCheck(that.data.jobDetail.storeJob.returnFeeType) && app.isNotEmptyCheck(that.data.jobDetail.storeJob.returnFee)); console.log(that.data.jobDetail.storeJob.returnFee); // console.log(commonUtil.getReturnFeeTypeName1ById(that.data.jobDetail.storeJob.returnFeeType)) console.log(commonUtil.getReturnFeeTypeName1ById(that.data.jobDetail.storeJob.returnFeeType, commonUtil.moneyToFixed(that.data.jobDetail.storeJob.returnFee * 100))) if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.returnFeeType) && app.isNotEmptyCheck(that.data.jobDetail.storeJob.returnFee)) { str = commonUtil.getReturnFeeTypeName1ById(that.data.jobDetail.storeJob.returnFeeType, commonUtil.moneyToFixed(that.data.jobDetail.storeJob.returnFee * 100)); that.setData({ showReturnFeeType: str }) } else if (that.data.jobDetail.storeJob.returnFeeType == 7) { str = commonUtil.getReturnFeeTypeNameById(that.data.jobDetail.storeJob.returnFeeType); that.setData({ showReturnFeeType: str }) } else { that.setData({ showReturnFeeType: '-' }) } // return str; }, showSexAge () { var that = this; var manStr = ""; var womanStr = ""; if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeMan) || app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeMan)) { manStr = "男 "; } if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeMan)) { manStr = manStr + that.data.jobDetail.storeJob.minAgeMan; } if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeMan)) { manStr = manStr + "-" + that.data.jobDetail.storeJob.maxAgeMan; } if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeWoman) || app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeWoman)) { womanStr = "女 "; } if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeWoman)) { womanStr = womanStr + that.data.jobDetail.storeJob.minAgeWoman; } if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeWoman)) { womanStr = womanStr + "-" + that.data.jobDetail.storeJob.maxAgeWoman; } if (womanStr != "") { manStr = manStr + `${manStr == "" ? "" : ";"}` + womanStr; } that.setData({ showSexAgeText: manStr + (that.data.jobDetail.storeJob.genderRemark ? "," + that.data.jobDetail.storeJob.genderRemark : ""), }); }, /** * 处理后台返回的职位列表 */ disposeJobListData (jobDetail) { var that = this; // item["workType"] = commonUtil.getWorkTypeById( // item.workTypeMulti // ); // if (app.isNotEmptyCheck(item.distance)) { // item["distanceKm"] = commonUtil.getDistanceName( // item.distance // ); // } //年龄 var ageStr = ""; if (app.isNotEmptyCheck(jobDetail.storeJob.minAge) && app.isNotEmptyCheck(jobDetail.storeJob.maxAge)) { ageStr = jobDetail.storeJob.minAge + "-" + jobDetail.storeJob.maxAge + "岁"; } else if (app.isNotEmptyCheck(jobDetail.storeJob.minAge)) { ageStr = jobDetail.storeJob.minAge + "岁以上"; } else if (app.isNotEmptyCheck(jobDetail.storeJob.maxAge)) { ageStr = jobDetail.storeJob.maxAge + "岁以下"; } jobDetail.storeJob["age"] = ageStr; //时薪 // var hourlyPayStr = ""; var hasHourlyPay = true; console.log(jobDetail.storeJob); // if (app.isNotEmptyCheck(jobDetail.storeJob.hourlyPay)) { // hourlyPayStr = jobDetail.storeJob.hourlyPay + "元/小时"; // hasHourlyPay = true; // } else if (app.isNotEmptyCheck(jobDetail.storeJob.dayPay)) { // hourlyPayStr = jobDetail.storeJob.dayPay + "元/日"; // hasHourlyPay = true; // } else { // if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) { // if (jobDetail.storeJob.minMonthlyPay == jobDetail.storeJob.maxMonthlyPay) { // hourlyPayStr = jobDetail.storeJob.minMonthlyPay; // } else { // hourlyPayStr = jobDetail.storeJob.minMonthlyPay + "-" + jobDetail.storeJob.maxMonthlyPay; // } // } else if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay)) { // hourlyPayStr = jobDetail.storeJob.minMonthlyPay; // } else if (app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) { // hourlyPayStr = jobDetail.storeJob.maxMonthlyPay; // } // } // if (app.isNotEmptyCheck(jobDetail.storeJob.dayPay)){ // } // if (app.isNotEmptyCheck(jobDetail.storeJob.salaryClassify) && app.isNotEmptyCheck(jobDetail.storeJob.salaryClassifyValue)) { jobDetail.storeJob["hourlyPay"] = commonUtil.getSalaryClassifyValue(jobDetail.storeJob.salaryClassify, jobDetail.storeJob.salaryClassifyValue); // } //月薪 var monthlyPayStr = ""; if (hasHourlyPay) { if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) { if (jobDetail.storeJob.minMonthlyPay == jobDetail.storeJob.maxMonthlyPay) { monthlyPayStr = jobDetail.storeJob.minMonthlyPay; } else { monthlyPayStr = jobDetail.storeJob.minMonthlyPay + "-" + jobDetail.storeJob.maxMonthlyPay; } } else if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay)) { monthlyPayStr = jobDetail.storeJob.minMonthlyPay; } else if (app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) { monthlyPayStr = jobDetail.storeJob.maxMonthlyPay; } } jobDetail.storeJob["monthlyPay"] = monthlyPayStr; //地址深圳丨龙岗区丨 var districtStr = ""; if (app.isNotEmptyCheck(jobDetail.storeJob.district)) { var districtArr = jobDetail.storeJob.district.split(","); if (districtArr.length < 3) { districtStr = districtArr[districtArr.length - 1]; } else { districtStr = districtArr[1] + "丨" + districtArr[2]; } //districtStr = districtArr[1] + '丨' + districtArr[2]; } jobDetail.storeJob["districtStr"] = districtStr; jobDetail.storeJob["districtDetail"] = commonUtil.getStoreAddress(jobDetail.storeJob.district, jobDetail.storeJob.detailPosition); //职位特色 if (app.isNotEmptyCheck(jobDetail.storeJob.jobSpecialLabelNames)) { jobDetail.storeJob["jobSpecialLabelNames"] = that.getJobSpecialLabelNamesArray(jobDetail.storeJob.jobSpecialLabelNames); } // if (app.isNotEmptyCheck(jobDetail.storeJob.jobRequestLabelNames)) { // jobDetail.storeJob['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.storeJob.jobRequestLabelNames); // } }, getJobSpecialLabelNamesArray (jobSpecialLabelNames) { if (app.isNotEmptyCheck(jobSpecialLabelNames)) { return jobSpecialLabelNames.split(", "); } return []; }, getJobRequestLabelNamesArray (jobRequestLabelNames) { console.log(jobRequestLabelNames); if (app.isNotEmptyCheck(jobRequestLabelNames)) { return jobRequestLabelNames.split(", "); } return []; }, goSimilar () { var that = this; console.log(that.data.jobDetail); console.log(that.data.jobDetail.storeJob.jobLabelId); wx.navigateTo({ url: "../similar/index?brandId=" + that.data.jobDetail.store.brandId + "&jobLabelId=" + that.data.jobDetail.storeJob.jobLabelId + "&classify=99", }); }, /** * 生命周期函数--监听页面隐藏 */ onHide () { }, /** * 生命周期函数--监听页面卸载 */ onUnload () { console.log(this.data.queryNum); var pages = getCurrentPages(); var currPage = pages[pages.length - 1]; // 当前页面 var prevPage = pages[pages.length - 2]; // 上一个页面 if (this.data.queryNum > 1) { if (app.isNotEmptyCheck(prevPage)) { prevPage.setData({ hasChange: true }); } } else { if (app.isNotEmptyCheck(prevPage)) { prevPage.setData({ hasChange: false }); } } }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom () { }, /** * 用户点击右上角分享 */ onShareAppMessage () { }, xzDetail () { wx.navigateTo({ url: './xzDetail/index', }) }, fwfDetail () { wx.navigateTo({ url: './fwfDetail/index', }) }, sexAge () { wx.navigateTo({ url: './sexAge/index', }) }, xzffDetail () { wx.navigateTo({ url: './xzffDetail/index', }) }, editAddress () { // console.log(this.data.jobDetail); wx.navigateTo({ url: './editAddress/index', }) }, editImg () { wx.navigateTo({ url: './editImg/index', }) }, editIdCard () { wx.navigateTo({ url: './idCardEdit/index', }) }, editSpecialRadio (e) { let curr = e.currentTarget.dataset.title; let namestr = e.currentTarget.dataset.namestr; wx.navigateTo({ url: './editSpecialRadio/index?title='+curr + "&name=" + namestr, }) }, editYnzz () { wx.navigateTo({ url: './ynzzEdit/index', }) }, editZhengceDetail () { wx.navigateTo({ url: './zhengceDetail/index', }) }, })