Commit 677c2191 by sunerhu

1.唤醒App调试

parent ecffd755
...@@ -187,19 +187,29 @@ ...@@ -187,19 +187,29 @@
jumpapp() { jumpapp() {
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') {
window.open('cffpapp://'); var loadDateTime = new Date();
window.setTimeout(function() { //如果没有安装app,便会执行setTimeout跳转下载页
var timeOutDateTime = new Date();
if (timeOutDateTime - loadDateTime < 5000) {
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() {
...@@ -211,7 +221,7 @@ ...@@ -211,7 +221,7 @@
}, },
// 打开微信分享啊 // 打开微信分享啊
reinvite() { reinvite() {
const shareCode = nanoid() + this.userId const shareCode = nanoid() + this.userId
let dataWXform = { let dataWXform = {
href: "https://mdev.zuihuibi.cn/cffp/pages/courseDetail/courseDetail?fileId=" + this.fileId + href: "https://mdev.zuihuibi.cn/cffp/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode, '&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode,
...@@ -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