update
1.修改app下载地址
This commit is contained in:
@@ -75,7 +75,6 @@
|
||||
document.getElementById('text1').style.display = 'none';
|
||||
document.getElementById('text').style.display = 'flex';
|
||||
}
|
||||
getTypeAPackage();
|
||||
}
|
||||
f();
|
||||
function isType() {
|
||||
@@ -88,7 +87,7 @@
|
||||
}
|
||||
function androidLoad() {
|
||||
// window.open('https://a.app.qq.com/o/simple.jsp?pkgname=com.sw.healthyclients');
|
||||
fetch(`https://api.xjygjk.com/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
|
||||
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('网络响应不正常');
|
||||
@@ -96,9 +95,8 @@
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
if (data.code === 200) {
|
||||
window.open(`https://api.xjygjk.com/file/down/${data.result.appUrl}`)
|
||||
window.open(`https://api-jkglpt.iosp.ydpt.tech/file/down/${data.result.appUrl}`)
|
||||
} else {
|
||||
window.alert('网络异常');
|
||||
}
|
||||
@@ -121,16 +119,4 @@
|
||||
androidLoad();
|
||||
}
|
||||
}
|
||||
|
||||
function getTypeAPackage() {
|
||||
const url = window.location.href;
|
||||
|
||||
const arr = url.indexOf('?') !== -1 ? url.split('?')[1].replace('#/', '') : '';
|
||||
|
||||
let strArr = arr.split('&')
|
||||
let params = {};
|
||||
for (const item of strArr) {
|
||||
params[item.substring(0, item.indexOf('='))] = item.substring(item.indexOf('=') + 1);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
document.getElementById('text1').style.display = 'none';
|
||||
document.getElementById('text').style.display = 'flex';
|
||||
}
|
||||
getTypeAPackage();
|
||||
}
|
||||
f();
|
||||
function isType() {
|
||||
@@ -86,7 +85,7 @@
|
||||
}
|
||||
}
|
||||
function androidLoad() {
|
||||
fetch(`https://api.xjygjk.com/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
|
||||
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('网络响应不正常');
|
||||
@@ -94,9 +93,8 @@
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
if (data.code === 200) {
|
||||
window.open(`https://api.xjygjk.com/file/down/${data.result.appUrl}`)
|
||||
window.open(`https://api-jkglpt.iosp.ydpt.tech/file/down/${data.result.appUrl}`)
|
||||
} else {
|
||||
window.alert('网络异常');
|
||||
}
|
||||
@@ -119,16 +117,4 @@
|
||||
androidLoad();
|
||||
}
|
||||
}
|
||||
|
||||
function getTypeAPackage() {
|
||||
const url = window.location.href;
|
||||
|
||||
const arr = url.indexOf('?') !== -1 ? url.split('?')[1].replace('#/', '') : '';
|
||||
|
||||
let strArr = arr.split('&')
|
||||
let params = {};
|
||||
for (const item of strArr) {
|
||||
params[item.substring(0, item.indexOf('='))] = item.substring(item.indexOf('=') + 1);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user