注释log

cyl/master-apply
wangxia 2 months ago
parent 6d4a4e78fb
commit bba2525e2f

@ -2,15 +2,16 @@
<view class="g-components-yi-list-job g_bg_f_5"> <view class="g-components-yi-list-job g_bg_f_5">
<g-loading paddingBottom="g_pb_120" v-if="loading && speed == -1" /> <g-loading paddingBottom="g_pb_120" v-if="loading && speed == -1" />
<!-- loading && speed == -1 --> <!-- loading && speed == -1 -->
<view v-if="!loading && speed == 0" style="width: calc(100% - 20px); margin: 0 auto" class="g_h_all g_flex_row_center"> <view v-if="!loading && speed == 0 && isLogin" style="width: calc(100% - 20px); margin: 0 auto" class="g_h_all g_flex_row_center">
<!-- <view class="g_h_all" style="" v-if="!isLogin"> <!-- <view class="g_h_all" style="" v-if="!isLogin">
<unloginInfo></unloginInfo> <unloginInfo></unloginInfo>
</view> --> </view> -->
<rh-empty :text="emptyText" style="margin-top: 30px" /> <rh-empty :text="emptyText" style="margin-top: 30px" />
<view class="g_mt_32" v-if="isShowLoginBtn"> <!-- <view class="g_mt_32" v-if="isShowLoginBtn">
<rh-button :btnText="'登录查看'" type="primary" @clickBtn="goLogin" /> <rh-button :btnText="'登录查看'" type="primary" @clickBtn="goLogin" />
</view> </view> -->
</view> </view>
<view v-if="speed > 0" class="link"> <view v-if="speed > 0" class="link">
<block class="" v-for="(item, index) in jobArray" :key="index"> <block class="" v-for="(item, index) in jobArray" :key="index">
<view class="item g_position_rela g_mb_10 g_ml_12 g_mr_12 g_bg_f g_radius_8 g_border_e_b" :class="from == 'share' ? 'g_pl_32' : ''" hover-class="thover"> <view class="item g_position_rela g_mb_10 g_ml_12 g_mr_12 g_bg_f g_radius_8 g_border_e_b" :class="from == 'share' ? 'g_pl_32' : ''" hover-class="thover">

@ -30,7 +30,7 @@
{{ value ? value : "-" }} {{ value ? value : "-" }}
</view> </view>
<view v-if="afterType == 'time'" class="g_flex_1 310"> <view v-if="afterType == 'time'" class="g_flex_1 310">
<g-panel-time :timeval="value" @confirmChooseTime="getChooseTime" /> <g-panel-time :timeval="value" :from="from" @confirmChooseTime="getChooseTime" />
</view> </view>
<view v-if="afterType == 'list'"> <view v-if="afterType == 'list'">
<view> <view>

@ -1,6 +1,6 @@
<template> <template>
<div class="g-components-item"> <div class="g-components-item">
<div class="m-set g_bg_f g_radius_8" :style="{ overflow: 'hidden'}"> <div class="m-set g_bg_f g_radius_8" :style="{ overflow: 'hidden' }">
<block v-for="(item, index) in list" :key="index"> <block v-for="(item, index) in list" :key="index">
<div <div
class="item g_flex_row_start" class="item g_flex_row_start"
@ -139,7 +139,7 @@
<div class="" v-if="item.tip == 'slot-choose&input-address'"> <div class="" v-if="item.tip == 'slot-choose&input-address'">
<view v-if="item.uneditable" class="g_br_6 g_text_r g_pt_8 g_pb_8"> <view v-if="item.uneditable" class="g_br_6 g_text_r g_pt_8 g_pb_8">
{{ item.value || '-' }} {{ item.value || "-" }}
</view> </view>
<view class="form-new-choose g_flex_rowRight_columnCenter" v-else> <view class="form-new-choose g_flex_rowRight_columnCenter" v-else>
<u-input v-model="item.value" @input="(e) => handleAddress(e, item, index)" class="g_flex_1 g_ml_8" maxlength="1000" type="textarea" :placeholder="item.placeholder" placeholder-style="color:#999;line-height:24px" :clearable="false" :customStyle="{ fontSize: '16px', 'text-align': 'right', 'min-height': '24px', 'line-height': '24px' }" /> <u-input v-model="item.value" @input="(e) => handleAddress(e, item, index)" class="g_flex_1 g_ml_8" maxlength="1000" type="textarea" :placeholder="item.placeholder" placeholder-style="color:#999;line-height:24px" :clearable="false" :customStyle="{ fontSize: '16px', 'text-align': 'right', 'min-height': '24px', 'line-height': '24px' }" />
@ -157,7 +157,8 @@
</div> </div>
<!-- 时间 --> <!-- 时间 -->
<div class="form-new-time g_flex_rowRight_columnCenter g_w_all" v-if="item.tip == 'slot-time'"> <div class="form-new-time g_flex_rowRight_columnCenter g_w_all" v-if="item.tip == 'slot-time'">
<g-panel-detail-item :from="item.from" style="width: 100%" label=" " :isShowBottom="false" :value="item.value" afterType="time" @confirmChooseTime="handleMianshi" /> <g-panel-time :timeval="item.value" :from="item.from" @confirmChooseTime="handleMianshi" />
<!-- <g-panel-detail-item :from="item.from" style="width: 100%" label=" " :isShowBottom="false" :value="item.value" afterType="time" @confirmChooseTime="handleMianshi" /> -->
</div> </div>
<!-- 附件上传 --> <!-- 附件上传 -->
<div class="g_flex_rowRight_columnCenter g_w_all" @click="chooseImgType('img')" v-if="item.tip == 'slot-update-file'"> <div class="g_flex_rowRight_columnCenter g_w_all" @click="chooseImgType('img')" v-if="item.tip == 'slot-update-file'">
@ -240,7 +241,7 @@
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
<div class="g_flex_row_center"> <div class="g_flex_row_center">
<rh-button primaryColor='#00b666' btnText="确定" type="primary" @clickBtn="submitZhengce" /> <rh-button primaryColor="#00b666" btnText="确定" type="primary" @clickBtn="submitZhengce" />
</div> </div>
</slot> </slot>
</g-panel-fixed> </g-panel-fixed>
@ -385,7 +386,7 @@ export default {
}, },
// //
handleIDcard(e, $item, $index) { handleIDcard(e, $item, $index) {
console.log('123123132',e); console.log("123123132", e);
this.$emit("changeIDcard", e); this.$emit("changeIDcard", e);
}, },
// //
@ -441,11 +442,11 @@ export default {
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
that.$emit("chooseAddress", { that.$emit("chooseAddress", {
district:'', district: "",
address:'', address: "",
addressName:'', addressName: "",
lat:'', lat: "",
lng:'', lng: "",
}); });
// #endif // #endif
}, },

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<view class="g_flex_row_end flex_center" @click="showPop"> <view class="g_flex_row_end flex_center" @click="showPop" v-if="from == 'reservation-time'">
<view class="g_fs_16"> <view class="g_fs_16">
{{ !!currentTime ? currentTime : "----" }} {{ !!currentTime ? currentTime : "----" }}
</view> </view>
@ -8,8 +8,16 @@
<i class="iconfont icon-rili g_c_9 g_ml_6"></i> <i class="iconfont icon-rili g_c_9 g_ml_6"></i>
</view> </view>
</view> </view>
<u-popup v-model="showPopFlag" mode="bottom" z-index="999999" border-radius="12" :closeable="true" :mask-close-able="true" @close="closePop"> <picker v-else mode="multiSelector" class="g_flex_column_center" :range="dateTimeArray" :value="dateTime" :z-index="99999" @change="changeDateTime" @columnchange="changeDateTimeColumn($event)" style="color: #333" :disabled="disabled">
<view class="g_p_12"> <view class="g_flex_row_end flex_center">
<view class="g_fs_16">{{ !!currentTime ? currentTime : "----" }}</view>
<view class>
<i class="iconfont icon-rili g_c_9 g_ml_6"></i>
</view>
</view>
</picker>
<u-popup v-model="showPopFlag" mode="center" z-index="999999" border-radius="12" :closeable="true" :mask-close-able="true" @close="closePop">
<view class="g_p_12" style="width: 85vw">
<view class="g_fs_16 g_fw_600 g_mb_16">选择时间</view> <view class="g_fs_16 g_fw_600 g_mb_16">选择时间</view>
<view class="g_p_9 g_border_d9 g_flex_row_center g_radius_6"> <view class="g_p_9 g_border_d9 g_flex_row_center g_radius_6">
<picker mode="multiSelector" class="g_flex_column_center flex_center3 g_w_all" :range="dateTimeArray" :value="dateTime" @change="changeDateTime" @columnchange="changeDateTimeColumn($event)" style="color: #333"> <picker mode="multiSelector" class="g_flex_column_center flex_center3 g_w_all" :range="dateTimeArray" :value="dateTime" @change="changeDateTime" @columnchange="changeDateTimeColumn($event)" style="color: #333">
@ -30,7 +38,7 @@
</view> </view>
</template> </template>
</view> </view>
<view class="g_h_32"></view> <view class="g_h_12"></view>
<!-- <view class="g_flex_row_center g_mt_12"> <!-- <view class="g_flex_row_center g_mt_12">
<view class="g_mr_12"> <view class="g_mr_12">
<rh-button primaryColor='#00b666' btnText="取消" type="default" size="small" @clickBtn="showPopFlag = false"></rh-button> <rh-button primaryColor='#00b666' btnText="取消" type="default" size="small" @clickBtn="showPopFlag = false"></rh-button>
@ -98,6 +106,12 @@ export default {
return ""; return "";
}, },
}, },
from: {
type: String,
default: () => {
return "";
},
},
}, },
created() { created() {
console.log("create 是否触发", this.timeval); console.log("create 是否触发", this.timeval);
@ -107,17 +121,17 @@ export default {
console.log("watch 是否触发", oldVal, "--", newVal); console.log("watch 是否触发", oldVal, "--", newVal);
this.currentTime = oldVal ? oldVal : newVal; this.currentTime = oldVal ? oldVal : newVal;
}, },
showPopFlag(oldVal, newVal) { // showPopFlag(oldVal, newVal) {
if (oldVal) { // if (oldVal) {
uni.hideTabBar({ // uni.hideTabBar({
animation: false, // animation: false,
}); // });
} else { // } else {
uni.showTabBar({ // uni.showTabBar({
animation: false, // animation: false,
}); // });
} // }
}, // },
}, },
mounted() { mounted() {
var obj = dateTimePicker.dateTimePicker(this.startYear, this.endYear, this.currentTime); var obj = dateTimePicker.dateTimePicker(this.startYear, this.endYear, this.currentTime);
@ -156,6 +170,8 @@ export default {
}, },
showPop() { showPop() {
this.showPopFlag = true; this.showPopFlag = true;
if (this.from) {
}
this.quickSelectTime.forEach((item) => { this.quickSelectTime.forEach((item) => {
if (item.value == this.currentTime) { if (item.value == this.currentTime) {

@ -4,8 +4,9 @@
"path": "pages/home/index", "path": "pages/home/index",
"style": { "style": {
"navigationBarTitleText": "报名助手", "navigationBarTitleText": "报名助手",
"backgroundColor": "#fff", "backgroundColor": "#ededed",
"backgroundColorTop": "#fff" "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed"
} }
}, },
{ {

@ -399,7 +399,7 @@ $cellHeight: 72px;
font-size: 12px; font-size: 12px;
color: #cccccc; color: #cccccc;
text-align: right; text-align: right;
width: 90px; width: 100px;
flex-shrink: 0; flex-shrink: 0;
} }
} }

@ -114,10 +114,10 @@ export default {
getFilterDataNew: { getFilterDataNew: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
var that = this; var that = this;
console.log("筛选组件 newValue", JSON.parse(JSON.stringify(newValue))); // console.log(" newValue", JSON.parse(JSON.stringify(newValue)));
console.log("筛选组件 oldValue", JSON.parse(JSON.stringify(oldValue))); // console.log(" oldValue", JSON.parse(JSON.stringify(oldValue)));
// if (newValue != oldValue) { // if (newValue != oldValue) {
console.log("筛选组件:有变化"); // console.log("");
if (newValue.ageRangeStr != "" && newValue.ageRangeStr != "16-60") { if (newValue.ageRangeStr != "" && newValue.ageRangeStr != "16-60") {
this.rangeValue = newValue.ageRangeStr.split("-").map((item) => Number(item)); this.rangeValue = newValue.ageRangeStr.split("-").map((item) => Number(item));
} else { } else {
@ -130,7 +130,7 @@ export default {
item.active = 0; item.active = 0;
this.filterData.sex[0].active = -1; this.filterData.sex[0].active = -1;
}); });
console.log("this.filterData.sex", this.filterData.sex); // console.log("this.filterData.sex", this.filterData.sex);
} else { } else {
this.filterData.sex.forEach((item) => { this.filterData.sex.forEach((item) => {
item.active = 0; item.active = 0;
@ -181,13 +181,13 @@ export default {
item.active = 0; item.active = 0;
this.filterData.sex[0].active = -1; this.filterData.sex[0].active = -1;
}); });
console.log("this.filterData.sex", this.filterData.sex); // console.log("this.filterData.sex", this.filterData.sex);
} else { } else {
this.filterData.sex.forEach((item) => { this.filterData.sex.forEach((item) => {
item.active = 0; item.active = 0;
this.filterData.sex[Number(newValue.sex)].active = newValue.sex; this.filterData.sex[Number(newValue.sex)].active = newValue.sex;
}); });
console.log("newValue.sex +++++++++++++++++++++ newValue.sex", newValue.sex); // console.log("newValue.sex +++++++++++++++++++++ newValue.sex", newValue.sex);
this.sex = newValue.sex; this.sex = newValue.sex;
} }
if (newValue.labelNames) { if (newValue.labelNames) {
@ -204,7 +204,7 @@ export default {
}); });
}); });
} }
console.log("this.filterData.jobFilter", that.filterData.jobFilter); // console.log("this.filterData.jobFilter", that.filterData.jobFilter);
} }
that.toList(); that.toList();
} else { } else {
@ -215,7 +215,7 @@ export default {
digui(); digui();
} }
// } else { // } else {
// console.log(""); // // console.log("");
// } // }
}, },
deep: true, deep: true,
@ -316,21 +316,21 @@ export default {
}, },
methods: { methods: {
hideDrawer() { hideDrawer() {
console.log('123123'); // console.log('123123');
this.$emit("hideDrawer", ""); this.$emit("hideDrawer", "");
}, },
format(val) { format(val) {
return val; return val;
}, },
handleRangeChange(e) { handleRangeChange(e) {
console.log(e); // console.log(e);
this.rangeValue = e; this.rangeValue = e;
this.ageRangeStr = e[0] + "-" + e[1]; this.ageRangeStr = e[0] + "-" + e[1];
}, },
doNothing() {}, doNothing() {},
toList() { toList() {
var that = this; var that = this;
console.log("this.sex", this.sex); // console.log("this.sex", this.sex);
this.filterObj["sex"] = this.sex; this.filterObj["sex"] = this.sex;
this.filterObj["ageRangeStr"] = this.ageRangeStr; this.filterObj["ageRangeStr"] = this.ageRangeStr;
this.jobSpecialLabelIds = []; this.jobSpecialLabelIds = [];
@ -351,12 +351,12 @@ export default {
// id // id
const jobCategoryLabelObjects = that.filterData.classifyList.filter((item) => this.jobCategoryLabelIds.includes(item.id)); const jobCategoryLabelObjects = that.filterData.classifyList.filter((item) => this.jobCategoryLabelIds.includes(item.id));
console.log(jobCategoryLabelObjects); // console.log(jobCategoryLabelObjects);
// id() // id()
const jobSpecialLabelObjects = that.totalList.filter((item) => this.jobSpecialLabelIds.includes(item.id)); const jobSpecialLabelObjects = that.totalList.filter((item) => this.jobSpecialLabelIds.includes(item.id));
console.log(jobSpecialLabelObjects); // console.log(jobSpecialLabelObjects);
this.filterObj.jobCategoryLabelObjects = jobCategoryLabelObjects; this.filterObj.jobCategoryLabelObjects = jobCategoryLabelObjects;
this.filterObj.jobSpecialLabelObjects = jobSpecialLabelObjects; this.filterObj.jobSpecialLabelObjects = jobSpecialLabelObjects;
@ -365,7 +365,7 @@ export default {
}, },
clearFilter() { clearFilter() {
var that = this; var that = this;
console.log("cleclecleclecleclecle"); // console.log("cleclecleclecleclecle");
this.filterObj["sex"] = -1; this.filterObj["sex"] = -1;
this.filterObj["ageRangeStr"] = ""; this.filterObj["ageRangeStr"] = "";
this.rangeValue = [16, 60]; this.rangeValue = [16, 60];
@ -387,7 +387,7 @@ export default {
item.active = 0; item.active = 0;
}); });
this.clearArray(); this.clearArray();
console.log(that.filterData); // console.log(that.filterData);
setTimeout(() => { setTimeout(() => {
this.rangeValue = [16, 60]; this.rangeValue = [16, 60];
@ -395,7 +395,7 @@ export default {
}, 100); }, 100);
}, },
clearArray(type) { clearArray(type) {
console.log(type); // console.log(type);
if (type || type == 0) { if (type || type == 0) {
this["clearArray" + type](); this["clearArray" + type]();
} else { } else {
@ -440,7 +440,7 @@ export default {
that.api.yi_job_class_new, that.api.yi_job_class_new,
{ type: 90, industry: 2, hasJob: 1 }, { type: 90, industry: 2, hasJob: 1 },
(res) => { (res) => {
console.log(res); // console.log(res);
that.allSpecial = res; that.allSpecial = res;
that.allSpecial.forEach((item) => { that.allSpecial.forEach((item) => {
item.active = 0; item.active = 0;
@ -458,7 +458,7 @@ export default {
}); });
that.totalList = [...this.filterData.jobFilter.tagArray0, ...this.filterData.jobFilter.tagArray1, ...this.filterData.jobFilter.tagArray2, ...this.filterData.jobFilter.tagArray3, ...this.filterData.jobFilter.tagArray4]; that.totalList = [...this.filterData.jobFilter.tagArray0, ...this.filterData.jobFilter.tagArray1, ...this.filterData.jobFilter.tagArray2, ...this.filterData.jobFilter.tagArray3, ...this.filterData.jobFilter.tagArray4];
console.log(that.totalList); // console.log(that.totalList);
// that.filterData.classifyList = res.labels.map(label => ({ // that.filterData.classifyList = res.labels.map(label => ({
// ...label, // ...label,
@ -466,7 +466,7 @@ export default {
// })); // }));
}, },
(res) => { (res) => {
console.log(res); // console.log(res);
} }
); );
}, },
@ -485,7 +485,7 @@ export default {
// })); // }));
// }, // },
// (res) => { // (res) => {
// console.log(res); // // console.log(res);
// } // }
// ); // );
// }, // },
@ -517,9 +517,9 @@ export default {
this.jobCategoryLabelIds.push(id); this.jobCategoryLabelIds.push(id);
} }
console.log(this.jobCategoryLabelIds); // console.log(this.jobCategoryLabelIds);
} else { } else {
console.log("id", id); // console.log("id", id);
if (this.filterData.jobFilter[str][index].active == id) { if (this.filterData.jobFilter[str][index].active == id) {
// //
this.filterData.jobFilter[str][index].active = 0; this.filterData.jobFilter[str][index].active = 0;
@ -528,7 +528,7 @@ export default {
this.filterData.jobFilter[str][index].active = id; this.filterData.jobFilter[str][index].active = id;
// this.jobSpecialLabelIds.push(id); // this.jobSpecialLabelIds.push(id);
} }
console.log("this.filterData.jobFilter[str]", this.filterData.jobFilter[str]); // console.log("this.filterData.jobFilter[str]", this.filterData.jobFilter[str]);
} }
}, },
goAnchor(item) { goAnchor(item) {

@ -3,8 +3,10 @@
<div v-show="computeCode == -1" class="g_flex_column_center"> <div v-show="computeCode == -1" class="g_flex_column_center">
<g-loading marginBottom="g_mb_130" /> <g-loading marginBottom="g_mb_130" />
</div> </div>
<view class="g_h_all" v-show="!isLogin">
<div v-show="computeCode > -1"> <rh-login-false-list />
</view>
<div v-show="computeCode > -1 && isLogin">
<!-- 列表区 --> <!-- 列表区 -->
<!-- <div @click="showPop = true"> 1123 </div> --> <!-- <div @click="showPop = true"> 1123 </div> -->
<!-- `calc(${navInfo.windowHeight}px - ${navInfo.navigationBarHeight + navInfo.statusBarHeight}px)` --> <!-- `calc(${navInfo.windowHeight}px - ${navInfo.navigationBarHeight + navInfo.statusBarHeight}px)` -->
@ -98,7 +100,7 @@
</div> </div>
<div class="g_h_8"></div> <div class="g_h_8"></div>
<g-list-job from="home" @uploadList="getList" bg="#ededed" class="" :list="query.list" :active="tabInfo.active" @shareJob="shareJob" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" :emptyText="isLogin ? (tabInfo.active == 0 || tabInfo.active == 2 ? '嘿,这里还没有数据呢' : '您还未收藏职位,快去试试收藏职位吧') : '你好,此服务仅限人力资源行业受邀商家登录,请确认'" /> <g-list-job from="home" @uploadList="getList" bg="#ededed" class="" :list="query.list" :active="tabInfo.active" @shareJob="shareJob" :loading="loading" :speed="speed" :query="query" :isShowLoginBtn="isLogin ? false : true" :emptyText="isLogin ? (tabInfo.active == 0 || tabInfo.active == 2 ? '嘿,这里还没有数据呢' : '您还未收藏职位,快去试试收藏职位吧') : '您还有没有登录,请登录后查看'" />
</div> </div>
</div> </div>
</scroll-view> </scroll-view>
@ -158,7 +160,7 @@ export default {
let that = this; let that = this;
that.navInfo = that.G.getNavInfo(); that.navInfo = that.G.getNavInfo();
console.log('uni.getStorageSync("apply-token")', uni.getStorageSync("apply-token")); console.log('uni.getStorageSync("apply-token")', uni.getStorageSync("apply-token"));
that.isLogin = uni.getStorageSync("apply-token"); that.isLogin = uni.getStorageSync("apply-token") ? true : false;
that.tabInfo.active = 0; that.tabInfo.active = 0;
if (!that.isLogin) { if (!that.isLogin) {
@ -328,6 +330,7 @@ export default {
computed: {}, computed: {},
onShow() { onShow() {
let that = this; let that = this;
this.isLogin = uni.getStorageSync("apply-token") ? true : false;
if (that.isLogin) { if (that.isLogin) {
this.agencyInfo = uni.getStorageSync("agencyInfo"); this.agencyInfo = uni.getStorageSync("agencyInfo");
this.userInfo = uni.getStorageSync("apply-userinfo"); this.userInfo = uni.getStorageSync("apply-userinfo");
@ -882,7 +885,7 @@ export default {
} }
}, },
searchJob() { searchJob() {
console.log(123123); console.log(123123);
this.query.list = []; this.query.list = [];
this.query.page = 1; this.query.page = 1;
this.speed = -1; this.speed = -1;

@ -92,7 +92,7 @@
</view> </view>
<view class="g_h_12"></view> <view class="g_h_12"></view>
<view class="g_flex_row_center g_pl_16 g_pr_16" style="z-index: 99"> <view class="g_flex_row_center g_pl_16 g_pr_16" style="z-index: 99">
<rh-button primaryColor='#00b666' btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" /> <rh-button primaryColor="#00b666" btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
</view> </view>
<view class="g_h_32"></view> <view class="g_h_32"></view>
<!-- <g-panel-fixed v-if="false"> <!-- <g-panel-fixed v-if="false">
@ -210,7 +210,7 @@ export default {
}, },
data() { data() {
return { return {
isLogin: uni.getStorageSync("apply-token") ? true : false, isLogin: false,
detailRes: {}, detailRes: {},
IS_CREATOR: false, IS_CREATOR: false,
jobType: 2, jobType: 2,
@ -246,6 +246,7 @@ export default {
onShow() { onShow() {
let that = this; let that = this;
that.pageSpeed = -1; that.pageSpeed = -1;
this.isLogin = uni.getStorageSync("apply-token") ? true : false;
}, },
methods: { methods: {
getTownsManInfo(info) { getTownsManInfo(info) {

@ -1,5 +1,5 @@
<template> <template>
<gListApply :status="menuActive" :hasRequested.sync="hasRequested"></gListApply> <gListApply :status="menuActive" :hasRequested.sync="hasRequested"></gListApply>
</template> </template>
<script> <script>
@ -119,7 +119,7 @@ export default {
isLogin: false, isLogin: false,
loginInfo: {}, loginInfo: {},
navInfo: {}, navInfo: {},
hasRequested:false hasRequested: false,
}; };
}, },
onHide() { onHide() {
@ -162,7 +162,6 @@ export default {
// that.isHaveOrder = 0; // that.isHaveOrder = 0;
// that.tabActive = 0; // that.tabActive = 0;
// } // }
that.isLogin = uni.getStorageSync("apply-token") ? true : false;
// // console.log("that.isLogin", that.isLogin); // // console.log("that.isLogin", that.isLogin);
// that.loginInfo = uni.getStorageSync("apply-userinfo"); // that.loginInfo = uni.getStorageSync("apply-userinfo");
@ -180,12 +179,13 @@ export default {
}, },
onShow() { onShow() {
let that = this; let that = this;
this.isLogin = uni.getStorageSync("apply-token") ? true : false;
if (that.isLogin) { if (that.isLogin) {
if (uni.getStorageSync("applyType") || uni.getStorageSync("applyType") === 0) { if (uni.getStorageSync("applyType") || uni.getStorageSync("applyType") === 0) {
that.menuActive = uni.getStorageSync("applyType"); that.menuActive = uni.getStorageSync("applyType");
uni.removeStorageSync("applyType"); uni.removeStorageSync("applyType");
} }
this.hasRequested = false this.hasRequested = false;
// this.getList(); // this.getList();
} }
this.getGZHInfo(); this.getGZHInfo();

@ -29,9 +29,9 @@
result: '', result: '',
value: info.name, value: info.name,
path: '', path: '',
tip: 'slot-upID', tip: 'slot-name',
img: info.idCardImageUrl, img: info.idCardImageUrl,
placeholder: '手动输入或拍照自动识别 → ', placeholder: '请输入姓名',
type: 'slot', type: 'slot',
pColumn: 8, pColumn: 8,
require: true, require: true,
@ -143,7 +143,7 @@
</template> </template>
<script> <script>
import AiApply from "./components/AiApply.vue"; import AiApply from "../../components/AiApply.vue";
import { nationlist } from "../../utils/nation.js"; import { nationlist } from "../../utils/nation.js";
export default { export default {
components: { components: {

@ -89,8 +89,13 @@
<g-panel-fixed> <g-panel-fixed>
<slot> <slot>
<view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99"> <view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99">
<view class="g_fs_16 g_c_6 g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16" hover-class="thover" @click="goReturn"></view> <div class="" style="width:82px">
<rh-button primaryColor='#00b666' btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" /> <!-- <view class="g_fs_16 g_c_main g_flex_c g_pl_8 g_pr_8 g_radius_6 g_ml_16 g_border_main" hover-class="thover" @click="goReturn"></view> -->
<rh-button primaryColor="#00b666" btnText="取消" size="small_auto" type="default" @clickBtn="goReturn" />
</div>
<div class="g_flex_1 g_flex_row_end">
<rh-button primaryColor="#00b666" btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
</div>
</view> </view>
</slot> </slot>
</g-panel-fixed> </g-panel-fixed>
@ -294,7 +299,7 @@ export default {
pColumn: 12, pColumn: 12,
from: "reservation-time", from: "reservation-time",
}, },
that.updateInfo["interviewAddress"] that.updateInfo["interviewAddress"]
? { ? {
icon: "", icon: "",
label: "面试地址", label: "面试地址",

@ -41,7 +41,7 @@
</view> </view>
</view> </view>
<view class="g_mt_24 g_flex_row_center"> <view class="g_mt_24 g_flex_row_center">
<rh-button primaryColor='#00b666' width="260" height="48" btnText="一键免密登录" type="default" openType="getPhoneNumber" @clickTel="getphonenumber" /> <rh-button primaryColor='#00b666' width="260" height="48" icon="icon-shouji" btnText="手机号快捷登录" type="default" openType="getPhoneNumber" @clickTel="getphonenumber" />
</view> </view>
<!-- #endif --> <!-- #endif -->
</view> </view>

@ -53,7 +53,7 @@ let data = {
imageUrl: image, imageUrl: image,
title: title title: title
}; };
console.log('分享数据:', params) // console.log('分享数据:', params)
return params; return params;
}, },
@ -62,7 +62,7 @@ let data = {
handleConfirm ( handleConfirm (
options options
) { ) {
console.log(options); // console.log(options);
uni.showModal({ uni.showModal({
title: options.title || '', title: options.title || '',
content: options.content || '', content: options.content || '',
@ -131,7 +131,7 @@ let data = {
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: $sourceType, //album 从相册选图camera 使用相机 sourceType: $sourceType, //album 从相册选图camera 使用相机
success: function (res) { success: function (res) {
console.log('选取文件数据:', res) // console.log('选取文件数据:', res)
callback(JSON.stringify(res.tempFilePaths)); callback(JSON.stringify(res.tempFilePaths));
} }
}); });
@ -144,7 +144,7 @@ let data = {
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], //从相册选择 sourceType: ['album', 'camera'], //从相册选择
success: function (res) { success: function (res) {
console.log('选取文件数据:', res) // console.log('选取文件数据:', res)
callback(JSON.stringify(res.tempFilePaths)); callback(JSON.stringify(res.tempFilePaths));
} }
}); });
@ -159,7 +159,7 @@ let data = {
encoding: 'base64', encoding: 'base64',
success: res => { success: res => {
let base64 = 'data:image/jpeg;base64,' + res.data; //不加上这串字符,在页面无法显示 let base64 = 'data:image/jpeg;base64,' + res.data; //不加上这串字符,在页面无法显示
console.log('base64', base64) // console.log('base64', base64)
return base64; return base64;
} }
}) })
@ -168,7 +168,7 @@ let data = {
/* /*
*/ */
setNavStyle ($form = 'default') { setNavStyle ($form = 'default') {
console.log('into setNavStyle'); // console.log('into setNavStyle');
if ($form == 'home') { if ($form == 'home') {
uni.setNavigationBarColor({ uni.setNavigationBarColor({
@ -415,7 +415,7 @@ let data = {
if (item.storeDistrict) { if (item.storeDistrict) {
var districtArr = item.storeDistrict.split(","); var districtArr = item.storeDistrict.split(",");
var districtArr1 = []; var districtArr1 = [];
// console.log(districtArr); // // console.log(districtArr);
districtArr.forEach((item1, index) => { districtArr.forEach((item1, index) => {
if (item1.length != 0) { if (item1.length != 0) {
item1 = item1 + "丨"; item1 = item1 + "丨";
@ -541,7 +541,7 @@ let data = {
} else { } else {
let newArr = [item.minAgeMan, item.maxAgeMan, item.minAgeWoman, item.maxAgeWoman] let newArr = [item.minAgeMan, item.maxAgeMan, item.minAgeWoman, item.maxAgeWoman]
newArr.sort() newArr.sort()
// console.log('newArr', newArr) // // console.log('newArr', newArr)
let minAge = (newArr[0] == 0) ? newArr[2] : newArr[0] let minAge = (newArr[0] == 0) ? newArr[2] : newArr[0]
let maxAge = newArr[3] let maxAge = newArr[3]
item["age"] = minAge + '-' + maxAge + '岁'; item["age"] = minAge + '-' + maxAge + '岁';
@ -632,7 +632,7 @@ let data = {
item["jobDesp"] = item["jobDesp"].replaceAll("*****", ""); item["jobDesp"] = item["jobDesp"].replaceAll("*****", "");
} }
//年龄 //年龄
// console.log(jobList); // // console.log(jobList);
var ageStr = ""; var ageStr = "";
if (that.isNotEmptyCheck(item.minAge) && that.isNotEmptyCheck(item.maxAge)) { if (that.isNotEmptyCheck(item.minAge) && that.isNotEmptyCheck(item.maxAge)) {
ageStr = item.minAge + "-" + item.maxAge + "岁"; ageStr = item.minAge + "-" + item.maxAge + "岁";
@ -689,7 +689,7 @@ let data = {
var districtArr = item.district.split(","); var districtArr = item.district.split(",");
var districtArr1 = []; var districtArr1 = [];
districtArr.forEach((item1, index) => { districtArr.forEach((item1, index) => {
// console.log('item1',item1) // // console.log('item1',item1)
if (item1.length != 0 && index < 2) { if (item1.length != 0 && index < 2) {
item1 = item1 + "丨"; item1 = item1 + "丨";
districtArr1.push(item1); districtArr1.push(item1);
@ -784,28 +784,28 @@ let data = {
var districtArr var districtArr
districtArr = that.isNotEmptyCheck(jobList.district) ? jobList.district.split(",") : jobList.storeDistrict.split(",") districtArr = that.isNotEmptyCheck(jobList.district) ? jobList.district.split(",") : jobList.storeDistrict.split(",")
// console.log(districtArr); // // console.log(districtArr);
var districtArr1 = []; var districtArr1 = [];
// console.log(districtArr); // // console.log(districtArr);
districtArr.forEach((item1, index) => { districtArr.forEach((item1, index) => {
if (item1.length != 0 && index < 2) { if (item1.length != 0 && index < 2) {
item1 = item1 + "丨"; item1 = item1 + "丨";
districtArr1.push(item1); districtArr1.push(item1);
} }
}); });
// console.log(districtArr1); // // console.log(districtArr1);
if (districtArr.length > 3) { if (districtArr.length > 3) {
districtStr = districtArr1[districtArr1.length - 1]; districtStr = districtArr1[districtArr1.length - 1];
} else { } else {
districtStr = districtArr1.join(""); districtStr = districtArr1.join("");
} }
// console.log(districtStr); // // console.log(districtStr);
// console.log(jobList.district); // // console.log(jobList.district);
if (jobList.district == undefined && jobList.storeDistrict == undefined) { if (jobList.district == undefined && jobList.storeDistrict == undefined) {
districtStr = "-丨"; districtStr = "-丨";
} }
} }
// console.log(districtStr); // // console.log(districtStr);
jobList["district"] = districtStr; jobList["district"] = districtStr;
//职位特色 //职位特色
jobList["jobRequestLabelNames"] = that.getjobRequestLabelNamesArray(jobList.jobRequestLabelNames); jobList["jobRequestLabelNames"] = that.getjobRequestLabelNamesArray(jobList.jobRequestLabelNames);
@ -1222,7 +1222,7 @@ let data = {
} else { } else {
info.age = calculationAge - 1 info.age = calculationAge - 1
} }
console.log('info', info); // console.log('info', info);
return info return info
}, },
/** /**
@ -1250,7 +1250,7 @@ let data = {
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
console.log('获取扫码结果:', res.result) // console.log('获取扫码结果:', res.result)
if (res.result) { if (res.result) {
if (res.result.indexOf('=') > -1) { if (res.result.indexOf('=') > -1) {
// 前往详情页 // 前往详情页
@ -1299,7 +1299,7 @@ let data = {
calculateTotalWidth (ctx, segments) { calculateTotalWidth (ctx, segments) {
let totalWidth = 0; let totalWidth = 0;
segments.forEach((segment) => { segments.forEach((segment) => {
console.log('segment', segment); // console.log('segment', segment);
if (segment) { if (segment) {
ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`; ctx.font = `${segment.fontWeight} ${segment.fontSize}px Arial`;
totalWidth += ((ctx.measureText(segment.content).width) + (segment.space || 0)); totalWidth += ((ctx.measureText(segment.content).width) + (segment.space || 0));
@ -1313,7 +1313,7 @@ let data = {
// 计算总宽度 // 计算总宽度
const totalWidth = this.calculateTotalWidth(ctx, textSegments); const totalWidth = this.calculateTotalWidth(ctx, textSegments);
console.log('totalWidth', totalWidth, textSegments); // console.log('totalWidth', totalWidth, textSegments);
// 计算起始X坐标居中位置 // 计算起始X坐标居中位置
const centerX = x; const centerX = x;
const startX = (centerX - totalWidth) / 2; const startX = (centerX - totalWidth) / 2;
@ -1505,7 +1505,7 @@ let data = {
* @params $type 1共享 0 普通 * @params $type 1共享 0 普通
*/ */
setReturnFee (returnFee, returnFeeType, $type) { setReturnFee (returnFee, returnFeeType, $type) {
// console.log('here'); // // console.log('here');
let servetype = '-', $num = 1; let servetype = '-', $num = 1;
if ($type == 1) { if ($type == 1) {
$num = 1; $num = 1;
@ -1533,7 +1533,7 @@ let data = {
}, },
yijobCopy (recordList) { yijobCopy (recordList) {
var that = this; var that = this;
console.log(recordList); // console.log(recordList);
if (recordList && recordList.length > 0) { if (recordList && recordList.length > 0) {
recordList.forEach((item, index) => { recordList.forEach((item, index) => {
//月薪 //月薪
@ -1608,7 +1608,7 @@ let data = {
*/ */
getGenderByMinAge (res) { getGenderByMinAge (res) {
// console.log("==================", res); // // console.log("==================", res);
let str = ""; let str = "";
if (res.minAgeMan && res.minAgeWoman) { if (res.minAgeMan && res.minAgeWoman) {
str = "男女不限"; str = "男女不限";

@ -1,5 +1,5 @@
import common from './common.js' import common from './common.js'
console.log('common',common); // console.log('common',common);
// let ajaxUrl = "http://192.168.3.83:8001"; // let ajaxUrl = "http://192.168.3.83:8001";
// let ajaxUrl = "https://daotian.matripe.com.cn"; // let ajaxUrl = "https://daotian.matripe.com.cn";
let ajaxUrl = common.store().baseUrl; let ajaxUrl = common.store().baseUrl;

Loading…
Cancel
Save