| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- },
- onLoad: function (options) {
- var that = this;
- this.setData({
- Containnerheight: server.getWindowHeight(),
- });
- for (var i = 0; i < 9; i++)
- wx.removeStorageSync("HelpHidden" + i);
- common.getStorageValue(this, "HelpHidden0", false, function () {
- that.showHelp();
- });
- },
- goto:function(){
- wx.setStorageSync("HelpHidden0", true);
- this.audioCtx = wx.createAudioContext('myAudio');
- this.audioCtx.pause();
- wx.setStorageSync("IsStart", true);
- wx.redirectTo({
- url: '../main/default',
- })
- },
- showHelp: function () {
- if (!this.data.HelpHidden1) {
- this.audioCtx = wx.createAudioContext('myAudio');
- var str = "欢迎来到数学之星——迈思星球。我是陪你一道练习的小伙伴“算算”。怎么练习?看看上面的介绍吧!";
- server.playAudio(this.audioCtx, str);
- }
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: 'pages/index/index?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- });
|