| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp()
- Page({
- data: {
- FileUrl: "../../",
- ImageAll: ["../../images/01003.png", "../../images/01004.png", "../../images/01005.png"],
- indexImage:0,
- },
- onReady: function (e) {
- },
- onLoad: function () {
- this.setData({
- Height: common.getSystemHeight(),
- indexImage:common.random(0,2),
- });
- setTimeout(function(){
- wx.redirectTo({
- url: '../main/index'
- })
- },2000);
- this.getHanzi();
- },
- getHanzi: function () {
- var that = this;
- var time = wx.getStorageSync("HanziUpdateTime");
- server.getData('GetHanziAll?UpdateTime=' + time, function (data) {
- if (data) {
- var arr = common.Decrypt(data.List);
- wx.setStorageSync("HanziAll", arr);
- wx.setStorageSync("HanziUpdateTime", data.UpdateTime);
- }
- });
- },
- onShareAppMessage: function () {
- return {
- title: '',
- path: 'pages/index/index',
- imageUrl: '../../images/07001.png',
- success: function (res) {
-
- },
- fail: function (err) {
- console.log(err);
- },
- complete: function (res) {
- console.log(res);
- },
- }
- },
- })
|