Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
837991c5
Commit
837991c5
authored
Oct 13, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
84ff9c63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
76 deletions
+81
-76
loading.vue
vedio/pages/loading.vue
+81
-76
No files found.
vedio/pages/loading.vue
View file @
837991c5
...
...
@@ -55,6 +55,7 @@
},
methods
:
{
wxlogin
()
{
var
that
=
this
;
var
obj
=
wx
.
getEnterOptionsSync
()
...
...
@@ -64,7 +65,7 @@
var
advertiserId
=
''
// 账号id
var
reqId
=
''
// 请求id
var
promotionId
=
''
// aid
var
productId
=
''
;
var
productId
=
''
if
(
obj
.
query
.
clueToken
??
''
!=
''
)
{
channel
=
'tt'
...
...
@@ -82,22 +83,22 @@
clueToken
=
obj
.
query
.
callback
??
''
adId
=
obj
.
query
.
aid
??
''
}
console
.
log
(
"1"
);
uni
.
login
({
provider
:
'weixin'
,
success
:
function
(
loginRes
)
{
console
.
log
(
"2"
+
loginRes
.
code
);
that
.
post
({
url
:
'/user/wechatlogin'
,
data
:
{
channel
:
channel
,
clueToken
:
clueToken
,
code
:
loginRes
.
code
,
adId
:
adId
,
advertiserId
:
advertiserId
,
reqId
:
reqId
,
creativeId
:
creativeId
,
code
:
loginRes
.
code
,
inviteUId
:
tempInviteUId
promotionId
:
promotionId
,
productId
:
productId
,
},
showLoading
:
false
,
success
:
({
...
...
@@ -106,12 +107,16 @@
app
.
globalData
.
token
=
data
.
token
;
app
.
globalData
.
userId
=
data
.
pk_id
;
app
.
globalData
.
userInfo
=
data
;
console
.
log
(
"3"
);
redirectTo
(
'home'
);
}
});
},
fail
:
function
(
err
)
{
console
.
log
(
"4"
);
// 登录授权失败
message
.
notify
(
'登录授权失败 错误码:'
+
err
.
code
);
message
.
notify
(
'登录授权失败 错误码:'
+
err
.
code
);
}
});
}
...
...
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