软测宝小程序
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.
 
 
 

90 lines
2.4 KiB

<template>
<view class='navTab'>
<p style='font-size: 18px;font-weight: bold;margin: 10px 0 20px 0;'>工作经历</p>
<u-input style="width:100%;" border='true' type='textarea' height='300' maxlength='3000' v-model="workexe" placeholder='请输入工作经历'/>
<p style="margin: 10px 0;">工作经历填写示例:</p>
<p style='font-size:12px;color:#595959 ;'>2017.5-2021.7 西安未央软件有限公司 软件测试工程师</p>
<p style='font-size:12px;color:#595959 ;margin:5px 0;'>2013.9-2017.4. 西安大唐软件有限公司 软件测试工程师</p>
<p style='font-size:12px;color:#595959 ;'>2009.9-2013.7 西安科技大学 软件工程专业 本科</p>
<view class="bottbtn" @click="resource">保存</view>
</view>
</template>
<script>
export default {
data() {
return {
workexe:''
}
},
onLoad() {
let wxUserInfo = uni.getStorageSync('wxUserInfo');
this.http.quickGet(`/tester/TesterInfo/resume/${wxUserInfo.userId}`,true).then(res=>{
this.workexe=res.data.workExperience
if(!this.workexe){
uni.setNavigationBarTitle({
title: '添加工作经历'
});
}else{
uni.setNavigationBarTitle({
title: '编辑工作经历'
});
}
console.log('简历信息---',res)
})
},
methods: {
resource(){
let wxUserInfo = uni.getStorageSync('wxUserInfo');
if(!this.workexe){
uni.showToast({ title: '请输入工作经历', icon: 'none', duration: 1000 });
return;
}
if(this.workexe.length>3000){
uni.showToast({ title: '最多可输入3000字', icon: 'none', duration: 1000 });
return;
}
let data={
userId:wxUserInfo.userId,
workExperience:this.workexe,
}
this.http.quickPost(`/tester/TesterInfo/experience`,data,true).then(res=>{
if(res.data.code==200){
uni.showToast({ title: '工作经历编辑成功', icon: 'success', duration: 2000 });
setTimeout(()=>{
uni.navigateBack({
delta:1
})
},1000)
}
})
}
}
}
</script>
<style>
.navTab{
background-color: #ffffff;
width: 96vw;
margin: 2vh auto;
padding: 10px 15px 30px 25px;
border-radius: 5px;
}
/* .navTab .u-input{
min-height:200px;
} */
.bottbtn{
margin:30px 3vw 15px 3vw;
height:75rpx;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border-radius:15rpx;
text-align: center;
line-height:75rpx;
color: #FFFFFF;
font-size: 33rpx;
}
</style>