newuser.js 991 B

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