| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- const arrClickType = ["专属按钮", "点击空白", "两种方式"];
- Page({
- data: {
- },
- onLoad: function () {
- var that = this;
- that.setData({
- Containnerheight: main.getWindowHeight(),
- });
-
- },
- onShow: function () {
- var that = this;
-
- var colorIndex = wx.getStorageSync("ColorIndexArr");
- if (!colorIndex || colorIndex.length > 1) {
- this.setData({
- ColorName: "多色变换",
- });
- }
- else {
- var color = main.getDetailColor(colorIndex[0]);
- this.setData({
- ColorName: color.Name,
- });
- }
- that.setData({
- ClickTypeName: arrClickType[app.globalData.ClickType],
- });
- 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,
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- });
|