import common from '../../utils/util'; import server from '../../utils/main'; const app = getApp(); Page({ data: { UserList: [], }, onLoad: function (options) { this.setData({ Height: common.getSystemHeight(), }); this.init(); }, init: function () { var that = this; server.getData('GetHanziUserListByIntroducer?UserID=' + app.globalData.userInfo.UserID, function (data) { if (data) { if (data.length >= 6) { wx.removeStorageSync("IsMemberForeverRemind"); wx.reLaunch({ url: '../index/index' }) } else { for (var i = 0; i < data.length; i++) { if (data[i].NickName == "陌生用户") data[i].NickName = "未授权"; if (data[i].NickName.length > 4) data[i].NickName = data[i].NickName.substr(0, 3) + "..."; } that.setData({ UserList: data, }); } } }); }, onShareAppMessage: function () { return { title: app.globalData.ShareTitle, path: 'pages/index/index?UserID=' + app.globalData.userInfo.UserID, imageUrl: '../../images/07001.png', } }, })