职业素养功能修改
This commit is contained in:
@@ -3,125 +3,80 @@
|
||||
<view class="content">
|
||||
<view class="head">
|
||||
<view class="h3">
|
||||
{{jobDetailData.Name}}
|
||||
{{jonInfo.Name}}
|
||||
</view>
|
||||
<view class="h2">所属大类:<text>{{jobDetailData.BigCategoryName}}</text></view>
|
||||
<view class="h2">所属中类:<text>{{jobDetailData.MidCategoryName}}</text></view>
|
||||
<view class="h2">所属小类:<text>{{jobDetailData.SmallCategoryName}}</text></view>
|
||||
<view class="intention-btn" v-if="jobDetailData.ShowIntention" v-text="jobDetailData.IsIntention?'取消意向':'加入意向'" @click="changeIntention"></view>
|
||||
<view class="h2">所属大类:<text>{{bigType}}</text></view>
|
||||
<view class="h2">所属中类:<text>{{midType}}</text></view>
|
||||
<view class="h2">所属小类:<text>{{smallType}}</text></view>
|
||||
</view>
|
||||
<view class="txt-content">
|
||||
<view class="article-item" v-if="jobDetailData.VideoUrl">
|
||||
<view class="article-item" v-if="jonInfo.VideoUrl">
|
||||
<text class="h4">职业新说:</text>
|
||||
<video :src="jobDetailData.VideoUrl"></video>
|
||||
<video :src="jonInfo.VideoUrl"></video>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.TopIntroduction">
|
||||
<view class="article-item" v-if="jonInfo.TopIntroduction">
|
||||
<text class="h4">职业说明:</text>
|
||||
<view class="article-content" v-html="jobDetailData.TopIntroduction"></view>
|
||||
<view class="article-content" v-html="jonInfo.TopIntroduction"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.TopWorkContent">
|
||||
<view class="article-item" v-if="jonInfo.TopWorkContent">
|
||||
<text class="h4">工作内容:</text>
|
||||
<view class="article-content" v-html="jobDetailData.TopWorkContent"></view>
|
||||
<view class="article-content" v-html="jonInfo.TopWorkContent"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.QualityRequirements">
|
||||
<view class="article-item" v-if="jonInfo.QualityRequirements">
|
||||
<text class="h4">从业要求:</text>
|
||||
<view class="article-content" v-html="jobDetailData.QualityRequirements"></view>
|
||||
<view class="article-content" v-html="jonInfo.QualityRequirements"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.AbilityRequirements">
|
||||
<view class="article-item" v-if="jonInfo.AbilityRequirements">
|
||||
<text class="h4">能力要求:</text>
|
||||
<view class="article-content" v-html="jobDetailData.AbilityRequirements"></view>
|
||||
<view class="article-content" v-html="jonInfo.AbilityRequirements"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.SalaryStr">
|
||||
<view class="article-item" v-if="jonInfo.SalaryStr">
|
||||
<text class="h4">薪资范围:</text>
|
||||
<view class="article-content" v-html="jobDetailData.SalaryStr"></view>
|
||||
<view class="article-content" v-html="jonInfo.SalaryStr"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.CareerProspects">
|
||||
<view class="article-item" v-if="jonInfo.CareerProspects">
|
||||
<text class="h4">就业前景:</text>
|
||||
<view class="article-content" v-html="jobDetailData.CareerProspects"></view>
|
||||
<view class="article-content" v-html="jonInfo.CareerProspects"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="listOne.length > 0">
|
||||
<view class="article-item" v-if="jonInfo.JobSkill">
|
||||
<text class="h4">职业技能:</text>
|
||||
<view class="attr-wrap">
|
||||
<view class="row" v-for="(item,index) in listOne" :key="index">
|
||||
<view class="name">
|
||||
<text class="label">{{index + 1}}</text>{{item.Name}}
|
||||
</view>
|
||||
<view class="desc">
|
||||
{{item.Explain}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.JobSkill"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="listTwo.length > 0">
|
||||
<view class="article-item" v-if="jonInfo.JobAbility">
|
||||
<text class="h4">职业能力:</text>
|
||||
<view class="attr-wrap">
|
||||
<view class="row" v-for="(item,index) in listTwo" :key="index">
|
||||
<view class="name">
|
||||
<text class="label">{{index + 1}}</text>{{item.Name}}
|
||||
</view>
|
||||
<view class="desc">
|
||||
{{item.Explain}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.JobAbility"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="listThree.length > 0">
|
||||
<view class="article-item" v-if="jonInfo.JobKnowledge">
|
||||
<text class="h4">具备知识:</text>
|
||||
<view class="attr-wrap">
|
||||
<view class="row" v-for="(item,index) in listThree" :key="index">
|
||||
<view class="name">
|
||||
<text class="label">{{index + 1}}</text>{{item.Name}}
|
||||
</view>
|
||||
<view class="desc">
|
||||
{{item.Explain}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.JobKnowledge"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="listFour.length > 0">
|
||||
<view class="article-item" v-if="jonInfo.JobRequire">
|
||||
<text class="h4">职业素养:</text>
|
||||
<view class="attr-wrap">
|
||||
<view class="row" v-for="(item,index) in listFour" :key="index">
|
||||
<view class="name">
|
||||
<text class="label">{{index + 1}}</text>{{item.Name}}
|
||||
</view>
|
||||
<view class="desc">
|
||||
{{item.Explain}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.JobRequire"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="listFive.length > 0">
|
||||
|
||||
<view class="article-item" v-if="jonInfo.JobActivity">
|
||||
<text class="h4">职业活动:</text>
|
||||
<view class="attr-wrap">
|
||||
<view class="row" v-for="(item,index) in listFive" :key="index">
|
||||
<view class="name">
|
||||
<text class="label">{{index + 1}}</text>{{item.Name}}
|
||||
</view>
|
||||
<view class="desc">
|
||||
{{item.Explain}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.JobActivity"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.DevelopmentPath">
|
||||
<view class="article-item" v-if="jonInfo.JobPath">
|
||||
<text class="h4">发展路径:</text>
|
||||
<view class="article-content" v-html="jobDetailData.DevelopmentPath"></view>
|
||||
<view class="article-content" v-html="jonInfo.JobPath"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jobDetailData.SpecialtyList != null && jobDetailData.SpecialtyList.length > 0">
|
||||
<view class="article-item" v-if="jonInfo.TopWorkContent">
|
||||
<text class="h4">推荐专业:</text>
|
||||
<view class="sp-wrap">
|
||||
<view class="item" v-for="(item,index) in jobDetailData.SpecialtyList":key="index">
|
||||
{{item.Name}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="article-content" v-html="jonInfo.TopWorkContent"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jonInfo.SalaryStr">
|
||||
<text class="h4">薪资范围:</text>
|
||||
<view class="article-content" v-html="jonInfo.SalaryStr"></view>
|
||||
</view>
|
||||
<view class="article-item" v-if="jonInfo.CareerProspects">
|
||||
<text class="h4">就业前景:</text>
|
||||
<view class="article-content" v-html="jonInfo.CareerProspects"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fiexd-visitor" v-if="isVisitor">
|
||||
<navigator class="btn" url="/pagesUserInfo/binding/binding?routeType=6">请先登录</navigator>
|
||||
</view>
|
||||
<!-- <u-modal :show="showLogin" content='观看完整内容,请先登录' width='500rpx' @confirm="showLogin=false"></u-modal> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -135,21 +90,27 @@
|
||||
isVisitor: false, //游客
|
||||
user: uni.getStorageSync("CAuserInfo").user,
|
||||
id: 0,
|
||||
jobDetailData: {
|
||||
Name: "",
|
||||
BigCategoryName: "",
|
||||
MidCategoryName: "",
|
||||
SmallCategoryName: "",
|
||||
VideoUrl: "",
|
||||
TopIntroduction: "",
|
||||
TopWorkContent: "",
|
||||
QualityRequirements: "",
|
||||
},
|
||||
listOne: [],//职业技能
|
||||
listTwo: [],//职业能力
|
||||
listThree: [],//具备知识
|
||||
listFour: [],//职业素养
|
||||
listFive: [],//职业活动
|
||||
// jonInfo: {
|
||||
// Name: "",
|
||||
// BigCategoryName: "",
|
||||
// MidCategoryName: "",
|
||||
// SmallCategoryName: "",
|
||||
// VideoUrl: "",
|
||||
// TopIntroduction: "",
|
||||
// TopWorkContent: "",
|
||||
// QualityRequirements: "",
|
||||
// },
|
||||
// listOne: [],//职业技能
|
||||
// listTwo: [],//职业能力
|
||||
// listThree: [],//具备知识
|
||||
// listFour: [],//职业素养
|
||||
// listFive: [],//职业活动
|
||||
|
||||
jonInfo: {},
|
||||
isIntention: "",
|
||||
bigType: "",
|
||||
midType: "",
|
||||
smallType: "",
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -162,23 +123,15 @@
|
||||
this.queryJobDetailById();
|
||||
},
|
||||
methods: {
|
||||
showConfirmInfor(){
|
||||
uni.showModal({
|
||||
content:"观看完整内容,请先登录",
|
||||
confirmText:"确认",
|
||||
confirmColor:"#1677ff",
|
||||
showCancel:false
|
||||
})
|
||||
},
|
||||
changeIntention(){
|
||||
uni.showLoading({
|
||||
title: "加载中"
|
||||
})
|
||||
let isIntention = this.jobDetailData.IsIntention;
|
||||
let isIntention = this.jonInfo.IsIntention;
|
||||
api1.doIntention(2,this.id,isIntention?1:0).then((res)=>{
|
||||
uni.hideLoading();
|
||||
if(res.Result == 1){
|
||||
this.jobDetailData.IsIntention = !this.jobDetailData.IsIntention;
|
||||
this.jonInfo.IsIntention = !this.jonInfo.IsIntention;
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -190,44 +143,11 @@
|
||||
api.queryJobDetailById(this.id).then((res) => {
|
||||
uni.hideLoading();
|
||||
if(res.Result == 1){
|
||||
this.jobDetailData = res.Data;
|
||||
let attList = res.Data.AttList;
|
||||
if(attList != null){
|
||||
let listOne = [],//职业技能
|
||||
listTwo = [],//职业能力
|
||||
listThree = [],//具备知识
|
||||
listFour = [],//职业素养
|
||||
listFive = [];//职业活动
|
||||
attList.forEach(item => {
|
||||
switch(item.Identify){
|
||||
case 1 :{
|
||||
listOne.push(item);
|
||||
break;
|
||||
}
|
||||
case 2 :{
|
||||
listTwo.push(item);
|
||||
break;
|
||||
}
|
||||
case 3 :{
|
||||
listThree.push(item);
|
||||
break;
|
||||
}
|
||||
case 5 :{
|
||||
listFour.push(item);
|
||||
break;
|
||||
}
|
||||
case 6 :{
|
||||
listFive.push(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.listOne = listOne;
|
||||
this.listTwo = listTwo;
|
||||
this.listThree = listThree;
|
||||
this.listFour = listFour;
|
||||
this.listFive = listFive;
|
||||
}
|
||||
this.jonInfo = res.Data.info;
|
||||
this.isIntention = res.Data.exit;
|
||||
this.bigType = res.Data.parent3
|
||||
this.midType = res.Data.parent2
|
||||
this.smallType = res.Data.parent1
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -37,17 +37,6 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="fiexd-visitor" v-if="isVisitor">
|
||||
<navigator class="btn" url="/packageB/pagesUserInfo/binding/binding?routeType=6">请先登录</navigator>
|
||||
</view>
|
||||
<!-- <u-modal :show="showTip" @confirm="showTip=false" @cancel="showTip=false" confirmText="我明白了">
|
||||
<view class="slot-content">
|
||||
<view class="tip-layer">
|
||||
<view class="title">{{layerTitile}}</view>
|
||||
<view class="desc" v-html="layerDesc"></view>
|
||||
</view>
|
||||
</view>
|
||||
</u-modal> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -59,7 +48,6 @@
|
||||
return {
|
||||
kw: "", //搜索关键
|
||||
user: uni.getStorageSync("CAuserInfo").user,
|
||||
isVisitor: false, //游客
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
winHeight: wx.getWindowInfo().windowHeight,
|
||||
jobDataList: [],
|
||||
@@ -81,10 +69,8 @@
|
||||
},
|
||||
onLoad(e) {
|
||||
if(this.user == undefined || this.user == null){
|
||||
this.isVisitor = true;
|
||||
this.loginHeight=99;
|
||||
}else {
|
||||
this.isVisitor = false;
|
||||
this.loginHeight=0;
|
||||
}
|
||||
this.scrollRightTop = 1;
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
//this.showLogin = true;
|
||||
}else {
|
||||
uni.navigateTo({
|
||||
url: `/packageCa/job/details?id=${item.Id}&name=${item.Name}`
|
||||
url: `/packageCa/job/details?id=${item.EnCodeId}&name=${item.Name}`
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user