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
4c074518
Commit
4c074518
authored
Sep 08, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/wanghongyuan/hello_taobao
parents
98131573
7ed20fb4
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 @
4c074518
.DS_Store
node_modules/
.tea/
server/
\ No newline at end of file
dist/api.js
View file @
4c074518
...
...
@@ -36,6 +36,26 @@ const apiList = {
method
:
'get'
,
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
:
{
handle
:
'getVipInfo'
,
method
:
'get'
,
...
...
dist/app.js
View file @
4c074518
...
...
@@ -6,8 +6,8 @@ cloud.init({
});
App
({
requestType
:
'yapi'
,
// yapi,cloud: 云函数
//
requestType: 'cloud', // yapi,cloud: 云函数
//
requestType: 'yapi', // yapi,cloud: 云函数
requestType
:
'cloud'
,
// yapi,cloud: 云函数
cloudName
:
'floor'
,
// 主云函数项目名 base clientTemplate2C
cloud
,
tbcc
,
...
...
dist/pages/index/index.js
View file @
4c074518
...
...
@@ -23,16 +23,19 @@ Page({
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
async
init
()
{
API
.
getBuyFloorList
();
// API.getFloorPrize();
// API.getCredits();
const
[
activity
,
vipInfo
]
=
await
Promise
.
all
([
API
.
getActivityBaseInfoById
(),
API
.
getVipInfo
(),
]);
//
if (vipInfo.isVip && activity.data.isUserJoin) {
//
my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' });
//
} else {
//
my.redirectTo({ url: '/pages/pageshou_ye/pageshou_ye' });
//
}
my
.
redirectTo
({
url
:
'/pages/myprize/myprize'
});
if
(
vipInfo
.
isVip
&&
activity
.
data
.
isUserJoin
)
{
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
}
else
{
my
.
redirectTo
({
url
:
'/pages/pageshou_ye/pageshou_ye'
});
}
//
my.redirectTo({ url: '/pages/myprize/myprize' });
},
onReady
()
{
// 页面加载完成
...
...
dist/pages/pageshou_ye/pageshou_ye.js
View file @
4c074518
...
...
@@ -25,10 +25,13 @@ Page({
},
handleStart
()
{
console
.
log
(
'change'
)
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
API
.
submit
({
grade
:
1
,
floor
:
10
});
// console.log('change')
// my.redirectTo({
// url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye'
// });
},
showRuleModal
()
{
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