| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- },
- onLoad: function (options) {
- wx.hideShareMenu();
- var that = this;
- that.setData({
- Containnerheight: main.getWindowHeight(),
- });
- that.init(options.id);
- },
- init: function (id) {
- var that = this;
- var card={};
- var list = app.globalData.CardList;
- for (var i = 0; i < list.length; i++) {
- if (id == list[i].MiaoguoCardID) {
- card.CreateTimeStr = common.formatDateCHS(list[i].CreateTime);
- card.FirstTimeStr = common.formatDateCHS(list[i].FirstTime);
- card.LastTimeStr = common.formatDateCHS(list[i].LastTime);
- card.LimitTimeStr = common.formatDateCHS(list[i].LimitTime);
- card.LearnNumber = list[i].LearnNumber;
- break;
- }
- }
-
- that.setData({
- CardInfo: card
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- })
|