| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- List: [],
- IsPay: true,
- IsShow: 0,
- },
- onLoad: function (options) {
- var that = this;
- var childUserID = 0;
- if (app.globalData.userInfo.ChildUserID && app.globalData.userInfo.ChildUserID != undefined)
- childUserID = app.globalData.userInfo.ChildUserID;
- var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
- var today15 = common.formatDateCHS(common.formatTime(common.addDate("d", 15, new Date())));
- var isPay = true;
- if (productServiceTime > today15) {
- isPay = false;
- }
- that.setData({
- Containnerheight: main.getWindowHeight(),
- ProgramName: app.globalData.ProgramName,
- Version: app.globalData.Version,
- ProductServiceTime: productServiceTime,
- IsPay: isPay,
- IsShow: app.globalData.userInfo.IsShow,
- ChildUserID: childUserID,
- });
- },
- gotoPay: function () {
- var payindex = 3;
- if (app.globalData.userInfo.IsFinishTask == 1)
- payindex = 2;
- wx.navigateTo({
- url: '../other/pay?paypanel=1&payindex=' + payindex,
- });
- },
- gotoBinding: function () {
- wx.navigateTo({
- url: '../other/binding',
- })
- },
- gotoUserbook:function(){
- wx.navigateTo({
- url: '../other/userbook',
- });
- },
- updateMember: function () {
- wx.reLaunch({
- url: '../index/index',
- })
- },
- gotoMarketingUserList: function (e) {
- wx.navigateTo({
- url: '../../marketing/main/index',
- });
- },
- onShareAppMessage: function () {
- return {
- title: app.globalData.ShareTitle,
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
- imageUrl: app.globalData.ShareImage,
- }
- },
- })
|