| @@ -16,8 +16,19 @@ Page({ | |||
| */ | |||
| onLoad: function (options) { | |||
| app.globalData.nowPage = 3; | |||
| if (app.globalData.openid) { | |||
| this.loadFun(); | |||
| } else { | |||
| app.globalData.openidSuccessFuc = this.loadFun; | |||
| } | |||
| }, | |||
| loadFun:function(){ | |||
| if (!app.globalData.addPageEnterState.guessPrize) { | |||
| app.addPageEnter("7C8AAA38F8D85EFC48C2995FB6EBAC19"); | |||
| app.globalData.addPageEnterState.guessPrize = true; | |||
| } | |||
| }, | |||
| /** | |||
| * 生命周期函数--监听页面初次渲染完成 | |||
| */ | |||
| @@ -39,10 +39,6 @@ Page({ | |||
| } | |||
| }, | |||
| loadFun:function(){ | |||
| if (!app.globalData.addPageEnterState.guessPrize) { | |||
| app.addPageEnter("7C8AAA38F8D85EFC48C2995FB6EBAC19"); | |||
| app.globalData.addPageEnterState.guessPrize = true; | |||
| } | |||
| this.getFirstGuessInfo(); | |||
| }, | |||
| /** | |||