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
058dcc6e
Commit
058dcc6e
authored
Sep 08, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9d985411
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
13 deletions
+40
-13
.gitignore
dist/.gitignore
+2
-1
api.js
dist/api.js
+20
-0
app.js
dist/app.js
+2
-2
index.js
dist/pages/index/index.js
+9
-6
pageshou_ye.js
dist/pages/pageshou_ye/pageshou_ye.js
+7
-4
No files found.
dist/.gitignore
View file @
058dcc6e
.DS_Store
.DS_Store
node_modules/
node_modules/
.tea/
.tea/
server/
\ No newline at end of file
dist/api.js
View file @
058dcc6e
...
@@ -36,6 +36,26 @@ const apiList = {
...
@@ -36,6 +36,26 @@ const apiList = {
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
true
isShowLoading
:
true
},
},
submit
:
{
handle
:
'submit'
,
method
:
'get'
,
isShowLoading
:
true
},
getBuyFloorList
:
{
handle
:
'getBuyFloorList'
,
method
:
'get'
,
isShowLoading
:
true
},
getFloorPrize
:
{
handle
:
'getFloorPrize'
,
method
:
'get'
,
isShowLoading
:
true
},
getCredits
:
{
handle
:
'getCredits'
,
method
:
'get'
,
isShowLoading
:
true
},
getVipInfo
:
{
getVipInfo
:
{
handle
:
'getVipInfo'
,
handle
:
'getVipInfo'
,
method
:
'get'
,
method
:
'get'
,
...
...
dist/app.js
View file @
058dcc6e
...
@@ -6,8 +6,8 @@ cloud.init({
...
@@ -6,8 +6,8 @@ cloud.init({
});
});
App
({
App
({
requestType
:
'yapi'
,
// yapi,cloud: 云函数
//
requestType: 'yapi', // yapi,cloud: 云函数
//
requestType: 'cloud', // yapi,cloud: 云函数
requestType
:
'cloud'
,
// yapi,cloud: 云函数
cloudName
:
'floor'
,
// 主云函数项目名 base clientTemplate2C
cloudName
:
'floor'
,
// 主云函数项目名 base clientTemplate2C
cloud
,
cloud
,
tbcc
,
tbcc
,
...
...
dist/pages/index/index.js
View file @
058dcc6e
...
@@ -23,16 +23,19 @@ Page({
...
@@ -23,16 +23,19 @@ Page({
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
},
async
init
()
{
async
init
()
{
API
.
getBuyFloorList
();
// API.getFloorPrize();
// API.getCredits();
const
[
activity
,
vipInfo
]
=
await
Promise
.
all
([
const
[
activity
,
vipInfo
]
=
await
Promise
.
all
([
API
.
getActivityBaseInfoById
(),
API
.
getActivityBaseInfoById
(),
API
.
getVipInfo
(),
API
.
getVipInfo
(),
]);
]);
//
if (vipInfo.isVip && activity.data.isUserJoin) {
if
(
vipInfo
.
isVip
&&
activity
.
data
.
isUserJoin
)
{
//
my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' });
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
//
} else {
}
else
{
//
my.redirectTo({ url: '/pages/pageshou_ye/pageshou_ye' });
my
.
redirectTo
({
url
:
'/pages/pageshou_ye/pageshou_ye'
});
//
}
}
my
.
redirectTo
({
url
:
'/pages/myprize/myprize'
});
//
my.redirectTo({ url: '/pages/myprize/myprize' });
},
},
onReady
()
{
onReady
()
{
// 页面加载完成
// 页面加载完成
...
...
dist/pages/pageshou_ye/pageshou_ye.js
View file @
058dcc6e
...
@@ -25,10 +25,13 @@ Page({
...
@@ -25,10 +25,13 @@ Page({
},
},
handleStart
()
{
handleStart
()
{
console
.
log
(
'change'
)
my
.
redirectTo
({
API
.
submit
({
grade
:
1
,
floor
:
10
});
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
// console.log('change')
// my.redirectTo({
// url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye'
// });
},
},
showRuleModal
()
{
showRuleModal
()
{
this
.
setData
({
this
.
setData
({
...
...
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