Commit 677c2191 by sunerhu

1.唤醒App调试

parent ecffd755
......@@ -187,19 +187,29 @@
jumpapp() {
let platform = uni.getSystemInfoSync().platform
if (platform == 'ios') {
var loadDateTime = new Date();
window.location.href = "https://mcffp.anjibao.cn/app/";
var loadDateTime = new Date();
window.setTimeout(function() { //如果没有安装app,便会执行setTimeout跳转下载页
var timeOutDateTime = new Date();
if (timeOutDateTime - loadDateTime < 5000) {
window.location = "http://baidu.com"; //ios下载地址
window.location.href = "https://mcffp.anjibao.cn/app/";
} else {
window.location = "https://mdev.anjibao.cn/cffp/app.ipa"; //ios下载地址
//window.location = "https://mdev.anjibao.cn/cffp/app.apk"; //ios下载地址
}
}, 500);
} 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() {
......@@ -211,7 +221,7 @@
},
// 打开微信分享啊
reinvite() {
const shareCode = nanoid() + this.userId
const shareCode = nanoid() + this.userId
let dataWXform = {
href: "https://mdev.zuihuibi.cn/cffp/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode,
......@@ -444,14 +454,14 @@
}
},
// 用户阅读
getuserRead(){
getuserRead() {
let UserReadRequestVO = {
userId: this.userId?this.userId:'',
userId: this.userId ? this.userId : '',
serialsNo: this.serialsNo || 1,
shareCode: this.shareCode || 1,
shareUrl: window.location.href
}
api.userRead(UserReadRequestVO).then(res =>{
api.userRead(UserReadRequestVO).then(res => {
if (res['success']) {
console.log('操作成功')
// 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