| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- FileUrl: app.globalData.imageUrl,
- },
- onLoad: function (options) {
- this.setData({
- Containnerheight: common.getSystemHeight(),
- });
- this.init();
- },
- init: function () {
- var that = this;
- server.getData('GetWXUsersAllTime?ProductID=' + app.globalData.ProgramID + '&UserID=' + app.globalData.userInfo.UserID, function (data) {
- if (data) {
- for (var i = 0; i < data.length; i++) {
- var date = common.formatDateCHS(common.formatTime(new Date()));
- if (data[i].Time >= date)
- data[i].Member = "会员";
- else
- data[i].Member = "非会员";
- }
- that.setData({
- ProductList: data,
- });
- }
- });
- },
- gotoFeedback: function () {
- server.gotoFeedback();
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- });
|