fix pricing

This commit is contained in:
rustdesk
2023-10-01 00:23:41 +08:00
parent ff261a58c6
commit 659978c170
2 changed files with 23 additions and 2 deletions
+10
View File
@@ -833,12 +833,22 @@ window.addEventListener("load", function() {
showCancelButton: true, showCancelButton: true,
confirmButtonText: 'Yes', confirmButtonText: 'Yes',
cancelButtonText: 'No', cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
Swal.fire({
title: 'Please Confirm',
text: "Please note that we do not offer refunds. We strongly recommend testing our free self-hosting plan before considering the purchase of our Pro plan. Are you still interested in proceeding?",
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => { }).then((result) => {
if (result.isConfirmed) { if (result.isConfirmed) {
window.open(redirectUrl, '_blank'); window.open(redirectUrl, '_blank');
} }
}); });
} }
});
}
document.getElementById("buyNowButton1").addEventListener("click", function() { document.getElementById("buyNowButton1").addEventListener("click", function() {
gotoBuy('https://rustdesk.com/api/lic/stripe/checkout?type=Personal'); gotoBuy('https://rustdesk.com/api/lic/stripe/checkout?type=Personal');
}); });
+11
View File
@@ -826,12 +826,23 @@ window.addEventListener("load", function() {
showCancelButton: true, showCancelButton: true,
confirmButtonText: '是', confirmButtonText: '是',
cancelButtonText: '否', cancelButtonText: '否',
}).then((result) => {
if (result.isConfirmed) {
Swal.fire({
title: '请确认',
text: '请注意,我们不提供退款。 我们强烈建议您在考虑购买专业版计划之前先测试我们的免费版本。 您还有兴趣继续吗?',
icon: 'question',
showCancelButton: true,
confirmButtonText: '是',
cancelButtonText: '否',
}).then((result) => { }).then((result) => {
if (result.isConfirmed) { if (result.isConfirmed) {
window.open(redirectUrl, '_blank'); window.open(redirectUrl, '_blank');
} }
}); });
} }
});
}
document.getElementById("buyNowButton1").addEventListener("click", function() { document.getElementById("buyNowButton1").addEventListener("click", function() {
gotoBuy('https://rustdesk.com/api/lic/stripe/checkout?type=Personal&currency=cny'); gotoBuy('https://rustdesk.com/api/lic/stripe/checkout?type=Personal&currency=cny');
}); });