This commit is contained in:
francis_fh
2025-12-05 11:26:08 +08:00
4 changed files with 68 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
生涯罗盘 生涯罗盘
</view> </view>
<view class="section"> <view class="section">
<view class="table"> <view class="table" v-if="compassList.length > 0">
<view class="tr"> <view class="tr">
<view class="th"> <view class="th">
</view> </view>
@@ -40,6 +40,13 @@
</view> </view>
</view> </view>
</view> </view>
<view class="empty" v-else>
<view class="icon"></view>
<view class="txt">暂无推荐职业请先进行兴趣测评</view>
<view class="nav-btn" @click="navTest">
去测评
</view>
</view>
</view> </view>
<view class="title"> <view class="title">
我的职业 我的职业
@@ -115,6 +122,12 @@
this.getGXCareerPlanList(); this.getGXCareerPlanList();
}, },
methods: { methods: {
// 去测评
navTest(){
uni.navigateTo({
url: `/packageCa/pagesTest/testList`
})
},
//选中职业添加 //选中职业添加
async checkedJob(ITEM){ async checkedJob(ITEM){
uni.showLoading({ uni.showLoading({
@@ -218,6 +231,36 @@
background-size: 38rpx 38rpx; background-size: 38rpx 38rpx;
} }
} }
.empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 60rpx;
padding-bottom: 100rpx;
.icon {
width: 240rpx;
height: 240rpx;
background: url("#{$image-oss-url}/empty.png") no-repeat;
background-size: 100%;
margin-bottom: 20rpx;
}
.txt {
font-size: 28rpx;
color: #A4B3E5;
}
.nav-btn {
width: 335rpx;
height: 80rpx;
margin: 40rpx auto 0;
background-color: #1989fa;
border-radius: 40rpx;
font-size: 28rpx;
color: #fff;
text-align: center;
line-height: 80rpx;
}
}
.index-wrap { .index-wrap {
.content { .content {
padding: 0 20rpx; padding: 0 20rpx;

View File

@@ -302,20 +302,21 @@
padding: 40rpx 30rpx 0; padding: 40rpx 30rpx 0;
margin-top: 40rpx; margin-top: 40rpx;
.target-tabbar { .target-tabbar {
margin-bottom: 50rpx; margin-bottom: 30rpx;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.item { .item {
position: relative; position: relative;
width: 155rpx; width: 150rpx;
height: 64rpx; height: 64rpx;
line-height: 64rpx; line-height: 64rpx;
text-align: center; text-align: center;
border-radius: 34rpx; border-radius: 34rpx;
border: solid 2rpx #eeeeee; border: solid 2rpx #eeeeee;
font-size: 28rpx; font-size: 26rpx;
color: #999999; color: #999999;
margin-right: 20rpx; margin-right: 20rpx;
margin-bottom: 20rpx;
&.on { &.on {
color: #1989fa; color: #1989fa;
border-color: #1989fa; border-color: #1989fa;

View File

@@ -203,7 +203,7 @@
// 去测评 // 去测评
navTest(){ navTest(){
uni.navigateTo({ uni.navigateTo({
url: `/pagesTest/interestTestCollect/interestTestTitle` url: `/packageCa/pagesTest/interestTestTitle`
}) })
}, },
//选中职业 //选中职业

View File

@@ -83,7 +83,7 @@
<view class="form-wrap" > <view class="form-wrap" >
<view class="form-item"> <view class="form-item">
<view class="label"> <view class="label">
目标描述 <text>*</text>目标描述
</view> </view>
<view class="input-wrap"> <view class="input-wrap">
<textarea v-model="targetForm.TargetDesc" <textarea v-model="targetForm.TargetDesc"
@@ -92,7 +92,7 @@
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label"> <view class="label">
目标类型 <text>*</text>目标类型
</view> </view>
<view class="check-wrap"> <view class="check-wrap">
<view class="checked-item" @click="targetForm.TargetType = 1"> <view class="checked-item" @click="targetForm.TargetType = 1">
@@ -228,6 +228,20 @@
}, },
// 保存目标 // 保存目标
async saveTarget(){ async saveTarget(){
if(this.targetForm.TargetDesc == ""){
uni.showToast({
title: "请输入目标描述",
icon: "none"
})
return;
}
if(this.targetForm.TargetType == ""){
uni.showToast({
title: "请选择目标类型",
icon: "none"
})
return;
}
const res = await api.saveSmartTarget(this.targetForm); const res = await api.saveSmartTarget(this.targetForm);
if (res.Result == 1) { if (res.Result == 1) {
uni.showToast({ uni.showToast({
@@ -565,6 +579,9 @@
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
margin-bottom: 30rpx; margin-bottom: 30rpx;
text {
color: #ff0000;
}
} }
.check-wrap { .check-wrap {
display: flex; display: flex;