flat: 暂存
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<view class="slo">
|
||||
添加职业技能,获得个性化的职位推荐
|
||||
</view>
|
||||
<view class="jobcontent" @click="goAddind">
|
||||
<!-- <view class="jobcontent" @click="goAddind">
|
||||
<view class="jobinfo">
|
||||
<view class="jobAddress">
|
||||
我所属的行业
|
||||
@@ -15,7 +15,7 @@
|
||||
<view v-else class="jobText nochoose">请选择</view>
|
||||
</view>
|
||||
<image src="../../../static/img/right.svg" mode=""></image>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="border"></view>
|
||||
<view class="jobcontent" @click="skill">
|
||||
<view class="jobinfo">
|
||||
@@ -89,8 +89,9 @@ export default {
|
||||
uni.$on('setSkill', ({
|
||||
detail
|
||||
}) => {
|
||||
console.log('detail,', detail)
|
||||
// this.skillsId = id
|
||||
this.skillsName = detail.parentLabel + "-" + detail.label
|
||||
this.skillsName = `${detail.parentLabel }-${detail.parentTwoLabel}-${detail.label}`
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -100,33 +101,22 @@ export default {
|
||||
})
|
||||
},
|
||||
skill: function () {
|
||||
if (this.tradeId) {
|
||||
// if (this.tradeId) {
|
||||
uni.navigateTo({
|
||||
url: `./skill?id=${this.worktypesId}&tradeId=${this.tradeId}&maxLayer=2&type=1`
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先选择从事的行业',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: '请先选择从事的行业',
|
||||
// icon: 'none'
|
||||
// });
|
||||
// }
|
||||
},
|
||||
skillLevel: function () {
|
||||
if (!this.tradeId) {
|
||||
uni.showToast({
|
||||
title: '请先选择从事的行业',
|
||||
icon: 'none'
|
||||
});
|
||||
} else if (!this.worktypesName) {
|
||||
uni.showToast({
|
||||
title: '请先选择具备的技能',
|
||||
icon: 'none'
|
||||
});
|
||||
} else {
|
||||
|
||||
uni.navigateTo({
|
||||
url: `./skillLevel?id=${this.skillsId}&worktypesId=${this.worktypesId}&maxLayer=2&type=2`
|
||||
url: `./skillLevel?id=${this.skillsId}&worktypesId=${this.worktypesId}&maxLayer=3&type=2`
|
||||
})
|
||||
}
|
||||
},
|
||||
submit: function () {
|
||||
console.log(this.tradeName, this.worktypesName, this.skillsName);
|
||||
@@ -139,7 +129,7 @@ export default {
|
||||
uni.navigateBack()
|
||||
})
|
||||
// 岗位
|
||||
addSkills(this.tradeName, result1[0], result1[1], 1).then(res => {
|
||||
addSkills(this.tradeName, `${result1[0]}、${result1[1]}`, result1[2], 1).then(res => {
|
||||
uni.navigateBack()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user