newuser.js 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. var app = getApp();
  4. Page({
  5. data: {
  6. PayPanel: 0,
  7. },
  8. onLoad: function (options) {
  9. var that = this;
  10. that.setData({
  11. Containnerheight: main.getWindowHeight(),
  12. });
  13. },
  14. copyManager: function () {
  15. wx.setClipboardData({
  16. data: "秒过学习法",
  17. success(res) {
  18. wx.showModal({
  19. title: '已复制',
  20. showCancel: false,
  21. content: "请在微信添加公众号中长按粘贴。",
  22. confirmText: "知道了",
  23. });
  24. }
  25. });
  26. },
  27. gotoIndex: function () {
  28. wx.reLaunch({
  29. url: '../index/index',
  30. })
  31. },
  32. onShareAppMessage: function () {
  33. return {
  34. title: app.globalData.ShareTitle,
  35. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  36. imageUrl: app.globalData.ShareImage,
  37. }
  38. },
  39. })