0000815,未登入時需先登入

main
Wayne 2 years ago
parent db77b14659
commit aa59a1068f

@ -87,6 +87,11 @@ if (!sessionStorage.getItem("token")) { // 未登入先要登入
} }
} }
// redirect
if (sessionStorage.getItem("redirect")){
router.push(sessionStorage.getItem("redirect")); router.push(sessionStorage.getItem("redirect"));
sessionStorage.removeItem("redirect"); sessionStorage.removeItem("redirect");
}else{
router.push("/");
}
</script> </script>

@ -278,6 +278,11 @@ const tab2OnSearch = async () => {
}; };
const handleSearch = async () => { const handleSearch = async () => {
showLoadingToast({
message: '人脈搜尋中...',
forbidClick: true,
});
let res = await searchConnection(search.value); let res = await searchConnection(search.value);
if (res.code === 200) { if (res.code === 200) {
tab2list.value = res.data; tab2list.value = res.data;
@ -436,13 +441,15 @@ const handleChangeTplSubmit = async() => {
<van-field v-model="areaName" is-link readonly name="area" label="區域" placeholder="請選擇區域" <van-field v-model="areaName" is-link readonly name="area" label="區域" placeholder="請選擇區域"
@click="showAreaPicker = true" /> @click="showAreaPicker = true" />
<van-popup v-model:show="showAreaPicker" position="bottom"> <van-popup v-model:show="showAreaPicker" position="bottom">
<van-picker :columns="areaColumns" confirm-button-text="" cancel-button-text="" @confirm="onAreaConfirm" @cancel="showAreaPicker = false" /> <van-picker :columns="areaColumns" confirm-button-text="" cancel-button-text="" @confirm="onAreaConfirm"
@cancel="showAreaPicker = false" />
</van-popup> </van-popup>
<van-field v-model="workName" is-link readonly name="work" label="工作性質" placeholder="請選擇工作性質" <van-field v-model="workName" is-link readonly name="work" label="工作性質" placeholder="請選擇工作性質"
@click="showWorkPicker = true" /> @click="showWorkPicker = true" />
<van-popup v-model:show="showWorkPicker" position="bottom"> <van-popup v-model:show="showWorkPicker" position="bottom">
<van-picker :columns="workColumns" confirm-button-text="" cancel-button-text="" @confirm="onWorkConfirm" @cancel="showWorkPicker = false" /> <van-picker :columns="workColumns" confirm-button-text="" cancel-button-text="" @confirm="onWorkConfirm"
@cancel="showWorkPicker = false" />
</van-popup> </van-popup>
<van-field readonly> <van-field readonly>
@ -560,22 +567,12 @@ const handleChangeTplSubmit = async() => {
<van-field v-model="tab2result" is-link readonly name="picker" :border="false" placeholder="請選擇" <van-field v-model="tab2result" is-link readonly name="picker" :border="false" placeholder="請選擇"
@click="tab2showPicker = true" /> @click="tab2showPicker = true" />
<van-popup v-model:show="tab2showPicker" position="bottom"> <van-popup v-model:show="tab2showPicker" position="bottom">
<van-picker <van-picker confirm-button-text="" cancel-button-text="" :columns="tab2columns" @confirm="tab2OnConfirm"
confirm-button-text="確認" @cancel="tab2showPicker = false" />
cancel-button-text="取消"
:columns="tab2columns"
@confirm="tab2OnConfirm"
@cancel="tab2showPicker = false"
/>
</van-popup> </van-popup>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<van-search <van-search v-model="search.keyword" show-action placeholder="請輸入搜尋關鍵字" @search="tab2OnSearch">
v-model="search.keyword"
show-action
placeholder="請輸入搜尋關鍵字"
@search="tab2OnSearch"
>
<template #action> <template #action>
<van-button class="btn-darkBlue" @click="tab2OnSearch"> <van-button class="btn-darkBlue" @click="tab2OnSearch">
搜索 搜索
@ -700,12 +697,12 @@ const handleChangeTplSubmit = async() => {
<style src="@/assets/css/main.css"></style> <style src="@/assets/css/main.css"></style>
<style lang="less" scoped> <style lang="less" scoped>
.member { .member {
.content { .content {
min-height: calc(100vh - 142px); min-height: calc(100vh - 142px);
padding-bottom: 0; padding-bottom: 0;
} }
.cnt2 { .cnt2 {
.van-list { .van-list {
.list-item { .list-item {
@ -760,7 +757,9 @@ const handleChangeTplSubmit = async() => {
} }
} }
} }
.van-search,.van-search-content{
.van-search,
.van-search-content {
padding-left: 0; padding-left: 0;
} }
} }
@ -803,5 +802,4 @@ const handleChangeTplSubmit = async() => {
} }
} }
} }
</style> </style>
Loading…
Cancel
Save