|
|
@@ -20,7 +20,6 @@ const _sfc_main = {
|
|
|
};
|
|
|
const checkLogin = () => {
|
|
|
isLoggedIn.value = utils_auth.isLoggedIn();
|
|
|
- console.log("[超短池] 登录状态:", isLoggedIn.value);
|
|
|
return isLoggedIn.value;
|
|
|
};
|
|
|
const checkPurchaseStatus = () => {
|
|
|
@@ -48,9 +47,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
};
|
|
|
const showPurchaseModal = () => {
|
|
|
- console.log("点击立即解锁");
|
|
|
if (!checkLogin()) {
|
|
|
- console.log("未登录,跳转到登录页");
|
|
|
common_vendor.index.showModal({
|
|
|
title: "登录提示",
|
|
|
content: "此功能需要登录后使用,是否前往登录?",
|
|
|
@@ -66,7 +63,6 @@ const _sfc_main = {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- console.log("已登录,显示购买弹窗");
|
|
|
showModal.value = true;
|
|
|
};
|
|
|
const closePurchaseModal = () => {
|
|
|
@@ -92,11 +88,9 @@ const _sfc_main = {
|
|
|
};
|
|
|
const onStartMonthChange = (e) => {
|
|
|
startMonth.value = e.detail.value;
|
|
|
- console.log("[超短池] 选择开始月份:", startMonth.value);
|
|
|
};
|
|
|
const onEndMonthChange = (e) => {
|
|
|
endMonth.value = e.detail.value;
|
|
|
- console.log("[超短池] 选择结束月份:", endMonth.value);
|
|
|
};
|
|
|
const onHistorySearch = () => {
|
|
|
if (!startMonth.value || !endMonth.value) {
|
|
|
@@ -113,7 +107,6 @@ const _sfc_main = {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- console.log("[超短池] 查询历史数据区间:", startMonth.value, "至", endMonth.value);
|
|
|
common_vendor.index.showToast({
|
|
|
title: `查询${formatMonth(startMonth.value)}至${formatMonth(endMonth.value)}`,
|
|
|
icon: "none",
|
|
|
@@ -121,11 +114,13 @@ const _sfc_main = {
|
|
|
});
|
|
|
};
|
|
|
common_vendor.onLoad(() => {
|
|
|
- checkLogin();
|
|
|
+ const loginStatus = checkLogin();
|
|
|
+ console.log("[超短池] 登录状态:", loginStatus);
|
|
|
checkPurchaseStatus();
|
|
|
});
|
|
|
common_vendor.onShow(() => {
|
|
|
- checkLogin();
|
|
|
+ const loginStatus = checkLogin();
|
|
|
+ console.log("[超短池] 登录状态:", loginStatus);
|
|
|
checkPurchaseStatus();
|
|
|
common_vendor.index.setNavigationBarTitle({ title: "量化交易大师" });
|
|
|
});
|