|
|
|
@ -25,6 +25,7 @@ const cardStore = useCardStore();
|
|
|
|
|
|
|
|
|
|
|
|
const showShare = ref(false);
|
|
|
|
const showShare = ref(false);
|
|
|
|
const showNfcQrcode = ref(false);
|
|
|
|
const showNfcQrcode = ref(false);
|
|
|
|
|
|
|
|
const showQrcode = ref(false);
|
|
|
|
|
|
|
|
|
|
|
|
const checked = ref(true);
|
|
|
|
const checked = ref(true);
|
|
|
|
const imageUrl = ref(import.meta.env.VITE_APP_BASE_URL);
|
|
|
|
const imageUrl = ref(import.meta.env.VITE_APP_BASE_URL);
|
|
|
|
@ -135,32 +136,26 @@ const noticeClick = (num) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleAD = async () => {
|
|
|
|
const handleAD = async () => {
|
|
|
|
|
|
|
|
console.log(userInfo.value);
|
|
|
|
|
|
|
|
if(userInfo.value.status !== 1){
|
|
|
|
|
|
|
|
let res;
|
|
|
|
|
|
|
|
res = await getMarquee();
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
|
|
noticeData.value = res.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(userInfo.value.status === 1){
|
|
|
|
res = await getMovie();
|
|
|
|
return;
|
|
|
|
if (res.code === 200) {
|
|
|
|
}
|
|
|
|
adData.value = res.data;
|
|
|
|
let res;
|
|
|
|
|
|
|
|
res = await getMarquee();
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
|
|
noticeData.value = res.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res = await getMovie();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
|
|
adData.value = res.data;
|
|
|
|
|
|
|
|
if (sessionStorage.getItem("isAdShow") == null) {
|
|
|
|
|
|
|
|
popShow.value = true;
|
|
|
|
popShow.value = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
// sessionStorage.setItem("isAdShow",false);
|
|
|
|
|
|
|
|
const popShow = ref(false);
|
|
|
|
const popShow = ref(false);
|
|
|
|
const modalClose = ref(false);
|
|
|
|
const modalClose = ref(false);
|
|
|
|
|
|
|
|
|
|
|
|
const closeShow = () => {
|
|
|
|
const closeShow = () => {
|
|
|
|
sessionStorage.setItem("isAdShow", userInfo.value.level_name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modalClose.value = true;
|
|
|
|
modalClose.value = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
@ -218,6 +213,10 @@ const onSelect = (option) => {
|
|
|
|
showShare.value = false;
|
|
|
|
showShare.value = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleShow = () => {
|
|
|
|
|
|
|
|
showQrcode.value = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleShowNfc = () => {
|
|
|
|
const handleShowNfc = () => {
|
|
|
|
showNfcQrcode.value = true;
|
|
|
|
showNfcQrcode.value = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -252,7 +251,6 @@ const handleLogout = () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sessionStorage.removeItem("token");
|
|
|
|
sessionStorage.removeItem("token");
|
|
|
|
sessionStorage.removeItem("uid");
|
|
|
|
sessionStorage.removeItem("uid");
|
|
|
|
sessionStorage.removeItem("isAdShow");
|
|
|
|
|
|
|
|
router.push("/login");
|
|
|
|
router.push("/login");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
@ -302,11 +300,11 @@ const handleLogout = () => {
|
|
|
|
<h5 class="conpany">{{ userInfo.company }}</h5>
|
|
|
|
<h5 class="conpany">{{ userInfo.company }}</h5>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<!-- <div class="right">
|
|
|
|
<div class="btn btn-sm text-darkBlue" @click="doShare">
|
|
|
|
<div class="btn btn-sm text-darkBlue" @click="doShare">
|
|
|
|
<h4><i class="fa-solid fa-clone"></i></h4>
|
|
|
|
<h4><i class="fa-solid fa-clone"></i></h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="recommend">
|
|
|
|
<div class="recommend">
|
|
|
|
@ -351,15 +349,27 @@ const handleLogout = () => {
|
|
|
|
<van-field :model-value="overdue" input-align="right" readonly>
|
|
|
|
<van-field :model-value="overdue" input-align="right" readonly>
|
|
|
|
<template #label><i class="fa-regular fa-fw fa-calendar-check"></i> 使用期限</template>
|
|
|
|
<template #label><i class="fa-regular fa-fw fa-calendar-check"></i> 使用期限</template>
|
|
|
|
</van-field>
|
|
|
|
</van-field>
|
|
|
|
<van-field input-align="right" readonly>
|
|
|
|
<van-field input-align="right" class="longText" readonly>
|
|
|
|
<template #label><i class="fa-solid fa-fw fa-qrcode"></i> QRcode</template>
|
|
|
|
<template #label><i class="fa-solid fa-fw fa-handshake-angle"></i> 分享加入</template>
|
|
|
|
<template #button><van-button size="small" class="bg-darkBlue text-white border-0"
|
|
|
|
<template #button>
|
|
|
|
@click="handleShowNfc">開啟掃描</van-button></template>
|
|
|
|
<van-button size="small" class="btn-outline-skyBlue mr-1"
|
|
|
|
|
|
|
|
@click="handleShow"><i class="fa-solid fa-qrcode"></i> QRcode
|
|
|
|
|
|
|
|
</van-button>
|
|
|
|
|
|
|
|
<van-button size="small" class="btn-outline-skyBlue"
|
|
|
|
|
|
|
|
@click="doShare"><i class="fa-regular fa-copy"></i> 複製連結
|
|
|
|
|
|
|
|
</van-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</van-field>
|
|
|
|
</van-field>
|
|
|
|
<van-field input-align="right" readonly>
|
|
|
|
<van-field input-align="right" class="longText" readonly>
|
|
|
|
<template #label><i class="fa-solid fa-fw fa-link"></i> 名片連結</template>
|
|
|
|
<template #label><i class="fa-solid fa-fw fa-chess-board"></i> NFC名片</template>
|
|
|
|
<template #button><van-button size="small" class="bg-tomatoRed text-white border-0"
|
|
|
|
<template #button>
|
|
|
|
@click="doCopy">複製連結</van-button></template>
|
|
|
|
<van-button size="small" class="btn-outline-skyBlue mr-1"
|
|
|
|
|
|
|
|
@click="handleShowNfc"><i class="fa-solid fa-qrcode"></i> QRcode
|
|
|
|
|
|
|
|
</van-button>
|
|
|
|
|
|
|
|
<van-button size="small" class="btn-outline-skyBlue"
|
|
|
|
|
|
|
|
@click="doCopy"><i class="fa-regular fa-copy"></i> 複製連結
|
|
|
|
|
|
|
|
</van-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</van-field>
|
|
|
|
</van-field>
|
|
|
|
</van-cell-group>
|
|
|
|
</van-cell-group>
|
|
|
|
|
|
|
|
|
|
|
|
@ -424,7 +434,14 @@ const handleLogout = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<van-dialog v-model:show="showNfcQrcode" title="電子名片二維碼" :show-cancel-button="true" cancel-button-text="關閉"
|
|
|
|
<van-dialog v-model:show="showQrcode" title="會員加入分享" :show-cancel-button="true" cancel-button-text="關閉"
|
|
|
|
|
|
|
|
:show-confirm-button="false">
|
|
|
|
|
|
|
|
<div class="qrcode text-center pt-3">
|
|
|
|
|
|
|
|
<qrcode-vue :value="userInfo.referurl" :size="200" level="M" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</van-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<van-dialog v-model:show="showNfcQrcode" title="NFC名片分享" :show-cancel-button="true" cancel-button-text="關閉"
|
|
|
|
:show-confirm-button="false">
|
|
|
|
:show-confirm-button="false">
|
|
|
|
<div class="qrcode text-center pt-3">
|
|
|
|
<div class="qrcode text-center pt-3">
|
|
|
|
<qrcode-vue :value="userInfo.nfcurl" :size="200" level="M" />
|
|
|
|
<qrcode-vue :value="userInfo.nfcurl" :size="200" level="M" />
|
|
|
|
|