| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- Version: app.globalData.Version,
- ListProgram: [
- {
- ImageUrl: "03001.png",
- ImageUrl2: "02018.png",
- appId: 'wx46a7b4c420e6d38f',
- path: 'pages/index/start?SourceID=106',
- },
- {
- ImageUrl: "03002.png",
- ImageUrl2: "02020.png",
- appId: 'wxb54a6d5aff836ee3',
- path: 'pages/index/index?SourceID=106',
- },
- {
- ImageUrl: "03003.png",
- ImageUrl2: "02019.png",
- appId: 'wx331e8dd070f01d0e',
- path: 'pages/index/index?SourceID=106',
- },
- {
- ImageUrl: "03004.png",
- ImageUrl2: "02021.png",
- appId: 'wxa5e33c61fe37dd01',
- path: 'pages/index/index?SourceID=106',
- },
- ],
- NickName: "陌生用户",
- IsMember: false,
- AvatarUrl: "",
- DayNumber: "0",
- ReviewCount: "0",
- FinishedCount: "0",
- IsAccredit: false,
- NavClass1: "",
- NavClass2: "nav2",
- IsRemind: false,
- },
- onReady: function (e) {
- },
- onLoad: function () {
- this.setData({
- Height: common.getSystemHeight(),
- indexImage: common.random(0, 2),
- });
- },
- selectNav: function (e) {
- var id = e.currentTarget.dataset.id;
- //console.log(id);
- if (id == "1") {
- this.setData({
- NavClass1: "",
- NavClass2: "nav2",
- })
- }
- else if (id == "2") {
- this.setData({
- NavClass1: "nav2",
- NavClass2: "nav3",
- IsRemind: false,
- })
- wx.setStorageSync('IsRemind', false);
- }
- },
- goto: function (e) {
- var id = e.currentTarget.dataset.id;
- wx.navigateTo({
- url: "./list?id="+id,
- });
- },
- })
|