user_relation.js 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. List: [{
  7. NickName: "昵称1"
  8. }, {
  9. NickName: "昵称2"
  10. }, {
  11. NickName: "昵称3"
  12. }, {
  13. NickName: "本人"
  14. }],
  15. },
  16. onLoad: function (options) {
  17. var that = this;
  18. that.data.List[that.data.List.length-1].IsMe="IsMe";
  19. that.setData({
  20. Containnerheight: main.getWindowHeight(),
  21. List:that.data.List,
  22. });
  23. },
  24. onPullDownRefresh: function () {
  25. wx.stopPullDownRefresh();
  26. },
  27. onShareAppMessage: function () {
  28. return {
  29. title: app.globalData.ShareTitle,
  30. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  31. imageUrl: app.globalData.ShareImage,
  32. }
  33. },
  34. })