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
7a498a48
Commit
7a498a48
authored
Aug 24, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.视频播放统计相关(微信授权登录)
parent
a1a2608e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
myPackageA/videoProject/login.vue
+3
-1
myPackageA/videoProject/wxLogin.vue
+3
-1
No files found.
myPackageA/videoProject/login.vue
View file @
7a498a48
...
@@ -128,6 +128,8 @@
...
@@ -128,6 +128,8 @@
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'uni-token'
,
res
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'uni-token'
,
res
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
next
();
next
();
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -162,7 +164,7 @@
...
@@ -162,7 +164,7 @@
};
};
onLoad
(
option
=>
{
onLoad
(
option
=>
{
videoId
.
value
=
option
.
videoId
??
1
;
videoId
.
value
=
option
.
videoId
??
null
;
if
(
uni
.
getStorageSync
(
'cffp_userId'
)){
if
(
uni
.
getStorageSync
(
'cffp_userId'
)){
next
();
next
();
}
}
...
...
myPackageA/videoProject/wxLogin.vue
View file @
7a498a48
...
@@ -15,7 +15,9 @@
...
@@ -15,7 +15,9 @@
api
.
wxLogin
(
param
).
then
((
res
)
=>
{
api
.
wxLogin
(
param
).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'uni-token'
,
res
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'uni-token'
,
res
[
'data'
][
'token'
]);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/myPackageA/videoProject/videoDetail?videoId='
+
option
.
fileId
url
:
'/myPackageA/videoProject/videoDetail?videoId='
+
option
.
fileId
})
})
...
...
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