123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492 |
- <template>
- <view>
- <u-navbar back-text="求职信息" back-icon-size="28" back-icon-color="#ffffff"
- :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
- <view class="main">
- <!-- 个人信息 -->
- <view class="person-infos">
- <view class="infos">
- <view class="name" v-if="userInfo.status==1">
- {{userInfo.realName?userInfo.realName:'实名认证后生效'}}
- </view>
- <view class="name" v-if="userInfo.status==0" style=" font-size: 36rpx;color: #4CAF50;">
- 实名认证后生效
- <view style=" font-size: 24rpx;color: #4CAF50;" >
- 生效后可以进行简历投递,可以被企业邀请等
- </view>
- </view>
- <view class="gender-age" v-if="userInfo.status==1">
- <text class="text">女</text>|
- <text class="text">28</text>
- </view>
- </view>
- <view class="photo" @click="uploadPhoto">
- <u-avatar :src="src" size="120" mode="circle"></u-avatar>
- <img class="camera" src="@/assets/img/riFill-camera-fill Copy@1x.png" alt="">
- </view>
- </view>
-
- <u-select v-model="show" value-name="value" label-name="name"
- :list="list" @confirm="confirm"></u-select>
- <!-- 信息填写 -->
- <view class="information-group">
- <!-- 联系电话 -->
- <view class="item">
- <view class="title">
- 联系电话
- </view>
- <view class="input">
- {{tel}}
- </view>
- </view>
- <!-- 意向行业 -->
- <view class="item">
- <view class="title">
- 意向行业
- </view>
- <view class="input">
- <u-input type="select" v-model="intendedIndustries" @click="showselect(0)" placeholder="请选择意向行业"></u-input>
-
- </view>
-
- </view>
- <!--意向岗位 -->
- <view class="item">
- <view class="title">
- 意向岗位
- </view>
- <view class="input">
- <u-input type="text" v-model="formData.intendedPosition"
- placeholder="请填写想找的工作岗位"></u-input>
-
- </view>
- </view>
- <!-- 期望薪资 -->
- <view class="item">
- <view class="title">
- 期望薪资
- </view>
- <view class="input2">
- <u-input type="number" v-model="formData.hopeSalary"
- placeholder="请填写期望薪资"></u-input>
-
-
- </view>
- <view class="unit">
- 元/天
- </view>
- </view>
- <!-- 结算方式 -->
- <view class="item">
- <view class="title">
- 结算方式
- </view>
- <view class="input">
- <u-input type="select" v-model="method"
- @click="showselect(1)" placeholder="请选择结算方式"></u-input>
-
-
- </view>
-
- </view>
- <!-- 工作经验 -->
- <view class="item">
- <view class="title">
- 工作经验
- </view>
- <view class="input">
- <u-input type="select" v-model="workExperience"
- @click="showselect(2)" placeholder="请选择工作经验"></u-input>
-
-
- </view>
-
- </view>
- <!-- 学历 -->
- <view class="item">
- <view class="title">
- 学历
- </view>
- <view class="input">
- <u-input type="select" v-model="education"
- @click="showselect(3)" placeholder="请选择学历"></u-input>
-
- </view>
-
- </view>
- </view>
- </view>
- <view class="service-description">
- <view class="title">
- <text>*</text>服务描述
- </view>
- <textarea class="textarea" v-model="formData.serviceDesc"
- placeholder="请描述您能提供哪些服务,或者是您擅长的,有助于您更快、更准确的找到工作。"></textarea>
- </view>
- <button class="save" @click="submit"
- type="default">保存</button>
- </view>
- </template>
- <script>
- import * as API_weixin from '@/apis/weixin.js'
-
- import * as API from '@/apis/pagejs/packages.js'
- export default {
- data() {
- return {
- src: '',
- tel: '15011110000',
- show: false,
- list: [],
- formData:{
- id:"",
- intendedIndustries:"",
- intendedPosition:"",
- hopeSalary:"",
- method:"",
- workExperience:"",
- education:"",
- serviceDesc:"",
- photo:"",
- },
- intendedIndustries:"",
- method:"",
- workExperience:"",
- education:"",
- sqlList:[[],[],[],[],[],[],[]],
- valueList:[-1,-1,-1,-1,-1,-1],
- selectIndex:0,
- form: {},
- userInfo:{}
- }
- },
- onLoad(){
- this.userInfo=this.carhelp.getPersonInfo()
- this.tel=this.userInfo.phone
- this.myJobHunt()
- },
- methods: {
- myJobHunt(){
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
-
- API.myJobHunt().then((res) => {
- uni.hideLoading()
- if(res.data.jobInformationInfo){
- this.formData = res.data.jobInformationInfo;
- var name=["intendedIndustries","method",
- "workExperience","education",]
- for(var i in name){
- console.log(name[i]+'N')
- this[name[i]]=this.formData[(name[i]+'N')]
- }
- this.src= this.formData.photo
- }
-
- }).catch(error => {
- uni.showToast({
- title: error,
- icon: "none"
- })
- })
- },
- submit(){
-
-
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- this.formData.photo=this.src
- API.createJobHunt(this.formData).then((res) => {
- uni.hideLoading();
-
- uni.showModal({
- title: '提示',
- content: '操作成功',
- showCancel:false,
- success: function (res) {
- if (res.confirm) {
-
- uni.navigateBack()
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
-
- }).catch(error => {
-
- uni.showToast({
- title: error
- })
- //this.getPhone()
-
- })
- },
- showselect(k){
- this.selectIndex=k;
- if(this.sqlList[k].length==0){
- var name=['意向行业','结算方式','工作经验','学历']
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API_weixin.findListByCatalogName({
- name:name[k],
-
- }).then((res) => {
- uni.hideLoading();
- this.sqlList[k]=res.data.dictionaryList
- this.list=this.sqlList[k];
- this.show= true
-
- }).catch(error => {
-
- uni.showToast({
- title: error
- })
- //this.getPhone()
-
- })
- }else{
- this.list=this.sqlList[k];
- this.show= true
- }
- },
- saveRecordConfirmMethod(fileData) {
- var token = this.carhelp.getToken()
- uni.uploadFile({
- url: process.car.BASE_URL + "uploadPicture", //仅为示例,非真实的接口地址
- filePath:fileData,
- header: {
- 'Authorization': token,
- //'Content-Type': 'multipart/form-data',
- 'X-Requested-With': 'XMLHttpRequest',
- // 'content-type': 'multipart/form-data'
- },
- name: 'photoFile',
- formData: {
- subFolder: "headimg"
- },
- success: (uploadFileRes) => {
-
-
- var obj = JSON.parse(uploadFileRes.data)
- console.log(obj);
- this.src = obj.data;
- // uni.hideLoading();
- }
- });
- },
- confirm(e) {
- this.show = false;
- var name=["intendedIndustries","method",
- "workExperience","education",]
- this[name[this.selectIndex]]=e[0].label
- this.formData[name[this.selectIndex]]=e[0].value
- console.log(e)
- },
- uploadPhoto() {
- let _self = this;
- const crop = {
- quality: 100,
- width: 600,
- height: 600,
- resize: true
- };
- // 上传图片
- uni.chooseImage({
- count: 1,
- crop,
- success: async (res) => {
- //(res);
- let tempFile = res.tempFiles[0];
- var filePath = res.tempFilePaths[0]
- let fileData = await new Promise((callback) => {
- uni.navigateTo({
- url: './cropImage?path=' + filePath +
- `&options=${JSON.stringify(crop)}`,
- animationType: "fade-in",
- events: {
- success: url => {
- callback(url)
- }
- }
- });
- })
- this.saveRecordConfirmMethod(fileData);
- }
- });
- },
- }
- }
- </script>
- <style>
- page {
- background: #F0F0F2;
- padding-bottom: 150px;
- }
- </style>
- <style lang="scss" scoped>
- .main {
- margin: 24rpx 32rpx;
- background-color: #fff;
- padding: 40rpx 32rpx 0;
- border-radius: 12px;
- .person-infos {
- display: flex;
- justify-content: space-between;
- .infos {
- .name {
- color: rgba(51, 51, 51, 1);
- font-size: 20px;
- font-family: 'PingFangSC-medium';
- }
- .gender-age {
- color: rgba(119, 119, 119, 1);
- margin-top: 8rpx;
- .text {
- margin: 0 8rpx;
- }
- .text:nth-of-type(1) {
- margin-left: 0;
- }
- }
- }
- .photo {
- position: relative;
- img {
- width: 60px;
- height: 60px;
- }
- .camera {
- width: 48rpx;
- height: 48rpx;
- position: absolute;
- top: 36rpx;
- left: 36rpx;
- z-index: 999;
- }
- }
- }
- .information-group {
- .item {
- display: flex;
- align-items: center;
- padding: 12rpx 0;
- border-bottom: 1px solid #f1f1f1;
- .title {
- color: rgba(51, 51, 51, 1);
- font-size: 32rpx;
- width: 140rpx;
- }
- .input2 {
- width: 360rpx;
- margin-left: 24rpx;
-
- /deep/.uni-input-input {
- color: rgba(51, 51, 51, 1);
- }
- }
- .input {
- width: 460rpx;
- margin-left: 24rpx;
- /deep/.uni-input-input {
- color: rgba(51, 51, 51, 1);
- }
- }
- .icon {
- margin-left: auto;
- }
- .unit {
- margin-left: auto;
- color: #333333;
- font-size: 24rpx;
- }
- }
- }
- }
- // 服务描述
- .service-description {
- margin: 24rpx 32rpx;
- background-color: #fff;
- border-radius: 12px;
- padding: 24rpx 32rpx;
- .title {
- color: #333333;
- font-size: 18px;
- font-family: 'PingFangSC-medium';
- }
- text {
- color: #FF0000;
- }
- .textarea {
- margin-top: 24rpx;
- line-height: 40rpx;
- width: 100%;
- height: 240rpx;
- }
- }
- .save {
- background-color: rgba(34, 149, 255, 1);
- color: rgba(241, 241, 241, 1);
- font-size: 18px;
- height: 96rpx;
- line-height: 96rpx;
- border-radius: 50px;
- position: fixed;
- left: 32rpx;
- right: 32rpx;
- bottom: 20rpx;
- z-index: 999;
- }
- </style>
|