feature add Personal Information Cross-Border Transfer Notice

This commit is contained in:
alves
2025-12-25 12:10:58 +08:00
parent 0302c21415
commit 4ec2812268
7 changed files with 90 additions and 34 deletions

View File

@@ -40,13 +40,33 @@ function GotoBackPage()
function GotoNextPage()
{
var checkbox = document.getElementById('agreeCheckbox');
var errorTip = document.getElementById('errorTip');
if (!checkbox.checked) {
// 未勾选复选框,显示错误提示
errorTip.style.display = 'block';
return;
}
// 已勾选,隐藏错误提示并继续
errorTip.style.display = 'none';
SendPrivacyChoice("agree");
window.location.href="../21/index.html";
}
function OnCheckboxChange()
{
var checkbox = document.getElementById('agreeCheckbox');
var errorTip = document.getElementById('errorTip');
// 勾选时隐藏错误提示
if (checkbox.checked) {
errorTip.style.display = 'none';
}
// 取消勾选时不显示错误提示(只有点击按钮时才检查)
}
function GotoSkipPage()
{
@@ -75,7 +95,7 @@ function OpenPrivacyPolicy()
var privacyUrl = "";
if(m_Region === "China") {
if(m_Region === "Chinese Mainland") {
privacyUrl = "https://www.snapmaker.cn/privacy-policy.html";
} else {
privacyUrl = "https://www.snapmaker.com/privacy-policy";
@@ -90,3 +110,23 @@ function OpenPrivacyPolicy()
SendWXMessage( JSON.stringify(tSend) );
}
function OpenCrossBorderNotice()
{
var noticeUrl = "";
// 个人信息出境告知书链接
if(m_Region === "Chinese Mainland") {
noticeUrl = "https://www.snapmaker.cn/cross-border-notice";
} else {
noticeUrl = "https://www.snapmaker.com/cross-border-notice";
}
var tSend={};
tSend['sequence_id']=Math.round(new Date() / 1000);
tSend['command']="common_openurl";
tSend['url']=noticeUrl;
tSend['local']=m_Region
SendWXMessage( JSON.stringify(tSend) );
}