C端小程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

41 righe
1.0 KiB

  1. // components/advertisement.js
  2. const Http = require("../../utils/HttpBasics");
  3. var config = require("../../config/config.js");
  4. Component({
  5. properties: {
  6. ggdata: {
  7. type: Object,
  8. value: {}
  9. }
  10. },
  11. data: {
  12. flag: false,
  13. alphaData1: null,
  14. },
  15. methods: {
  16. gotoGg: function (e) {
  17. console.log(this.data.ggdata)
  18. let that = this;
  19. /* wx.navigateTo({
  20. url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId+'&g=1',
  21. }) */
  22. wx.navigateTo({
  23. url: `/${that.data.ggdata.pagePath}&g=1`,
  24. })
  25. },
  26. a: function () {
  27. this.setData({ flag: false })
  28. },
  29. closeGg: function () {
  30. let that = this;
  31. var animation = wx.createAnimation({})
  32. // animation.opacity(0).step({ duration: 1000 })
  33. setTimeout(function () {
  34. that.setData({ flag: true })
  35. }, 500)
  36. animation.rotateZ(180).scale(0).opacity(0.5).step({ duration: 1000 })
  37. that.setData({ alphaData1: animation.export() });
  38. },
  39. },
  40. });