Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
677c2191
Commit
677c2191
authored
Dec 07, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.唤醒App调试
parent
ecffd755
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
pages/courseDetail/courseDetail.vue
+20
-10
No files found.
pages/courseDetail/courseDetail.vue
View file @
677c2191
...
...
@@ -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({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment