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) );
}

View File

@@ -20,12 +20,15 @@
</div>
<div id="Content">
<div id="PolicyTxt" class="TextS2 TextArea1 ZScrol">
<a class="trans" tid="t54">In the 3D Printing community, we learn from each others successes and failures to adjust our own slicing parameters and settings. Bambu Studio follows the same principle and uses machine learning to improve its performance from the successes and failures of the vast number of prints by our users. We are training Bambu Studio to be smarter by feeding them the real-world data. If you are willing, this service will access information from your error logs and usage logs, which may include information described in </a><a class="HyperLink trans" tid="t55" onClick="OpenPrivacyPolicy()">Privacy Policy</a><a class="trans" tid="t56">
. We will not collect any Personal Data by which an individual can be identified directly or indirectly, including without limitation names, addresses, payment information, or phone numbers. By enabling this service, you agree to these terms and the statement about Privacy Policy.
</a>
<p class="trans" tid="t113" style="text-indent:2em;">You may change your choice in preference anytime.</p>
<a class="trans" tid="t54"></a><a class="HyperLink trans" tid="t55" onClick="OpenPrivacyPolicy()"></a><a class="trans" tid="t56"></a><a class="HyperLink trans" tid="t_566" onClick="OpenCrossBorderNotice()"></a><a class="trans" tid="t_567"></a>
</div>
<div id="AgreeArea" style="margin-top:10px;display:flex;flex-direction:column;">
<label style="display:flex;align-items:flex-start;cursor:pointer;">
<input type="checkbox" id="agreeCheckbox" style="width:13px;min-width:13px;margin-top:3px;margin-right:6px;" onchange="OnCheckboxChange()">
<span><a class="trans" tid="t57" style="margin-left:7px;"></a><a class="HyperLink trans" tid="t58" onClick="OpenCrossBorderNotice()"></a></span>
</label>
<p id="errorTip" class="trans" tid="t115" style="color:red;display:none;margin-top:5px;margin-left:0px;"></p>
</div>
<br/>
</div>
<div id="AcceptArea">
<div class="GrayBtn trans" tid="t8" id="PreBtn" onclick="GotoBackPage()">Back</div>