update
1.修改app下载地址
This commit is contained in:
@@ -75,7 +75,6 @@
|
|||||||
document.getElementById('text1').style.display = 'none';
|
document.getElementById('text1').style.display = 'none';
|
||||||
document.getElementById('text').style.display = 'flex';
|
document.getElementById('text').style.display = 'flex';
|
||||||
}
|
}
|
||||||
getTypeAPackage();
|
|
||||||
}
|
}
|
||||||
f();
|
f();
|
||||||
function isType() {
|
function isType() {
|
||||||
@@ -88,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
function androidLoad() {
|
function androidLoad() {
|
||||||
// window.open('https://a.app.qq.com/o/simple.jsp?pkgname=com.sw.healthyclients');
|
// 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 => {
|
.then(response => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error('网络响应不正常');
|
throw new Error('网络响应不正常');
|
||||||
@@ -96,9 +95,8 @@
|
|||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
if (data.code === 200) {
|
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 {
|
} else {
|
||||||
window.alert('网络异常');
|
window.alert('网络异常');
|
||||||
}
|
}
|
||||||
@@ -121,16 +119,4 @@
|
|||||||
androidLoad();
|
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>
|
</script>
|
||||||
|
|||||||
@@ -74,7 +74,6 @@
|
|||||||
document.getElementById('text1').style.display = 'none';
|
document.getElementById('text1').style.display = 'none';
|
||||||
document.getElementById('text').style.display = 'flex';
|
document.getElementById('text').style.display = 'flex';
|
||||||
}
|
}
|
||||||
getTypeAPackage();
|
|
||||||
}
|
}
|
||||||
f();
|
f();
|
||||||
function isType() {
|
function isType() {
|
||||||
@@ -86,7 +85,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function androidLoad() {
|
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 => {
|
.then(response => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error('网络响应不正常');
|
throw new Error('网络响应不正常');
|
||||||
@@ -94,9 +93,8 @@
|
|||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log(data);
|
|
||||||
if (data.code === 200) {
|
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 {
|
} else {
|
||||||
window.alert('网络异常');
|
window.alert('网络异常');
|
||||||
}
|
}
|
||||||
@@ -119,16 +117,4 @@
|
|||||||
androidLoad();
|
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>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user