You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1960 lines
63 KiB
1960 lines
63 KiB
<template>
|
|
<view class="enterForm">
|
|
|
|
<view class="formbox" v-if="loadlogo">
|
|
<view class="formdatabox">
|
|
<view class="dis-flex f-26" style="padding-bottom: 20upx;">
|
|
<view class="sign"></view>
|
|
<view style="padding-left: 20upx;flex: 0.45;">{{languageStatus!=1?'请填写个人信息':'개인정보를 입력하세요'}}</view>
|
|
<view class="t-r" style="flex: 0.6;">
|
|
<!-- 直接联系客服<text class="iconfont icon-right" style="font-size: 20upx;color: #999999;padding-left: 10upx;"></text> -->
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'姓名':'성명'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;"><input class="uni-input f-24" :placeholder="languageStatus!=1?'请输入姓名':'성명을 입력하세요'" v-model="userInfo.name" /></view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'生日':'생일'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<view class="uni-input" @click="ageshow = true">
|
|
{{ userInfo.birth_time || (languageStatus!=1?'请选择出生年月日':'출생년원일을 입력하세요') }}
|
|
<text class="iconfont icon-right" style="float: right;font-size: 20upx;color: #999999;"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'联系方式':'연락방식'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<input class="uni-input f-24" type="number" :placeholder="languageStatus!=1?'请输入联系电话':'연락 전화를 입력하세요'" v-model="userInfo.phone" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'性别':'성별'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<picker @change="genderChange" :value="genderIndex" :range="genderList">
|
|
<view class="uni-input">
|
|
{{ genderList[genderIndex] }}
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'所在城市':'현재도시'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<w-picker
|
|
:visible.sync="visiblec"
|
|
mode="region"
|
|
:value="[userInfo.provinceid,userInfo.areaid,userInfo.distid]"
|
|
default-type="value"
|
|
:hide-area="false"
|
|
@confirm="onConfirm($event, 'region')"
|
|
@cancel="onCancel"
|
|
ref="region"
|
|
></w-picker>
|
|
<view class="uni-input" @tap="visble">
|
|
{{ provinceidName }} {{ areaidName }} {{ distidName }}
|
|
<text class="iconfont icon-right" style="float: right;font-size: 20upx;color: #999999;"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
详细地址
|
|
</view>
|
|
<view class="dis-flex" style="flex: 0.8;padding-left: 40upx;">
|
|
<input class="f-24" style="flex: 0.8;" placeholder="请输入详细地址" v-model="userInfo.address" />
|
|
<view class="dis-il-block" @click="getLocation" style="flex: 0.3;">
|
|
<image style="width: 20upx;height: 20upx;padding-left: 10upx;" :src="imgfixUrls + 'merchant/where.svg'" />
|
|
<span>定位</span>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
|
|
<!-- <view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
商家简介
|
|
</view>
|
|
<view class="dis-flex" style="flex: 0.8;padding-left: 40upx;">
|
|
<textarea style="width: 100%;font-size: 24upx;" v-if="!hangyeshow" auto-height placeholder="请输入商户简介" placeholder-style="font-size:24upx"
|
|
v-model="userInfo.desc" />
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
<view class="formdatabox" style="margin-top: 20upx;">
|
|
<view class="dis-flex f-26" style="padding-bottom: 20upx;">
|
|
<view class="sign"></view>
|
|
<view style="padding-left: 20upx;flex: 0.45;">{{languageStatus!=1?'请填写更多资料':'추가 자료를 입력하세요'}}</view>
|
|
</view>
|
|
<!-- <view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
微信号
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<input class="uni-input f-24" placeholder="请输入微信号" v-model="userInfo.wx" />
|
|
</view>
|
|
</view> -->
|
|
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'最高学历':'최고 학력'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;" v-if="educationList.length > 0">
|
|
<picker @change="educationChange" :value="educationIndex" range-key="title" :range="educationList">
|
|
<view class="uni-input">
|
|
{{ educationList[educationIndex].title }}
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'上岗状态':'업무상태'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<picker @change="incumbencyChange" :value="incumbencyIndex" range-key="title" :range="incumbencyList">
|
|
<view class="uni-input">
|
|
{{ incumbencyList[incumbencyIndex].title }}
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'工作经验':'업무경력'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<picker @change="experienceChange" :value="experienceIndex" range-key="title" :range="experienceList">
|
|
<view class="uni-input">
|
|
{{ experienceList[experienceIndex].title }}
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'工作类型':'업무 유형'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<picker @change="workTypeChange" :value="workTypeIndex" range-key="title" :range="workTypeList">
|
|
<view class="uni-input">
|
|
{{ workTypeList[workTypeIndex].title }}
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'最低薪资':'최저 봉급'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<input class="uni-input f-24" type="number" :placeholder="languageStatus!=1?'请填写最低期盼薪资':'희망 최저봉급 입력'" v-model="userInfo.expect_salary_min" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'最高薪资':'최고 봉급'}}
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<input class="uni-input f-24" type="number" :placeholder="languageStatus!=1?'请填写最高期盼薪资':'희망 최저봉급 입력'" v-model="userInfo.expect_salary_max" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;">*</view>
|
|
{{languageStatus!=1?'期望职位':'희망 직위'}}
|
|
</view>
|
|
<view class="dis-flex" style="flex: 0.8;padding-left: 40upx;">
|
|
<view class="timePickerView" @click="showThePic">
|
|
<!-- <picker mode="multiSelector" class="dataPicker" :range="typelist" @change="checkType" @columnchange="changeKey"
|
|
range-key="name" :value="typeIndex"> -->
|
|
<view v-if="businessList.length == 0" class="uni-input twoLevelList">
|
|
{{languageStatus!=1?'请选择行业分类':'항업 분류 선택'}}
|
|
<text class="iconfont icon-right" style="font-size: 20upx;color: #999999;float: right;margin-top: 5upx;"></text>
|
|
</view>
|
|
<view v-else class="uni-input twoLevelList">
|
|
<view class="dis-il-block" style="width: 90%;" v-if="businessList.length == 1">
|
|
<view class="dis-il-block" style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;">
|
|
{{ businessList[0].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(0)"></text>
|
|
<!-- <text class="iconfont icon-close_light"></text> -->
|
|
</view>
|
|
</view>
|
|
<view class="dis-il-block" style="width: 90%;" v-if="businessList.length == 2">
|
|
<view class="dis-il-block" style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;margin-right: 10upx;">
|
|
{{ businessList[0].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(0)"></text>
|
|
</view>
|
|
<view class="dis-il-block" style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;">
|
|
{{ businessList[1].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(1)"></text>
|
|
</view>
|
|
<!-- {{businessList[0].title}},{{businessList[1].title}} -->
|
|
</view>
|
|
<view class="dis-il-block" style="width: 90%;" v-if="businessList.length == 3">
|
|
<!-- {{businessList[0].title}},{{businessList[1].title}},{{businessList[2].title}} -->
|
|
<view
|
|
class="dis-il-block t-c"
|
|
style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;margin-right: 10upx;margin-bottom: 20upx;"
|
|
>
|
|
{{ businessList[0].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(0)"></text>
|
|
</view>
|
|
<view class="dis-il-block t-c" style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;margin-right: 10upx;">
|
|
{{ businessList[1].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(1)"></text>
|
|
</view>
|
|
<view class="dis-il-block t-c" style="padding: 5upx 10upx;background-color: #FF4444;color: #FFFFFF;border-radius: 6upx;">
|
|
{{ businessList[2].title }}
|
|
<text class="iconfont icon-close_light" style="font-size: 26upx;padding-left: 10upx;" @click.stop="splicebusinde(2)"></text>
|
|
</view>
|
|
</view>
|
|
<text class="iconfont icon-right" style="font-size: 20upx;color: #999999;float: right;"></text>
|
|
</view>
|
|
<!-- </picker> -->
|
|
<span></span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="formdatabox" style="margin-top: 20upx;">
|
|
<view class="dis-flex f-26" style="padding-bottom: 20upx;">
|
|
<view class="sign"></view>
|
|
<view style="padding-left: 20upx;flex: 0.45;">{{languageStatus!=1?'头像上传':'이미지 올리기'}}</view>
|
|
<view class="t-r" style="flex: 0.6;">
|
|
<!-- 直接联系客服<text class="iconfont icon-right" style="font-size: 20upx;color: #999999;padding-left: 10upx;"></text> -->
|
|
</view>
|
|
</view>
|
|
<view class="logobox">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FF4444;float: left;line-height: 70upx;padding-right: 10upx;">*</view>
|
|
<span>{{languageStatus!=1?'用户头像':'사용자 이미지'}}(200X200)</span>
|
|
<view style="padding-left: 20upx;">
|
|
<!-- 图片预览循环模板 -->
|
|
<view class="userImgUpdataon" style="margin: 10upx;" v-if="userInfo.avatar">
|
|
<image :src="userInfo.avatar" class="imgs" @click="lookimg(1, userInfo.avatar)" />
|
|
<image :src="imgfixUrls + 'merchant/close.png'" class="close" @click="closeLogo" />
|
|
</view>
|
|
<!-- 图片预览循环模板 -->
|
|
<view class="userImgUpdata" @click="uploadFiles(1, 1)" style="margin: 10upx;width: 180upx;min-width: 180upx;max-width: 180upx;" v-if="!userInfo.avatar">
|
|
<image :src="imgfixUrls + 'merchant/addImg.svg'" class="img" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="formdatabox" style="margin-top: 20upx;">
|
|
<view class="dis-flex f-26" style="padding-bottom: 20upx;">
|
|
<view class="sign"></view>
|
|
<view style="padding-left: 20upx;flex: 0.45;">个人经历</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FFFFFF;float: left;">*</view>
|
|
在校职务
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;" @click="schoolWorkShow = true">
|
|
<view class="uni-input">
|
|
点击编辑在校职务经验
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FFFFFF;float: left;">*</view>
|
|
实习经验
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;" @click="afterWorkShow = true">
|
|
<view class="uni-input">
|
|
点击编辑实习经验
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FFFFFF;float: left;">*</view>
|
|
教育经历
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;" @click="educationShow = true">
|
|
<view class="uni-input">
|
|
点击编辑教育经历
|
|
<view class="dis-il-block iconfont icon-right" style="float: right;font-size: 24upx;color: #6f6f6f;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex f-24 formtitle">
|
|
<view class="t-r" style="flex: 0.3;">
|
|
<view class="dis-il-block" style="font-size: 20upx;color: #FFFFFF;float: left;">*</view>
|
|
自我评价
|
|
</view>
|
|
<view style="flex: 0.8;padding-left: 40upx;">
|
|
<view ><textarea v-if="!afterWorkShow && !educationShow" style="width: 100%;font-size: 26upx;" maxlength="9999" v-model="userInfo.self_evaluation" placeholder="请填写自我评价" /></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="padding-bottom: 100upx;">
|
|
<view class="t-c" style="width: 90vw;height: 80upx;line-height: 80upx;background-color: #FF4444;color: #FFFFFF;border-radius: 60upx;" @click="submit">提 交</view>
|
|
</view>
|
|
</view>
|
|
<!-- #ifdef H5 -->
|
|
<PopManager :show="isOpenLaction" :type="'bottom'" :overlay="'false'" :showOverlay="'false'">
|
|
<view class="iframe-wid-hgt" :style="{ height: phoneHeight }" v-if="latlngs">
|
|
<iframe
|
|
id="mapPage"
|
|
width="100%"
|
|
height="100%"
|
|
frameborder="0"
|
|
:src="
|
|
`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp&coord=${latlngs.latitude},${
|
|
latlngs.longitude
|
|
}`
|
|
"
|
|
></iframe>
|
|
</view>
|
|
<view class="iframe-wid-hgt" :style="{ height: phoneHeight }" v-if="!latlngs">
|
|
<iframe
|
|
id="mapPage"
|
|
width="100%"
|
|
height="100%"
|
|
frameborder="0"
|
|
:src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=KIQBZ-6OT3G-AOMQD-IHW6J-PEUDV-VCFAF&referer=myapp`"
|
|
></iframe>
|
|
</view>
|
|
</PopManager>
|
|
<!-- #endif -->
|
|
<PopManager :show="hangyeshow" :type="'bottom'" :overlay="'false'" :showOverlay="'false'" @clickmask="closeShareBottom">
|
|
<view class="hangye dis-flex">
|
|
<view style="flex: 0.33;overflow: auto;">
|
|
<view :class="item.checked ? 'industryclass-item classcheck f-28' : 'industryclass-item f-28'" v-for="(item, index) in industry" @click="clickindustry(item)">
|
|
{{ item.title }}
|
|
</view>
|
|
</view>
|
|
<view style="flex: 0.33;overflow: auto;">
|
|
<view
|
|
:class="item.checked ? 'industryclass-item classcheck f-28' : 'industryclass-item f-28'"
|
|
v-for="(item, index) in industrysubdivide"
|
|
@click="clickclass(item)"
|
|
>
|
|
{{ item.title }}
|
|
</view>
|
|
</view>
|
|
<view style="flex: 0.33;overflow: auto;">
|
|
<view
|
|
:class="item.checked ? 'industryclass-item isclasschecked f-28' : 'industryclass-item f-28'"
|
|
v-for="(item, index) in industrysublevel"
|
|
@click="clickclassTwo(item)"
|
|
>
|
|
{{ item.title }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="b-f dis-flex">
|
|
|
|
<view class="flex-box">
|
|
<button @click="confirm" style="width: 80%;height: 80%;font-size: 34upx;line-height: 70upx;height: 70upx;margin-bottom: 20upx;" type="warn">确定</button>
|
|
</view>
|
|
</view> -->
|
|
</PopManager>
|
|
<PopManager :show="schoolWorkShow" :type="'center'" :overlay="'false'" :showOverlay="'false'">
|
|
<view class="after-work">
|
|
<view class="after-work-title dis-flex">
|
|
<view class="flex-box f-32 f-w">在校职务经验</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="schoolWorkShow = false"></view>
|
|
</view>
|
|
<view class="f-28" style="padding: 30upx 0;height: 50vh;overflow: auto;">
|
|
<view class="after-item" v-for="(item, index) in school_officeList">
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">学校名称</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.school_name }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">职务名称</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.position }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">任职时间</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.start_time }}-{{ item.end_time }}</view>
|
|
</view>
|
|
<!-- <view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">职务内容</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.content }}</view>
|
|
</view> -->
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.5;" class="f-w"></view>
|
|
<view style="flex: 0.5;text-align: right;">
|
|
<view class="dis-il-block c-ff4444" @click="deleteSchoolWork(index)">删除</view>
|
|
<view class="dis-il-block" style="color: #008CFF;padding-left: 50upx;" @click="redactSchoolWork(item, index)">编辑</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="work-btn" @click="addSchoolWorkShow = true">添加经验</view>
|
|
<PopManager :show="addSchoolWorkShow" :type="'center'" :overlay="'false'" :showOverlay="'false'" @clickmask="closeaddschool">
|
|
<view class="add-work" v-show="addSchoolWorkShow"><!-- 此处添加v-show,增强视图效果 -->
|
|
<view class="dis-flex" style="padding-bottom: 30upx;">
|
|
<view class="flex-box f-32">添加在校职务经验</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="closeaddschool"></view>
|
|
</view>
|
|
<view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;line-height: 45upx;">学校名称</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写学校名称" v-model="school_office.school_name" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">职务名称</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写职务名称" v-model="school_office.position" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">开始时间</view>
|
|
<view :class="school_office.start_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="startTime = true">
|
|
{{ school_office.start_time || '请选择任职开始时间' }}
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">结束时间</view>
|
|
<view :class="school_office.end_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="endTime = true">
|
|
{{ school_office.end_time || '请选择任职结束时间' }}
|
|
</view>
|
|
</view>
|
|
<!-- <view class="dis-flex" style="padding-bottom: 20upx;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">职务内容</view>
|
|
<view style="flex: 0.7;">
|
|
<textarea
|
|
type="text"
|
|
style="font-size: 26upx;width: 100%;height: 400upx;"
|
|
maxlength="9999"
|
|
placeholder="请填写职务内容"
|
|
v-model="school_office.content"
|
|
/>
|
|
</view>
|
|
</view> -->
|
|
<view class="dis-il-block t-c redbtn" @click.stop="addschool_office">保存</view>
|
|
</view>
|
|
</view>
|
|
</PopManager>
|
|
</view>
|
|
</PopManager>
|
|
<PopManager :show="afterWorkShow" :type="'center'" :overlay="'false'" :showOverlay="'false'">
|
|
<view class="after-work">
|
|
<view class="after-work-title dis-flex">
|
|
<view class="flex-box f-32 f-w">实习经验</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="afterWorkShow = false"></view>
|
|
</view>
|
|
<view class="f-28" style="padding: 30upx 0;height: 50vh;overflow: auto;">
|
|
<view class="after-item" v-for="(item, index) in work_experienceList">
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">项目名称</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.title }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">项目时间</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.start_time }}-{{ item.end_time }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">所在企业</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.corporate_name }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">基本描述</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.content }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.5;" class="f-w"></view>
|
|
<view style="flex: 0.5;text-align: right;">
|
|
<view class="dis-il-block c-ff4444" @click="deleteWork(index)">删除</view>
|
|
<view class="dis-il-block" style="color: #008CFF;padding-left: 50upx;" @click="redact(item, index)">编辑</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="work-btn" @click="addWorkShow = true">添加经验</view>
|
|
<PopManager :show="addWorkShow" :type="'center'" :overlay="'false'" :showOverlay="'false'" @clickmask="closeadd">
|
|
<view class="add-work" v-show="addWorkShow"><!-- 此处添加v-show,增强视图效果 -->
|
|
<view class="dis-flex" style="padding-bottom: 30upx;">
|
|
<view class="flex-box f-32">添加实习经验</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="closeadd"></view>
|
|
</view>
|
|
<view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;line-height: 45upx;">项目名称</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写项目名称" v-model="work_experience.title" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">公司名称</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写公司名称" v-model="work_experience.corporate_name" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">开始时间</view>
|
|
<view :class="work_experience.start_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="startTime = true">
|
|
{{ work_experience.start_time || '请选择项目开始时间' }}
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">结束时间</view>
|
|
<view :class="work_experience.end_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="endTime = true">
|
|
{{ work_experience.end_time || '请选择项目结束时间' }}
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 20upx;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">项目内容</view>
|
|
<view style="flex: 0.7;">
|
|
<textarea
|
|
type="text"
|
|
style="font-size: 26upx;width: 100%;height: 400upx;"
|
|
maxlength="9999"
|
|
placeholder="请填写项目内容"
|
|
v-model="work_experience.content"
|
|
/>
|
|
</view>
|
|
</view>
|
|
<view class="dis-il-block t-c redbtn" @click.stop="addwork_experience">保存</view>
|
|
</view>
|
|
</view>
|
|
</PopManager>
|
|
</view>
|
|
</PopManager>
|
|
<PopManager :show="educationShow" :type="'center'" :overlay="'false'" :showOverlay="'false'">
|
|
<view class="after-work">
|
|
<view class="after-work-title dis-flex">
|
|
<view class="flex-box f-32 f-w">教育经历</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="educationShow = false"></view>
|
|
</view>
|
|
<view class="f-28" style="padding: 30upx 0;height: 50vh;overflow: auto;">
|
|
<view class="after-item" v-for="(item, index) in educational_experienceList">
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">学校名称</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.school }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">学校类型</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.graduated_school }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">就读时间</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.start_time }}-{{ item.end_time }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.3;" class="f-w">就读专业</view>
|
|
<view style="flex: 0.8;padding-left: 20upx;">{{ item.major }}</view>
|
|
</view>
|
|
<view class="dis-flex after-item-item">
|
|
<view style="flex: 0.5;" class="f-w"></view>
|
|
<view style="flex: 0.5;text-align: right;">
|
|
<view class="dis-il-block c-ff4444" @click="deleteteach(index)">删除</view>
|
|
<view class="dis-il-block" style="color: #008CFF;padding-left: 50upx;" @click="redactteach(item, index)">编辑</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="work-btn" @click="addteachShow = true">添加经历</view>
|
|
<PopManager :show="addteachShow" :type="'center'" :overlay="'false'" :showOverlay="'false'" @clickmask="closeaddteach">
|
|
<view class="add-work" v-show="addteachShow"><!-- 此处添加v-show,增强视图效果 -->
|
|
<view class="dis-flex" style="padding-bottom: 30upx;">
|
|
<view class="flex-box f-32">添加教育经历</view>
|
|
<view class="flex-box iconfont icon-close t-r" @click="closeaddteach"></view>
|
|
</view>
|
|
<view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;line-height: 34upx;">学校名称</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写学校名称" v-model="educational_experience.school" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">学校类型</view>
|
|
<view :class="educational_experience.graduated_school ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="graduated_show = true">
|
|
{{ educational_experience.graduated_school || '请选择学校类型' }}
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">所属专业</view>
|
|
<view style="flex: 0.7;">
|
|
<input type="text" style="font-size: 26upx;" placeholder="请填写就读专业" v-model="educational_experience.major" />
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;border-bottom: 1upx solid #EEEEEE;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">开始时间</view>
|
|
<view :class="educational_experience.start_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="startTime = true">
|
|
{{ educational_experience.start_time || '请选择就读时间' }}
|
|
</view>
|
|
</view>
|
|
<view class="dis-flex" style="padding-bottom: 40upx;padding-top: 10upx;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">结束时间</view>
|
|
<view :class="educational_experience.end_time ? 'f-26' : 'f-26 col-6'" style="flex: 0.7;line-height: 30upx;" @click="endTime = true">
|
|
{{ educational_experience.end_time || '请选毕业时间' }}
|
|
</view>
|
|
</view>
|
|
<!-- <view class="dis-flex" style="padding-bottom: 20upx;padding-top: 40upx;">
|
|
<view class="f-26" style="flex: 0.3;">
|
|
项目内容
|
|
</view>
|
|
<view style="flex: 0.7;">
|
|
<textarea type="text" style="font-size: 26upx;width: 100%;height: 400upx;" maxlength="9999" placeholder="请填写项目内容" v-model="work_experience.content" />
|
|
</view>
|
|
</view> -->
|
|
<view class="dis-il-block t-c redbtn" @click.stop="addTeach_experience">保存</view>
|
|
</view>
|
|
</view>
|
|
</PopManager>
|
|
</view>
|
|
</PopManager>
|
|
<!-- <TabBars :tabBarAct="0" pageType="15"></TabBars> -->
|
|
<far-bottom></far-bottom>
|
|
<w-picker
|
|
:visible.sync="startTime"
|
|
mode="date"
|
|
startYear="2000"
|
|
endYear="2100"
|
|
fields="day"
|
|
@confirm="onConfirmstartTime($event, 'date')"
|
|
@cancel="onCancel"
|
|
:disabled-after="false"
|
|
ref="datea"
|
|
></w-picker>
|
|
<w-picker
|
|
:visible.sync="endTime"
|
|
mode="date"
|
|
startYear="1900"
|
|
endYear="2100"
|
|
fields="day"
|
|
@confirm="onConfirmendTime($event, 'date')"
|
|
@cancel="onCancel"
|
|
:disabled-after="false"
|
|
ref="date"
|
|
></w-picker>
|
|
<w-picker
|
|
:visible.sync="ageshow"
|
|
mode="date"
|
|
:value="userInfo.birth_time"
|
|
startYear="1900"
|
|
endYear="2100"
|
|
|
|
fields="day"
|
|
@confirm="onConfirmage($event, 'date')"
|
|
:disabled-after="false"
|
|
ref="dateb"
|
|
></w-picker>
|
|
<w-picker
|
|
:visible.sync="graduated_show"
|
|
mode="selector"
|
|
:value="educational_experience.graduated_school"
|
|
default-type="label"
|
|
:options="graduatedTypeOptions"
|
|
@confirm="onConfirmGra($event, 'gra')"
|
|
ref="gra"
|
|
></w-picker>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import App from '@/common/js/app.js';
|
|
import wPicker from '@/components/w-picker/w-picker.vue';
|
|
import PopManager from '@/components/template/PopManager';
|
|
import phoneNavBar from '@/components/template/phoneNavBar';
|
|
import TabBars from '@/components/template/tabBar.vue';
|
|
// #ifdef H5
|
|
import wxApi from '@/common/js/wxApi.js';
|
|
// #endif
|
|
export default{
|
|
data(){
|
|
return{
|
|
provinceidName:'',
|
|
areaidName:'',
|
|
distidName:'',
|
|
visiblec:false,
|
|
ageshow:false,
|
|
startTime:false,
|
|
endTime:false,
|
|
addWorkShow:false,
|
|
addteachShow:false,
|
|
afterWorkShow:false,
|
|
educationShow:false,
|
|
schoolWorkShow: false,
|
|
addSchoolWorkShow: false,
|
|
address:'',
|
|
lblis:{},
|
|
klis:false,
|
|
isOpenLaction:false,
|
|
userInfo:{
|
|
|
|
},
|
|
phoneHeight:null,
|
|
latlngs:null,
|
|
owenscitylist:[],
|
|
hangyeshow:false,
|
|
hangYe:true,
|
|
industryclass:'',
|
|
industry:[],
|
|
industrysubdivide:[],
|
|
industrysublevel:[],
|
|
industryAll:{},
|
|
loadlogo:true,
|
|
pickerarray:['全部','1','2','3'],
|
|
pickerindex:0,
|
|
goodsinfo:{},
|
|
sid:'',
|
|
oldDistid:'',
|
|
uploadlength:0,
|
|
localIds:[],
|
|
genderList:['男','女'],
|
|
genderIndex:0,
|
|
educationList:[],
|
|
workTypeList:[{title:'全职',id:1},{title:'兼职',id:2}],
|
|
workTypeIndex:0,
|
|
educationIndex:0,
|
|
incumbencyList:[
|
|
{title:'随时上岗',id:1},
|
|
{title:'一周之内',id:2},
|
|
{title:'一月之内',id:3},
|
|
{title:'考虑中',id:4},
|
|
{title:'无换岗意向',id:5},
|
|
],
|
|
incumbencyIndex:0,
|
|
experienceList:[],
|
|
experienceIndex:0,
|
|
businessList:[],
|
|
school_office:{
|
|
school_name:'',
|
|
position:'',
|
|
start_time:'',
|
|
end_time:''
|
|
},
|
|
school_officeList:[],
|
|
work_experience:{
|
|
title:'',
|
|
corporate_name:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
content:''
|
|
},
|
|
graduated_show: false,
|
|
educational_experience:{
|
|
school:'',
|
|
graduated_school: '',
|
|
major:'',
|
|
start_time:'',
|
|
end_time:''
|
|
},
|
|
work_experienceList:[],
|
|
educational_experienceList:[],
|
|
redactIndex:null,
|
|
upimg:false
|
|
}
|
|
},
|
|
computed:{
|
|
graduatedTypeOptions(){
|
|
let arr = [];
|
|
for(let key in this.userInfo.graduated_school){
|
|
arr.push({
|
|
value:key,
|
|
label:this.userInfo.graduated_school[key]
|
|
})
|
|
}
|
|
// console.log(arr, '学校类型数组');
|
|
return arr;
|
|
},
|
|
},
|
|
components:{
|
|
wPicker,
|
|
PopManager,
|
|
phoneNavBar,
|
|
TabBars
|
|
},
|
|
onHide() {
|
|
|
|
},
|
|
onLoad(e) {
|
|
let _this = this;
|
|
_this.id = e.id;
|
|
_this.sid = e.sid;
|
|
uni.getSystemInfo({
|
|
success(res) {
|
|
_this.phoneHeight = res.windowHeight + 'px';
|
|
}
|
|
});
|
|
_this.owenscitylist = uni.getStorageSync('cityList');
|
|
_this.agencyData = uni.getStorageSync('agencyData');
|
|
_this.latlngs = uni.getStorageSync('curLoction');
|
|
// _this.userInfo.meralid = _this.pickerarray[0].id;
|
|
|
|
|
|
|
|
},
|
|
onShow() {
|
|
let _this = this;
|
|
// #ifdef H5
|
|
window.addEventListener(
|
|
'message',
|
|
function(event) {
|
|
// 接收位置信息,用户选择确认位置点后选点组件会触发该事件,回传用户的位置信息
|
|
let loc = event.data;
|
|
if(_this.klis){
|
|
return
|
|
}
|
|
if (loc && loc.module == 'locationPicker') {
|
|
//防止其他应用也会向该页面post信息,需判断module是否为'locationPicker'
|
|
console.log('location', loc);
|
|
// _this.thelat = loc.latlng.lat;
|
|
// _this.userInfo.address = loc.poiaddress;
|
|
_this.isOpenLaction = false;
|
|
_this.lblis = {
|
|
lat:loc.latlng.lat,
|
|
lng:loc.latlng.lng,
|
|
detailed_address:loc.poiaddress
|
|
}
|
|
_this.getloctions(_this.lblis)
|
|
}
|
|
_this.klis = true;
|
|
setTimeout(()=>{
|
|
_this.klis = false;
|
|
},1000)
|
|
},
|
|
false
|
|
);
|
|
|
|
// #endif
|
|
//#ifdef APP-PLUS
|
|
if(_this.userInfo.address){
|
|
_this.lblis.address = e.address
|
|
_this.getloctions(_this.lblis)
|
|
}
|
|
//#endif
|
|
if(_this.upimg){
|
|
_this.upimg = false;
|
|
return
|
|
}
|
|
setTimeout(()=>{
|
|
_this.getenter(_this.id);
|
|
_this.geteducationList();
|
|
})
|
|
},
|
|
methods:{
|
|
splicebusinde(index){
|
|
this.businessList.splice(index,1);
|
|
this.userInfo.expect_position.splice(index,1);
|
|
},
|
|
getData(){
|
|
let _this = this;
|
|
App._post_form(
|
|
`&p=recruit&do=editResume&type=get`,
|
|
{},
|
|
res => {
|
|
if(!res.data) return
|
|
console.log(res,'提交结果');
|
|
_this.userInfo = res.data;
|
|
// 初始化数据处理
|
|
_this.educationList.map((item,index)=>{
|
|
if(item.id == _this.userInfo.education_label_id){
|
|
_this.educationIndex = index;
|
|
}
|
|
})
|
|
_this.educationList.map((item,index)=>{
|
|
if(item.id == _this.userInfo.education_label_id){
|
|
_this.educationIndex = index;
|
|
}
|
|
})
|
|
_this.experienceList.map((item,index)=>{
|
|
if(item.id == _this.userInfo.experience_label_id){
|
|
_this.experienceIndex = index;
|
|
}
|
|
})
|
|
_this.incumbencyList.map((item,index)=>{
|
|
if(item.id == _this.userInfo.work_status){
|
|
_this.incumbencyIndex = index;
|
|
}
|
|
})
|
|
_this.workTypeList.map((item,index)=>{
|
|
if(item.id == _this.userInfo.job_type){
|
|
_this.workTypeIndex = index;
|
|
}
|
|
})
|
|
_this.genderIndex = Number(_this.userInfo.gender) - 2;
|
|
_this.school_officeList = _this.userInfo.school_office;
|
|
_this.educational_experienceList = _this.userInfo.educational_experience;
|
|
_this.work_experienceList = _this.userInfo.work_experience;
|
|
_this.userInfo.provinceid = _this.userInfo.expect_work_province;
|
|
_this.userInfo.areaid = _this.userInfo.expect_work_city;
|
|
_this.userInfo.distid = _this.userInfo.expect_work_area;
|
|
_this.businessList = _this.userInfo.show_expect_position;
|
|
_this.owenscitylist.map((item,index)=>{
|
|
if(item.id == _this.userInfo.provinceid){
|
|
_this.provinceidName = item.name;
|
|
item.area.map(items=>{
|
|
if(items.id == _this.userInfo.areaid){
|
|
_this.areaidName = items.name;
|
|
items.dist.map(itemss=>{
|
|
if(itemss.id == _this.userInfo.distid){
|
|
_this.distidName = itemss.name;
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
// _this.expect_position 后台处理成对象形式携带名字
|
|
_this.loadlogo = !_this.loadlogo;
|
|
_this.loadlogo = !_this.loadlogo;
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
},
|
|
redactSchoolWork(item,index){
|
|
// this.work_experience = item;
|
|
let objString = JSON.stringify(item);
|
|
this.school_office = JSON.parse(objString);
|
|
this.redactIndex = index;
|
|
this.addSchoolWorkShow = true;
|
|
},
|
|
redact(item,index){
|
|
// this.work_experience = item;
|
|
let objString = JSON.stringify(item);
|
|
this.work_experience = JSON.parse(objString);
|
|
this.redactIndex = index;
|
|
this.addWorkShow = true;
|
|
},
|
|
redactteach(item,index){
|
|
let objString = JSON.stringify(item);
|
|
this.educational_experience = JSON.parse(objString);
|
|
this.redactIndex = index;
|
|
this.addteachShow = true;
|
|
},
|
|
deleteteach(index){
|
|
App.showError(
|
|
`确定要删除该教育经历?`,
|
|
data => {
|
|
if (data.confirm) {
|
|
this.educational_experienceList.map((item,indexs)=>{
|
|
if(index == indexs){
|
|
this.educational_experienceList.splice(index,1)
|
|
}
|
|
})
|
|
return
|
|
}
|
|
},
|
|
true
|
|
);
|
|
},
|
|
deleteWork(index){
|
|
App.showError(
|
|
`确定要删除该项目经历?`,
|
|
data => {
|
|
if (data.confirm) {
|
|
this.work_experienceList.map((item,indexs)=>{
|
|
if(index == indexs){
|
|
this.work_experienceList.splice(index,1)
|
|
}
|
|
})
|
|
return
|
|
}
|
|
},
|
|
true
|
|
);
|
|
},
|
|
deleteSchoolWork(index){
|
|
App.showError(
|
|
`确定要删除该在校职务经验?`,
|
|
data => {
|
|
if (data.confirm) {
|
|
this.school_officeList.map((item,indexs)=>{
|
|
if(index == indexs){
|
|
this.school_officeList.splice(index,1)
|
|
}
|
|
})
|
|
return
|
|
}
|
|
},
|
|
true
|
|
);
|
|
},
|
|
addTeach_experience(){
|
|
for(let key in this.educational_experience){
|
|
if(!this.educational_experience[key]){
|
|
if(key != 'major'){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'请完善教育经历'
|
|
});
|
|
return
|
|
}
|
|
}
|
|
}
|
|
if(this.redactIndex != null){
|
|
this.educational_experienceList.splice(this.redactIndex,1,this.educational_experience);
|
|
this.redactIndex = null;
|
|
}else{
|
|
this.educational_experienceList.push(this.educational_experience);
|
|
}
|
|
this.addteachShow = false;
|
|
this.educational_experience ={
|
|
school:'',
|
|
graduated_school: '',
|
|
major:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
};
|
|
},
|
|
addwork_experience(){
|
|
for(let key in this.work_experience){
|
|
if(!this.work_experience[key]){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'请完善项目经历'
|
|
});
|
|
return
|
|
}
|
|
}
|
|
if(this.redactIndex != null){
|
|
this.work_experienceList.splice(this.redactIndex,1,this.work_experience);
|
|
this.redactIndex = null;
|
|
}else{
|
|
this.work_experienceList.push(this.work_experience);
|
|
}
|
|
this.addWorkShow = false;
|
|
this.work_experience ={
|
|
title:'',
|
|
corporate_name:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
content:''
|
|
};
|
|
},
|
|
addschool_office(){
|
|
for(let key in this.school_office){
|
|
if(!this.school_office[key]){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'请完善在校职务经验'
|
|
});
|
|
return
|
|
}
|
|
}
|
|
if(this.redactIndex != null){
|
|
this.school_officeList.splice(this.redactIndex,1,this.school_office);
|
|
this.redactIndex = null;
|
|
}else{
|
|
this.school_officeList.push(this.school_office);
|
|
}
|
|
this.addSchoolWorkShow = false;
|
|
this.school_office = {
|
|
school_name:'',
|
|
position:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
}
|
|
},
|
|
onConfirmage(e){
|
|
this.userInfo.birth_time = e.result;
|
|
},
|
|
onConfirmendTime(e){
|
|
this.educational_experience.end_time = e.result;
|
|
this.work_experience.end_time = e.result;
|
|
this.school_office.end_time = e.result;
|
|
},
|
|
onConfirmstartTime(e){
|
|
// console.log(e, '111111111111111111')
|
|
this.educational_experience.start_time = e.result;
|
|
this.work_experience.start_time = e.result;
|
|
this.school_office.start_time = e.result;
|
|
},
|
|
onConfirmGra(e){
|
|
// console.log(e, '111111111111111111');
|
|
this.educational_experience.graduated_school = e.result;
|
|
},
|
|
closeaddschool(){
|
|
this.addSchoolWorkShow = false;
|
|
setTimeout(()=>{
|
|
this.school_office ={
|
|
school_name:'',
|
|
position:'',
|
|
start_time:'',
|
|
end_time:''
|
|
};
|
|
},500)
|
|
},
|
|
closeaddteach(){
|
|
this.addteachShow = false;
|
|
setTimeout(()=>{
|
|
this.educational_experience ={
|
|
school:'',
|
|
graduated_school: '',
|
|
major:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
};
|
|
},500)
|
|
},
|
|
closeadd(){
|
|
this.addWorkShow = false;
|
|
setTimeout(()=>{
|
|
this.work_experience ={
|
|
title:'',
|
|
corporate_name:'',
|
|
start_time:'',
|
|
end_time:'',
|
|
content:''
|
|
};
|
|
},500)
|
|
|
|
},
|
|
geteducationList(){
|
|
App._post_form(
|
|
`&p=recruit&do=getLabel&type=1`,
|
|
{},
|
|
res => {
|
|
this.educationList = res.data;
|
|
App._post_form(
|
|
`&p=recruit&do=getLabel&type=3`,
|
|
{},
|
|
res => {
|
|
this.experienceList = res.data;
|
|
this.getData();
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
|
|
},
|
|
// 时间转时间戳
|
|
getDataTime(timeValue) {
|
|
let ontime;
|
|
ontime = timeValue.replace(/-/g, '/');
|
|
let date = new Date(ontime);
|
|
let time = date.getTime() / 1000;
|
|
return time;
|
|
},
|
|
submit(){
|
|
let _this = this;
|
|
let data = JSON.parse(JSON.stringify(_this.userInfo));
|
|
|
|
console.log(data,'------------')
|
|
|
|
data.school_office = JSON.parse(JSON.stringify(_this.school_officeList));
|
|
data.work_experience = JSON.parse(JSON.stringify(_this.work_experienceList));
|
|
data.educational_experience = JSON.parse(JSON.stringify(_this.educational_experienceList));
|
|
data.expect_work_province = _this.userInfo.provinceid || data.expect_work_province;
|
|
data.expect_work_city = _this.userInfo.areaid || data.expect_work_city;
|
|
data.expect_work_area = _this.userInfo.distid || data.expect_work_area;
|
|
if(!data.gender){
|
|
data.gender = _this.genderIndex + 2;
|
|
}
|
|
if(!data.education_label_id){
|
|
data.education_label_id = _this.educationList[0].id;
|
|
}
|
|
if(!data.work_status){
|
|
data.work_status = this.incumbencyList[0].id;
|
|
}
|
|
if(!data.experience_label_id){
|
|
data.experience_label_id = this.experienceList[0].id;
|
|
}
|
|
if(!data.job_type){
|
|
data.job_type = this.workTypeList[0].id;
|
|
}
|
|
delete data.provinceid;
|
|
delete data.areaid;
|
|
delete data.distid;
|
|
delete data.logo;
|
|
delete data.show_avatar;
|
|
delete data.industry_id;
|
|
delete data.industry_pid;
|
|
delete data.show_expect_position;
|
|
delete data.graduated_school;
|
|
console.log(data);
|
|
for(let key in data){
|
|
if(!data[key] && data[key] !== 0){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'请完善资料'
|
|
});
|
|
return
|
|
|
|
}else if(Array.isArray(data[key])){
|
|
if(data[key].length == 0 && key != 'educational_experience' && key != 'work_experience'){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'请完善资料'
|
|
});
|
|
return
|
|
}
|
|
}
|
|
}
|
|
data.school_office.map(item=>{
|
|
item.start_time = item.start_time ? this.getDataTime(item.start_time):'';
|
|
item.end_time = item.end_time ? this.getDataTime(item.end_time):'';
|
|
})
|
|
data.work_experience.map(item=>{
|
|
item.start_time = item.start_time ? this.getDataTime(item.start_time):'';
|
|
item.end_time = item.end_time ? this.getDataTime(item.end_time):'';
|
|
})
|
|
data.educational_experience.map(item=>{
|
|
item.start_time = item.start_time ? this.getDataTime(item.start_time):'';
|
|
item.end_time = item.end_time ? this.getDataTime(item.end_time):'';
|
|
})
|
|
data.birth_time = this.getDataTime(data.birth_time);
|
|
let datas = {};
|
|
datas.data = JSON.stringify(data);
|
|
App._post_form(
|
|
`d&p=recruit&do=editResume&type=post`,
|
|
datas,
|
|
res => {
|
|
console.log(res,'提交结果');
|
|
uni.showToast({
|
|
title:res.message
|
|
});
|
|
setTimeout(()=>{
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
},1000)
|
|
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
},
|
|
workTypeChange(e){
|
|
this.workTypeIndex = e.detail.value;
|
|
this.userInfo.job_type = this.workTypeList[this.workTypeIndex].id;
|
|
},
|
|
experienceChange(e){
|
|
this.experienceIndex = e.detail.value;
|
|
this.userInfo.experience_label_id = this.experienceList[this.experienceIndex].id;
|
|
},
|
|
incumbencyChange(e){
|
|
this.incumbencyIndex = e.detail.value;
|
|
this.userInfo.work_status = this.incumbencyList[this.incumbencyIndex].id;
|
|
},
|
|
educationChange(e){
|
|
// debugger
|
|
this.educationIndex = e.detail.value;
|
|
this.userInfo.education_label_id = this.educationList[this.educationIndex].id;
|
|
// this.educationIndex = e.detail.value;
|
|
// this.userInfo.education = this.educationIndex + 1;
|
|
},
|
|
genderChange(e){
|
|
this.genderIndex = e.detail.value;
|
|
this.userInfo.gender = Number(this.genderIndex) + 2;
|
|
},
|
|
bindPickerChange(e){
|
|
this.pickerindex = e.detail.value;
|
|
this.userInfo.meralid = this.pickerarray[this.pickerindex].id;
|
|
},
|
|
clickclassTwo(item){
|
|
if(this.businessList.length == 3 && !item.checked){
|
|
uni.showToast({
|
|
icon:'none',
|
|
title:'最多选择三个职位'
|
|
});
|
|
return
|
|
}
|
|
if(item.checked){
|
|
this.businessList.map((items,index)=>{
|
|
if(items.id == item.id){
|
|
this.businessList.splice(index,1)
|
|
}
|
|
});
|
|
this.industrysublevel.map(items=>{
|
|
items.checked = false;
|
|
this.businessList.map(it=>{
|
|
if(it.id == items.id){
|
|
items.checked = true;
|
|
}
|
|
})
|
|
});
|
|
}else{
|
|
this.businessList.push(item);
|
|
this.industrysublevel.map(items=>{
|
|
items.checked = false;
|
|
if(item.id == items.id){
|
|
items.checked = !item.checked;
|
|
};
|
|
this.businessList.map(it=>{
|
|
if(it.id == items.id){
|
|
items.checked = true;
|
|
}
|
|
})
|
|
});
|
|
}
|
|
if(this.businessList.length == 1){
|
|
this.userInfo.expect_position = [this.businessList[0].id];
|
|
}else if(this.businessList.length == 2){
|
|
this.userInfo.expect_position = [this.businessList[0].id,this.businessList[1].id];
|
|
}else{
|
|
this.userInfo.expect_position = [this.businessList[0].id,this.businessList[1].id,this.businessList[2].id];
|
|
}
|
|
|
|
|
|
this.loadlogo = false;
|
|
this.loadlogo = true;
|
|
console.log(item)
|
|
},
|
|
clickclass(item){
|
|
// console.log(item);
|
|
|
|
this.industrysubdivide.map(items=>{
|
|
items.checked = false;
|
|
if(item.id == items.id){
|
|
items.checked = true;
|
|
}
|
|
});
|
|
App._post_form(
|
|
`&p=recruit&do=industryList&type=3&pid=${item.id}`,
|
|
{},
|
|
res => {
|
|
this.industrysublevel = res.data;
|
|
this.industrysublevel.map(item=>{
|
|
item.checked = false;
|
|
this.businessList.map(items=>{
|
|
if(items.id == item.id){
|
|
item.checked = true;
|
|
}
|
|
})
|
|
})
|
|
|
|
this.loadlogo = false;
|
|
this.loadlogo = true;
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
// this.industryAll.map((items,indexs)=>{
|
|
// items.twotype.map((itemss,indexss)=>{
|
|
// itemss.checked = false;
|
|
// if(item.id == itemss.id){
|
|
// itemss.checked = true;
|
|
// this.industryclass = item.name
|
|
// }
|
|
// })
|
|
// })
|
|
|
|
this.loadlogo = false;
|
|
this.loadlogo = true;
|
|
},
|
|
clickindustry(item){
|
|
this.industry.map(items=>{
|
|
items.checked = false;
|
|
if(item.id == items.id){
|
|
items.checked = true;
|
|
}
|
|
})
|
|
App._post_form(
|
|
`&p=recruit&do=industryList&type=2&pid=${item.id}`,
|
|
{},
|
|
res => {
|
|
this.industrysubdivide = res.data;
|
|
this.industrysubdivide.map(item=>{
|
|
item.checked = false;
|
|
})
|
|
|
|
this.loadlogo = false;
|
|
this.loadlogo = true;
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
// console.log(item);
|
|
|
|
},
|
|
getenter(id){
|
|
let _this = this;
|
|
_this.owenscitylist.map((item,index)=>{
|
|
item.area.map(items=>{
|
|
items.dist.map(itemss=>{
|
|
if(itemss.id == _this.agencyData.areaid){
|
|
_this.userInfo.provinceid = item.id;
|
|
_this.userInfo.areaid = items.id;
|
|
_this.userInfo.distid = itemss.id;
|
|
_this.provinceidName = item.name;
|
|
_this.areaidName = items.name;
|
|
_this.distidName = itemss.name;
|
|
}
|
|
})
|
|
})
|
|
});
|
|
if(!_this.provinceidName){
|
|
_this.provinceidName = _this.languageStatus != 1?'请选择工作地区':'업무 지역을 선택하세요'
|
|
};
|
|
},
|
|
lookimg(type,url,index){
|
|
if(type == 1){
|
|
let img = [];
|
|
img.push(url);
|
|
uni.previewImage({
|
|
urls:img,
|
|
current:0
|
|
})
|
|
}else{
|
|
uni.previewImage({
|
|
urls:url,
|
|
current:index
|
|
})
|
|
}
|
|
|
|
},
|
|
closePreview(type, url) {
|
|
let _this = this;
|
|
for (let i = 0; i < _this.userInfo.thumbs.length; i++) {
|
|
if (url == _this.userInfo.thumbs[i]) {
|
|
_this.userInfo.thumbs.splice(i, 1);
|
|
// _this.userInfo.thumbs.splice(i, 1);
|
|
}
|
|
}
|
|
},
|
|
closeLogo(){
|
|
this.userInfo.logo = '';
|
|
this.userInfo.avatar = '';
|
|
},
|
|
uplodephone(length,localIds){
|
|
let _this = this;
|
|
wxApi.uoloadIg(localIds[length], data => {
|
|
if (data.errMsg === 'uploadImage:ok') {
|
|
uni.showLoading({});
|
|
let requestData = {
|
|
upload_type: 2,
|
|
id: data.serverId
|
|
};
|
|
App._post_form(
|
|
'&do=uploadFiles',
|
|
requestData,
|
|
res => {
|
|
if (res.errno === 0) {
|
|
let num = length + 1;
|
|
// uni.setTimeout(_this.uoloadIgs(length, ids, resImg, type), 500);
|
|
// setTimeout(()=>{
|
|
// _this.uplodephone(_this.uploadlength,_this.localIds);
|
|
// },100)
|
|
// uni.showToast({
|
|
// title:'chengg',
|
|
// icon:'none'
|
|
// })
|
|
_this.userInfo.thumbs.push(res.data.img);
|
|
if(num < _this.uploadlength){
|
|
uni.setTimeout(_this.uplodephone(num,_this.localIds),500);
|
|
}
|
|
// _this.userInfo.thumbs.push(res.data.image);
|
|
|
|
|
|
}
|
|
},
|
|
false,
|
|
() => {
|
|
|
|
uni.hideLoading();
|
|
}
|
|
);
|
|
} else {
|
|
uni.hideLoading();
|
|
App.showError('上传失败');
|
|
}
|
|
});
|
|
|
|
},
|
|
// 文件上传接口
|
|
async uploadFiles(type, num) {
|
|
let _this = this;
|
|
_this.upimg = true;
|
|
// _this.uoloadIgs(i, 0, res, type);
|
|
// #ifdef H5
|
|
if(App.getClientType() == 2){
|
|
let res = await App.browser_upload(num);
|
|
for (let i = 0; i < res.tempFilePaths.length; i++) {
|
|
let aa = await App._upLoad(res.tempFilePaths[i]);
|
|
if (type == 1) {
|
|
_this.userInfo.avatar = aa.data.img;
|
|
_this.userInfo.logo = aa.data.image;
|
|
}
|
|
if (type == 2) {
|
|
_this.userInfo.thumbs.push(aa.data.img);
|
|
// _this.userInfo.thumbs.push(aa.data.image);
|
|
console.log(_this.userInfo,aa.data.img);
|
|
}
|
|
}
|
|
return
|
|
}
|
|
if(type == 2){
|
|
wxApi.choseImage(res => {
|
|
// let length
|
|
_this.localIds = res.localIds;
|
|
_this.uploadlength = res.localIds.length;
|
|
_this.uplodephone(0,_this.localIds);
|
|
},6);
|
|
}else{
|
|
wxApi.choseImage(res => {
|
|
let length = res.localIds.length;
|
|
res.localIds.map(item=>{
|
|
|
|
wxApi.uoloadIg(item, data => {
|
|
if (data.errMsg === 'uploadImage:ok') {
|
|
uni.showLoading({});
|
|
let requestData = {
|
|
upload_type: 2,
|
|
id: data.serverId
|
|
};
|
|
App._post_form(
|
|
'&do=uploadFiles',
|
|
requestData,
|
|
res => {
|
|
if (res.errno === 0) {
|
|
if (type == 1) {
|
|
_this.userInfo.avatar = res.data.img;
|
|
_this.userInfo.logo = res.data.image;
|
|
}
|
|
if (type == 2) {
|
|
_this.userInfo.thumbs.push(res.data.img);
|
|
// _this.userInfo.thumbs.push(res.data.image);
|
|
|
|
}
|
|
_this.loadlogo = !_this.loadlogo;
|
|
_this.loadlogo = !_this.loadlogo;
|
|
}
|
|
},
|
|
false,
|
|
() => {
|
|
uni.hideLoading();
|
|
}
|
|
);
|
|
} else {
|
|
uni.hideLoading();
|
|
App.showError('上传失败');
|
|
}
|
|
});
|
|
|
|
|
|
})
|
|
|
|
|
|
});
|
|
}
|
|
|
|
// #endif
|
|
// #ifndef H5
|
|
if(type == 1){
|
|
wx.chooseImage({
|
|
count: 1,
|
|
sourceType: ['album', 'camera'],
|
|
success: async function(res) {
|
|
// console.log(_this.userInfo.havestore, _this.page, '-------');
|
|
for (let i = 0; i < res.tempFilePaths.length; i++) {
|
|
let aa = await App._upLoad(res.tempFilePaths[i]);
|
|
if (type == 1) {
|
|
_this.userInfo.avatar = aa.data.img;
|
|
_this.userInfo.logo = aa.data.image;
|
|
}
|
|
if (type == 2) {
|
|
_this.userInfo.thumbs.push(aa.data.img);
|
|
// _this.userInfo.thumbs.push(aa.data.image);
|
|
console.log(_this.userInfo,aa.data.img);
|
|
}
|
|
}
|
|
_this.loadlogo = !_this.loadlogo;
|
|
_this.loadlogo = !_this.loadlogo;
|
|
}
|
|
});
|
|
}else{
|
|
wx.chooseImage({
|
|
count: 6,
|
|
sourceType: ['album', 'camera'],
|
|
success: async function(res) {
|
|
// console.log(_this.userInfo.havestore, _this.page, '-------');
|
|
for (let i = 0; i < res.tempFilePaths.length; i++) {
|
|
let aa = await App._upLoad(res.tempFilePaths[i]);
|
|
if (type == 1) {
|
|
_this.userInfo.avatar = aa.data.img;
|
|
_this.userInfo.logo = aa.data.image;
|
|
}
|
|
if (type == 2) {
|
|
_this.userInfo.thumbs.push(aa.data.img);
|
|
// _this.userInfo.thumbs.push(aa.data.image);
|
|
console.log(_this.userInfo,aa.data.img);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
// #endif
|
|
},
|
|
showThePic(){
|
|
App._post_form(
|
|
`&p=recruit&do=industryList&type=1`,
|
|
{},
|
|
res => {
|
|
this.industry = res.data;
|
|
this.industry.map(item=>{
|
|
item.checked = false;
|
|
})
|
|
this.industrysubdivide = [];
|
|
this.industrysublevel = [];
|
|
this.hangYe = !this.hangYe;
|
|
this.hangyeshow = !this.hangyeshow;
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
|
|
|
|
},
|
|
closeShareBottom(){
|
|
this.hangyeshow = !this.hangyeshow;
|
|
this.hangYe = !this.hangYe;
|
|
},
|
|
onCancel(){
|
|
|
|
},
|
|
cancel(){
|
|
this.hangyeshow = false;
|
|
},
|
|
confirm(){
|
|
this.hangyeshow = false;
|
|
},
|
|
getcityclass(){
|
|
return
|
|
let _this = this;
|
|
let data = {
|
|
provinceid:this.userInfo.provinceid,
|
|
areaid:this.userInfo.areaid,
|
|
distid:this.userInfo.distid
|
|
}
|
|
App._post_form(
|
|
`&p=yellowpage&do=area2cate`,
|
|
data,
|
|
res => {
|
|
|
|
console.log(res,'更换地区结果');
|
|
_this.industry = res.data.parents;
|
|
for(let key in _this.industry){
|
|
_this.industry[key].checked = false;
|
|
};
|
|
console.log(_this.industry,'测试自动');
|
|
_this.industryAll = res.data.childrens;
|
|
for(let key in _this.industryAll){
|
|
_this.industryAll[key].map(item=>{
|
|
item.checked = false;
|
|
if(item.id == _this.userInfo.two_class){
|
|
_this.industrysubdivide = [];
|
|
_this.loadlogo = false;
|
|
_this.loadlogo = true;
|
|
}
|
|
})
|
|
console.log(_this.industryAll,'还地区')
|
|
};
|
|
_this.userInfo.one_class = '';
|
|
_this.userInfo.two_class = '';
|
|
_this.industryclass = '';
|
|
if(Array.isArray(res.data.childrens) || Array.isArray(res.data.parents)){
|
|
_this.industrysubdivide = res.data.childrens;
|
|
_this.industryclass = '当前地区暂无行业分类';
|
|
|
|
if(_this.oldDistid !== _this.userInfo.distid){
|
|
uni.showToast({
|
|
title:'当前地区暂无行业分类',
|
|
icon:'none'
|
|
});
|
|
}
|
|
}else{
|
|
console.log(_this.oldDistid,_this.userInfo.distid,777777)
|
|
if(_this.oldDistid !== _this.userInfo.distid){
|
|
uni.showToast({
|
|
title:'更换地区请重新选择当前地区行业',
|
|
icon:'none'
|
|
});
|
|
}
|
|
}
|
|
_this.loadlogo = false;
|
|
_this.loadlogo = true;
|
|
// App.navigationTo({
|
|
// url: 'pages/mainPages/payment/payment?orderid=' + res.data.orderid
|
|
// });
|
|
},
|
|
false,
|
|
() => {
|
|
}
|
|
);
|
|
},
|
|
onConfirm(e){
|
|
console.log(e);
|
|
let _this = this;
|
|
this.provinceidName = e.obj.province.label;
|
|
this.areaidName = e.obj.city.label;
|
|
this.distidName = e.obj.area.label;
|
|
this.oldDistid = this.userInfo.distid;
|
|
this.userInfo.provinceid = e.value[0];
|
|
this.userInfo.areaid = e.value[1];
|
|
this.userInfo.distid = e.value[2];
|
|
this.getcityclass();
|
|
},
|
|
visble(){
|
|
this.visiblec = true;
|
|
},
|
|
getLocation() {
|
|
let _this = this;
|
|
// #ifdef MP-WEIXIN
|
|
uni.chooseLocation({
|
|
keyword: '',
|
|
success: function(e) {
|
|
// _this.userInfo.address = e.address;
|
|
_this.lblis.lat = e.latitude;
|
|
_this.lblis.lng = e.longitude;
|
|
_this.lblis.address = e.address
|
|
// console.log(e);
|
|
// _this.onkoc = 0;
|
|
_this.getloctions(_this.lblis)
|
|
}
|
|
});
|
|
// #endif
|
|
// #ifdef H5
|
|
_this.isOpenLaction = true;
|
|
// #endif
|
|
//#ifdef APP-PLUS
|
|
App.navigationTo({
|
|
url: 'pages/subPages2/map/index'
|
|
});
|
|
//#endif
|
|
},
|
|
getloctions(lblis){
|
|
|
|
let _this = this;
|
|
// console.log(_this.owenscitylist);
|
|
App._post_form(`&p=member&do=lng2areaid&lng=${lblis.lng}&lat=${lblis.lat}`, {}, res => {
|
|
// _this.userInfo.address = lblis.address;
|
|
console.log(_this.userInfo.distid,res.data.countyid,'666666');
|
|
_this.oldDistid = _this.userInfo.distid;
|
|
_this.userInfo.provinceid = res.data.provinceid;
|
|
_this.userInfo.distid = res.data.countyid;
|
|
_this.userInfo.areaid = res.data.cityid;
|
|
_this.owenscitylist.map((item,index)=>{
|
|
if(item.id == _this.userInfo.provinceid){
|
|
_this.provinceidName = item.name;
|
|
item.area.map(items=>{
|
|
if(items.id == _this.userInfo.areaid){
|
|
_this.areaidName = items.name;
|
|
items.dist.map(itemss=>{
|
|
if(itemss.id == _this.userInfo.distid){
|
|
_this.distidName = itemss.name;
|
|
this.getcityclass();
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
});
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page {
|
|
background-color: #f7f7f7;
|
|
}
|
|
</style>
|
|
<style lang="scss" scoped>
|
|
.enterForm {
|
|
padding: 100upx 0 0;
|
|
.bgimgbox {
|
|
.bgimg {
|
|
width: 100vw;
|
|
height: 25vh;
|
|
}
|
|
}
|
|
.formbox {
|
|
padding: 30upx;
|
|
padding-bottom: 130upx;
|
|
// height: 50vh;
|
|
position: relative;
|
|
.formdatabox {
|
|
padding: 30upx;
|
|
width: 84vw;
|
|
background-color: #ffffff;
|
|
border-radius: 15upx;
|
|
position: relative;
|
|
top: -100upx;
|
|
.sign {
|
|
height: 28upx;
|
|
margin-top: 5upx;
|
|
width: 8upx;
|
|
background-color: #ff4444;
|
|
border-radius: 30%;
|
|
flex: 0.014;
|
|
}
|
|
}
|
|
.logobox {
|
|
span {
|
|
font-size: 24upx;
|
|
}
|
|
.userImgUpdataon {
|
|
width: 180upx;
|
|
margin: 20upx 0;
|
|
height: 180upx;
|
|
border-radius: 10upx;
|
|
border: 1upx solid #cccccc;
|
|
position: relative;
|
|
overflow: hidden;
|
|
.imgs {
|
|
width: 180upx;
|
|
height: 180upx;
|
|
}
|
|
.close {
|
|
position: absolute;
|
|
width: 30upx;
|
|
height: 30upx;
|
|
right: 10upx;
|
|
top: 10upx;
|
|
}
|
|
}
|
|
.userImgUpdata {
|
|
width: 180upx;
|
|
margin: 20upx 0;
|
|
height: 180upx;
|
|
border-radius: 10upx;
|
|
border: 1upx solid #cccccc;
|
|
position: relative;
|
|
.img {
|
|
width: 80upx;
|
|
height: 80upx;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 30%;
|
|
transform: translate(-50%);
|
|
}
|
|
}
|
|
}
|
|
.formtitle {
|
|
padding: 25upx 10upx;
|
|
background-color: #fafafa;
|
|
margin-top: 20upx;
|
|
border-radius: 10upx;
|
|
}
|
|
}
|
|
.iframe-wid-hgt {
|
|
width: 100vw;
|
|
}
|
|
.hangye {
|
|
height: 40vh;
|
|
width: 100vw;
|
|
box-sizing: border-box;
|
|
padding: 30upx;
|
|
background-color: #ffffff;
|
|
border-radius: 15upx 15upx 0 0;
|
|
.industryclass-item {
|
|
padding: 20upx;
|
|
margin: 15upx;
|
|
text-align: center;
|
|
border-radius: 15upx;
|
|
}
|
|
.classcheck {
|
|
background-color: #f7f7f7;
|
|
}
|
|
.isclasschecked {
|
|
background-color: #ff4444;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
.timePickerView {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.after-work {
|
|
width: 80vw;
|
|
height: 70vh;
|
|
background-color: #f8f8f8;
|
|
padding: 30upx;
|
|
overflow: auto;
|
|
border-radius: 20upx;
|
|
.after-work-title {
|
|
font-size: 28upx;
|
|
|
|
}
|
|
.after-item {
|
|
margin-bottom: 30upx;
|
|
border-radius: 20upx;
|
|
padding: 30upx;
|
|
background-color: #ffffff;
|
|
.after-item-item {
|
|
padding-bottom: 20upx;
|
|
}
|
|
}
|
|
.work-btn {
|
|
position: fixed;
|
|
bottom:70upx;
|
|
left: 50%;
|
|
transform: translate(-50%);
|
|
display: inline-block;
|
|
// margin-left: 32%;
|
|
padding: 15upx 80upx;
|
|
background-color: #ff4444;
|
|
color: #ffffff;
|
|
border-radius: 8upx;
|
|
}
|
|
.add-work {
|
|
width: 80vw;
|
|
padding: 30upx;
|
|
// height: 50vh;
|
|
background-color: #ffffff;
|
|
border-radius: 15upx;
|
|
position: relative;
|
|
.redbtn {
|
|
width: 50%;
|
|
padding: 10upx;
|
|
background-color: #ff4444;
|
|
color: #ffffff;
|
|
border-radius: 10upx;
|
|
position: relative;
|
|
left: 50%;
|
|
transform: translate(-50%);
|
|
z-index: 9;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|