Commit b3e36f30 authored by wildfirecode13's avatar wildfirecode13

1

parent d664f868
'use strict';
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({
data: {
ruleModalVisible:false
ruleModalVisible: false
},
onLoad(props) {
......@@ -12,22 +15,30 @@ Page({
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')
my.redirectTo({
url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
},
showRuleModal(){
showRuleModal() {
this.setData({
ruleModalVisible:true
ruleModalVisible: true
})
},
ruleModalClose(){
ruleModalClose() {
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