import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { ShowReset:false, ImagePath: app.globalData.uploadImageUrl, }, onLoad: function (options) { var that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); if (options.Type=="ShowReset"){ that.setData({ ShowReset: true, }); wx.setNavigationBarTitle({ title: '重置', }); wx.setNavigationBarColor({ frontColor: "#000000", backgroundColor: "#F8F8F8", }) } }, showSetting:function(){ this.setData({ ShowReset: false, }); wx.setNavigationBarTitle({ title: '模式设置', }); wx.setNavigationBarColor({ frontColor: "#000000", backgroundColor: "#ffffff", }) }, onShow: function () { var that = this; common.getStorageValue(that, "CardType", 0, function () {}); }, setColorPlan: function () { wx.navigateTo({ url: './colorplan', }) }, setPattern: function () { wx.navigateTo({ url: './pattern', }) }, setClickType: function () { wx.navigateTo({ url: './clicktype', }) }, goto: function (e) { var url = e.currentTarget.dataset.url; wx.navigateTo({ url: url, }); }, resetTodayTask:function(){ main.ResetTodayTask(); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID, imageUrl: app.globalData.ShareImage, } }, });