| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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,
- }
- },
- });
|