|
|
@@ -110,6 +110,7 @@ const loadSplash = (onload, onerror) =>
|
|
|
splash.style.opacity = 0;
|
|
|
setTimeout(() => {
|
|
|
document.body.removeChild(splash);
|
|
|
+ showTips();
|
|
|
}, 800);
|
|
|
resolve();
|
|
|
}
|
|
|
@@ -133,29 +134,30 @@ const loadSplash = (onload, onerror) =>
|
|
|
document.body.append(splash);
|
|
|
});
|
|
|
|
|
|
-// let inApp = /#cordova#/i.test(navigator.userAgent);
|
|
|
-// let inIos = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
|
-
|
|
|
-// if (!window.localStorage.getItem('AppTips') && inApp && !inIos) {
|
|
|
-// Dialog.confirm({
|
|
|
-// title: '绿洲服务协议和隐私政策',
|
|
|
-// message:
|
|
|
-// '在您使用我的各项服务之前,请务必审慎阅读、充分理解<a href="/agreement?page=service">《用户隐私协议》</a>、<a href="/agreement">《隐私政策》</a>的条款。并且我们会申请获取您的设备信息,以向您提供安全风控服务。同时您应特别注意前述协议中免除或者限制我们责任的条款、对您权利进行限制的条款。如您已详细阅读并同意绿洲用户协议、隐私政策,请点击【同意并继续】开始使用我们的服务。',
|
|
|
-// confirmButtonText: '同意并继续',
|
|
|
-// allowHtml: true
|
|
|
-// })
|
|
|
-// .then(() => {
|
|
|
-// return Dialog.confirm({
|
|
|
-// title: '温馨提示',
|
|
|
-// message:
|
|
|
-// '收集个人信息为我们向您提供服务所必须哦。我们仅会将您的个人信息用于为您提供服务,若不同意此协议,我们将无法为您提供服务并退出应用。',
|
|
|
-// confirmButtonText: '同意'
|
|
|
-// });
|
|
|
-// })
|
|
|
-// .then(() => {
|
|
|
-// window.localStorage.setItem('AppTips', '1');
|
|
|
-// });
|
|
|
-// }
|
|
|
+function showTips() {
|
|
|
+ let inApp = /#cordova#/i.test(navigator.userAgent);
|
|
|
+ let inIos = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
|
+ if (!window.localStorage.getItem('AppTips') && !inIos && inApp) {
|
|
|
+ Dialog.confirm({
|
|
|
+ title: '绿洲服务协议和隐私政策',
|
|
|
+ message:
|
|
|
+ '在您使用我的各项服务之前,请务必审慎阅读、充分理解<a href="/agreement?page=service">《用户隐私协议》</a>、<a href="/agreement">《隐私政策》</a>的条款。并且我们会申请获取您的设备信息,以向您提供安全风控服务。同时您应特别注意前述协议中免除或者限制我们责任的条款、对您权利进行限制的条款。如您已详细阅读并同意绿洲用户协议、隐私政策,请点击【同意并继续】开始使用我们的服务。',
|
|
|
+ confirmButtonText: '同意并继续',
|
|
|
+ allowHtml: true
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ return Dialog.confirm({
|
|
|
+ title: '温馨提示',
|
|
|
+ message:
|
|
|
+ '收集个人信息为我们向您提供服务所必须哦。我们仅会将您的个人信息用于为您提供服务,若不同意此协议,我们将无法为您提供服务并退出应用。',
|
|
|
+ confirmButtonText: '同意'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ window.localStorage.setItem('AppTips', '1');
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
if (navigator.userAgent.includes('#cordova#')) {
|
|
|
document.addEventListener(
|