Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
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
wildfirecode13
hello_taobao
Commits
219b0616
Commit
219b0616
authored
Sep 07, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
216bf1f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
api.js
dist/api.js
+5
-0
index.js
dist/pages/index/index.js
+9
-12
No files found.
dist/api.js
View file @
219b0616
...
@@ -21,6 +21,11 @@ const apiList = {
...
@@ -21,6 +21,11 @@ const apiList = {
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
true
isShowLoading
:
true
},
},
getVipInfo
:
{
handle
:
'getVipInfo'
,
method
:
'get'
,
isShowLoading
:
true
},
login
:
{
login
:
{
handle
:
'login'
,
handle
:
'login'
,
method
:
'get'
,
method
:
'get'
,
...
...
dist/pages/index/index.js
View file @
219b0616
...
@@ -22,18 +22,15 @@ Page({
...
@@ -22,18 +22,15 @@ Page({
this
.
getAuth
();
this
.
getAuth
();
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
},
init
()
{
async
init
()
{
this
.
getActivityBaseInfoById
();
const
[
activity
,
vipInfo
]
=
await
Promise
.
all
([
},
API
.
getActivityBaseInfoById
(),
async
getActivityBaseInfoById
()
{
API
.
getVipInfo
(),
const
{
success
,
data
}
=
await
API
.
getActivityBaseInfoById
().
catch
(
res
=>
{
]);
commonToast
(
res
&&
res
.
message
);
if
(
vipInfo
.
isVip
&&
activity
.
data
.
isUserJoin
)
{
})
||
{};
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
}
else
{
if
(
success
)
{
my
.
redirectTo
({
url
:
'/pages/pageshou_ye/pageshou_ye'
});
console
.
log
(
'getActivityBaseInfoById 成功'
)
// my.redirectTo({url:'/pages/pageshou_ye/pageshou_ye'});
// my.redirectTo({url:'/pages/pagehuo_dong_ye/pagehuo_dong_ye'});
}
}
},
},
onReady
()
{
onReady
()
{
...
...
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