C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
923 B

  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. let that = this;
  18. wx.navigateTo({
  19. url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId+'&g=1',
  20. })
  21. },
  22. a: function () {
  23. this.setData({ flag: false })
  24. },
  25. closeGg: function () {
  26. let that = this;
  27. var animation = wx.createAnimation({})
  28. // animation.opacity(0).step({ duration: 1000 })
  29. setTimeout(function () {
  30. that.setData({ flag: true })
  31. }, 500)
  32. animation.rotateZ(180).scale(0).opacity(0.5).step({ duration: 1000 })
  33. that.setData({ alphaData1: animation.export() });
  34. },
  35. },
  36. });