Commit b3e36f30 authored by wildfirecode13's avatar wildfirecode13

1

parent d664f868
'use strict'; 'use strict';
import resList from '../../resconfig/resList'; //import API from '../../api'; import resList from '../../resconfig/resList'; //import API from '../../api';
import API from '../../api';
const app = getApp();
const { tbcc } = app;
const { commonToast, getAuthUserInfo, navigateToOutside } = tbcc.tb;
Page({ Page({
data: { data: {
ruleModalVisible:false ruleModalVisible: false
}, },
onLoad(props) { onLoad(props) {
...@@ -12,22 +15,30 @@ Page({ ...@@ -12,22 +15,30 @@ Page({
resList: resList resList: resList
}); });
}, },
gotoVipPage() {
API.getVipInfo().then(res => {
if (!res.vip)
navigateToOutside(res.url)
else
my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' });
})
},
handleStart(){ handleStart() {
console.log('change') console.log('change')
my.redirectTo({ my.redirectTo({
url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye' url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye'
}); });
}, },
showRuleModal(){ showRuleModal() {
this.setData({ this.setData({
ruleModalVisible:true ruleModalVisible: true
}) })
}, },
ruleModalClose(){ ruleModalClose() {
this.setData({ this.setData({
ruleModalVisible:false ruleModalVisible: false
}) })
} }
......
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