123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- const app = getApp();
- Page({
-
- data: {
- hiddenModel:false,
- isShow:false,
- isExercise:0,
- statusBar: app.globalData.statusBar
- },
-
- onLoad: function (options) {
- this.setData(options)
- console.log(options)
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- },
-
- navigateCtl: app.navigateCtl,
-
- redirectCtl: app.redirectCtl,
-
- blockCtl: function () {
- this.redirectCtl({ url: 'me', method: {} }, true)
- },
-
- allShowModel: function () {
- this.setData({ hiddenModel: false })
- },
- getTest:function(){
- const {isExercise,ageGroup}=this.data;
- if(isExercise==0){
- this.setData({ hiddenModel: true })
- }else{
- this.redirectCtl({ url: 'tu_xing_tui_li', method: { level:1, ageGroup } }, true)
- }
- },
-
- exercise:function(){
- this.redirectCtl({ url: 'lian_xi', method: {} }, true)
- }
- })
|