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
10f041a4
Commit
10f041a4
authored
Sep 08, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4c074518
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
74 deletions
+19
-74
app.json
dist/app.json
+0
-1
index.acss
dist/pages/index/index.acss
+4
-69
index.axml
dist/pages/index/index.axml
+1
-1
index.js
dist/pages/index/index.js
+14
-3
No files found.
dist/app.json
View file @
10f041a4
{
"pages"
:
[
"pages/pagehuo_dong_ye/pagehuo_dong_ye"
,
"pages/index/index"
,
"pages/myprize/myprize"
,
"pages/pageshou_ye/pageshou_ye"
,
"pages/pagejie_shu_ye/pagejie_shu_ye"
,
...
...
dist/pages/index/index.acss
View file @
10f041a4
...
...
@@ -2,74 +2,9 @@
min-height: 100vh;
}
.index-rule-btn, .index-myprize-btn {
.index-page .bg {
width: 750rpx;
height: 1624rpx;
opacity: 1;
position: absolute;
top: 30rpx;
width: 126rpx;
height: 48rpx;
line-height: 48rpx;
font-size: 22rpx;
background: rgba(0, 0, 0, 0.8);
color: #FFF;
text-align: center;
z-index: 5;
}
.index-rule-btn {
left: 0;
border-radius: 0 48rpx 48rpx 0;
}
.index-myprize-btn {
right: 0;
border-radius: 48rpx 0 0 48rpx;
}
.index-page__title {
font-size: 50rpx;
text-align: center;
padding: 100rpx 0 50rpx 0;
}
.index-page__content {
text-align: center;
font-size: 30rpx;
}
.index-page__tips {
padding-top: 40rpx;
text-align: center;
font-size: 22rpx;
}
.index-start-btn {
background: #0077a9;
color: #FFF;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 10rpx;
margin: 100rpx auto 50rpx auto;
font-size: 30rpx;
}
.index-tbcc-btn {
background: #0077a9;
color: #FFF;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 10rpx;
margin: 0 auto;
font-size: 30rpx;
}
.index-link-btn {
text-align: center;
color: #333;
font-size: 26rpx;
}
\ No newline at end of file
dist/pages/index/index.axml
View file @
10f041a4
<view class="index-page">
<
view></view
>
<
image class="bg" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} /
>
</view>
\ No newline at end of file
dist/pages/index/index.js
View file @
10f041a4
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
SHARE_CONFIG
,
REDIRECT_URL
}
=
tbcc
.
constants
;
import
resList
from
'../../resconfig/resList'
;
import
API
from
'../../api'
;
const
{
commonToast
,
getAuthUserInfo
,
navigateToOutside
}
=
tbcc
.
tb
;
...
...
@@ -18,24 +19,27 @@ Page({
ruleModalVisible
:
false
},
onLoad
(
query
)
{
this
.
setData
({
resList
:
resList
});
// 页面加载
this
.
getAuth
();
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
async
init
()
{
API
.
getBuyFloorList
();
//
API.getFloorPrize();
//
API.getCredits();
API
.
getFloorPrize
();
API
.
getCredits
();
const
[
activity
,
vipInfo
]
=
await
Promise
.
all
([
API
.
getActivityBaseInfoById
(),
API
.
getVipInfo
(),
]);
// vipInfo.isVip=true;
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
()
{
// 页面加载完成
...
...
@@ -164,6 +168,13 @@ Page({
},
onShareAppMessage
()
{
// 返回自定义分享信息
// export const SHARE_CONFIG = {
// title: '分享测试标题',
// desc: '分享测试描述',
// imageUrl: '', // 分享图片URL
// path: 'pages/index/index'
// };
return
SHARE_CONFIG
;
},
});
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