Commit 10f041a4 authored by wildfirecode13's avatar wildfirecode13

1

parent 4c074518
{
"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",
......
......@@ -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
<view class="index-page">
<view></view>
<image class="bg" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
</view>
\ No newline at end of file
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;
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment