Commit 677c2191 by sunerhu

1.唤醒App调试

parent ecffd755
...@@ -188,18 +188,28 @@ ...@@ -188,18 +188,28 @@
let platform = uni.getSystemInfoSync().platform let platform = uni.getSystemInfoSync().platform
if (platform == 'ios') { if (platform == 'ios') {
var loadDateTime = new Date(); var loadDateTime = new Date();
window.location.href = "https://mcffp.anjibao.cn/app/";
window.setTimeout(function() { //如果没有安装app,便会执行setTimeout跳转下载页 window.setTimeout(function() { //如果没有安装app,便会执行setTimeout跳转下载页
var timeOutDateTime = new Date(); var timeOutDateTime = new Date();
if (timeOutDateTime - loadDateTime < 5000) { if (timeOutDateTime - loadDateTime < 5000) {
window.location = "http://baidu.com"; //ios下载地址 window.location.href = "https://mcffp.anjibao.cn/app/";
} else { } else {
window.location = "https://mdev.anjibao.cn/cffp/app.ipa"; //ios下载地址
//window.location = "https://mdev.anjibao.cn/cffp/app.apk"; //ios下载地址
} }
}, 500); }, 500);
} else if (platform == 'android') { } else if (platform == 'android') {
var loadDateTime = new Date();
window.setTimeout(function() { //如果没有安装app,便会执行setTimeout跳转下载页
var timeOutDateTime = new Date();
if (timeOutDateTime - loadDateTime < 5000) {
window.open('cffpapp://'); window.open('cffpapp://');
} else {
// window.location = "https://mdev.anjibao.cn/cffp/app.ipa"; //ios下载地址
window.location = "https://mdev.anjibao.cn/cffp/app.apk"; //ios下载地址
}
}, 500);
} }
}, },
goBack() { goBack() {
...@@ -444,14 +454,14 @@ ...@@ -444,14 +454,14 @@
} }
}, },
// 用户阅读 // 用户阅读
getuserRead(){ getuserRead() {
let UserReadRequestVO = { let UserReadRequestVO = {
userId: this.userId?this.userId:'', userId: this.userId ? this.userId : '',
serialsNo: this.serialsNo || 1, serialsNo: this.serialsNo || 1,
shareCode: this.shareCode || 1, shareCode: this.shareCode || 1,
shareUrl: window.location.href shareUrl: window.location.href
} }
api.userRead(UserReadRequestVO).then(res =>{ api.userRead(UserReadRequestVO).then(res => {
if (res['success']) { if (res['success']) {
console.log('操作成功') console.log('操作成功')
// uni.showToast({ // uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment