feat : 编辑我的简历需要认证
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
<image
|
<image
|
||||||
class="button-click"
|
class="button-click"
|
||||||
src="@/static/icon/edit1.png"
|
src="@/static/icon/edit1.png"
|
||||||
@click="navTo('/packageA/pages/personalInfo/personalInfo')"
|
@click="handleNavTo('/packageA/pages/personalInfo/personalInfo')"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<image
|
<image
|
||||||
class="icon"
|
class="icon"
|
||||||
src="@/static/icon/edit1.png"
|
src="@/static/icon/edit1.png"
|
||||||
@click="navTo('/packageA/pages/jobExpect/jobExpect')"
|
@click="handleNavTo('/packageA/pages/jobExpect/jobExpect')"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="mys-text">
|
<view class="mys-text">
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
<view class="mys-info" style="padding: 0">
|
<view class="mys-info" style="padding: 0">
|
||||||
<view class="mys-h4">
|
<view class="mys-h4">
|
||||||
<text>工作经历</text>
|
<text>工作经历</text>
|
||||||
<view class="mys-edit-icon btn-tada" @click="navTo('/packageA/pages/workExp/workExp')">
|
<view class="mys-edit-icon btn-tada" @click="handleNavTo('/packageA/pages/workExp/workExp')">
|
||||||
<image class="icon button-click btn-feel" src="@/static/icon/plus.png"></image>
|
<image class="icon button-click btn-feel" src="@/static/icon/plus.png"></image>
|
||||||
<view class="txt">添加</view>
|
<view class="txt">添加</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<image
|
<image
|
||||||
class="icon btn-feel"
|
class="icon btn-feel"
|
||||||
src="@/static/icon/edit1.png"
|
src="@/static/icon/edit1.png"
|
||||||
@click="navTo(`/packageA/pages/workExp/workExp?id=${item.id}`)"
|
@click="handleNavTo(`/packageA/pages/workExp/workExp?id=${item.id}`)"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="mys-text fl_box fl_justbet">
|
<view class="mys-text fl_box fl_justbet">
|
||||||
@@ -139,7 +139,7 @@ import { storeToRefs } from 'pinia';
|
|||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
const { userInfo, isMiniProgram,isMachineEnv } = storeToRefs(useUserStore());
|
const { userInfo, isMiniProgram,isMachineEnv } = storeToRefs(useUserStore());
|
||||||
const { getUserResume } = useUserStore();
|
const { getUserResume, checkAuth } = useUserStore();
|
||||||
const { getDictData, oneDictData } = useDictStore();
|
const { getDictData, oneDictData } = useDictStore();
|
||||||
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
|
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
|
||||||
import config from '@/config.js';
|
import config from '@/config.js';
|
||||||
@@ -151,6 +151,13 @@ onLoad(() => {
|
|||||||
getUserResume();
|
getUserResume();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function handleNavTo(url) {
|
||||||
|
if(!checkAuth()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
navTo(url)
|
||||||
|
}
|
||||||
|
|
||||||
function closeNotice() {
|
function closeNotice() {
|
||||||
showNotice.value = false;
|
showNotice.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user