抖音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.

39 rivejä
904 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. console.log(this.data.ggdata)
  18. let that = this;
  19. tt.navigateTo({
  20. url: `/${that.data.ggdata.pagePath}&g=1`,
  21. })
  22. },
  23. a: function () {
  24. this.setData({ flag: false })
  25. },
  26. closeGg: function () {
  27. let that = this;
  28. var animation = tt.createAnimation({})
  29. // animation.opacity(0).step({ duration: 1000 })
  30. setTimeout(function () {
  31. that.setData({ flag: true })
  32. }, 500)
  33. animation.rotateZ(180).scale(0).opacity(0.5).step({ duration: 1000 })
  34. that.setData({ alphaData1: animation.export() });
  35. },
  36. },
  37. });