C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
931 B

  1. const Http = require("../../utils/HttpBasics");
  2. const config = require("../../config/config");
  3. let app = getApp();
  4. Page({
  5. data: {
  6. token:'',
  7. url:''
  8. },
  9. onShareAppMessage: function (res) {
  10. let _this=this;
  11. return {
  12. title: '小游戏',
  13. path: 'pages/index/index' + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''),
  14. success: function (res) {
  15. // 转发成功
  16. },
  17. fail: function (res) {
  18. // 转发失败
  19. }
  20. }
  21. },
  22. onShow: function () {
  23. app.globalData.havePlayEd=true;
  24. },
  25. onLoad(options) {
  26. if (options.share){
  27. }else{
  28. this.setData({
  29. url: options.url + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id
  30. // url: 'http://10.100.10.74:8080/guaguale/' + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id
  31. });
  32. }
  33. }
  34. });