Commit 058dcc6e authored by wildfirecode13's avatar wildfirecode13

1

parent 9d985411
.DS_Store .DS_Store
node_modules/ node_modules/
.tea/ .tea/
server/
\ No newline at end of file
...@@ -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',
......
...@@ -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,
......
...@@ -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() {
// 页面加载完成 // 页面加载完成
......
...@@ -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({
......
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