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
72f664ce
Commit
72f664ce
authored
Dec 16, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.提交测试
parent
0667eb24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
pages/courseDetail/courseDetail.vue
+10
-7
uni_modules/uni-share-wx/index.vue
+2
-0
No files found.
pages/courseDetail/courseDetail.vue
View file @
72f664ce
...
...
@@ -186,7 +186,8 @@
this
.
sharelogin
=
false
this
.
userId
=
val
// uni.setStorageSync('cffp_userId', this.userId);
localStorage
.
setItem
(
'h5_userId'
,
this
.
userId
)
// localStorage.setItem('h5_userId', this.userId)
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
this
.
getuserRead
(
1
)
}
else
{
this
.
sharelogin
=
false
...
...
@@ -256,6 +257,7 @@
},
// 订单保存
saveOrder
()
{
alert
(
uni
.
getStorageSync
(
'cffp_userId'
),
1
)
if
(
this
.
loginType
===
'visitor'
)
{
uni
.
navigateTo
({
url
:
'/components/login/login'
...
...
@@ -269,7 +271,7 @@
}
},
h5jump
()
{
let
h5userId
=
localStorage
.
getItem
(
'h5_userId'
)
//
let h5userId = localStorage.getItem('h5_userId')
if
(
h5userId
)
{
this
.
jumppurchase
()
}
else
{
...
...
@@ -524,11 +526,12 @@
this
.
shareCode
=
option
.
shareCode
this
.
shareUserId
=
option
.
shareUserId
this
.
getuserRead
()
let
endTime
=
Date
.
parse
(
new
Date
())
/
1000
;
let
startTime
=
localStorage
.
getItem
(
'h5_startTime'
)
if
(
endTime
-
startTime
>
3600
*
24
)
{
localStorage
.
setItem
(
'h5_userId'
,
''
)
}
// let endTime = Date.parse(new Date()) / 1000;
// let startTime = localStorage.getItem('h5_startTime')
// if (endTime - startTime > 3600 * 24) {
// localStorage.setItem('h5_userId', '')
// }
alert
(
uni
.
getStorageSync
(
'cffp_userId'
),
1
)
uni
.
setStorageSync
(
'h5_coursesharing'
,
this
.
coursesharing
);
}
...
...
uni_modules/uni-share-wx/index.vue
View file @
72f664ce
...
...
@@ -54,6 +54,7 @@
this
.
$refs
.
sharewx
.
close
()
},
uniShare
(
type
)
{
let
platform
=
uni
.
getSystemInfoSync
().
platform
let
that
=
this
this
.
closeShare
()
this
.
submitsuessc
(
type
)
...
...
@@ -61,6 +62,7 @@
provider
:
"weixin"
,
scene
:
type
===
1
?
"WXSceneSession"
:
"WXSceneTimeline"
,
type
:
0
,
systemType
:
platform
==
'ios'
?
'0'
:
'1'
,
href
:
that
.
WXdata
.
href
,
title
:
that
.
WXdata
.
title
,
summary
:
that
.
WXdata
.
summary
,
...
...
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