|
|
|
|
@ -93,7 +93,7 @@ onBeforeMount(async () => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}else if(route.query.user_id){ //綁定lineid
|
|
|
|
|
} else if (route.query.user_id) { //綁定lineid
|
|
|
|
|
//詢問是否綁定
|
|
|
|
|
showConfirmDialog({
|
|
|
|
|
title: "會員綁定",
|
|
|
|
|
@ -198,7 +198,7 @@ const onUpdateValue = (newValue) => {
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let res = userStore.setSendWithAd(newValue)
|
|
|
|
|
console.log('aaa',userInfo.value.is_send_ad)
|
|
|
|
|
console.log('aaa', userInfo.value.is_send_ad)
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
// on cancel
|
|
|
|
|
@ -263,12 +263,15 @@ const doShare = () => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const bindTggo = () => {
|
|
|
|
|
let url;
|
|
|
|
|
if (userInfo.value.uniqid) {
|
|
|
|
|
let url = `https://www.tggo.com.tw/u.cgi?&mnm=mybinding&ncode=${userInfo.value.uniqid}&name=${userInfo.value.real_name}&openExternalBrowser=1`;
|
|
|
|
|
window.open(url, "_blank");
|
|
|
|
|
return;
|
|
|
|
|
url = `https://www.tggo.com.tw/u.cgi?&mnm=mybinding&ncode=${userInfo.value.uniqid}&name=${userInfo.value.real_name}&openExternalBrowser=1`;
|
|
|
|
|
} else {
|
|
|
|
|
url = `https://www.tggo.com.tw/u.cgi?user=1111&from=portal&openExternalBrowser=1`;
|
|
|
|
|
}
|
|
|
|
|
showToast('您的帳號尚未綁定感應卡');
|
|
|
|
|
window.open(url, "_blank");
|
|
|
|
|
return;
|
|
|
|
|
// showToast('您的帳號尚未綁定感應卡');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleLogout = () => {
|
|
|
|
|
|