C端小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

34 linhas
845 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',
  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. });