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.

48 lines
1.1 KiB

  1. const Http = require("../../utils/HttpBasics");
  2. var config = require("../../config/config.js");
  3. Component({
  4. properties: {
  5. questionnaire: {
  6. type: Object,
  7. value: {}
  8. }
  9. },
  10. data: {
  11. flag: false,
  12. widthScreen: null,
  13. moveData: null,
  14. rotateData: null,
  15. alphaData: null,
  16. scaleData: null,
  17. skewData: null,
  18. matrixData: null
  19. },
  20. methods:{
  21. close:function(){
  22. this.alphaClick();
  23. this.queueClick();
  24. },
  25. /**
  26. * 点击提交问题
  27. */
  28. formSubmit:function(e){
  29. console.log(e);
  30. console.log(e.target.dataset.questitle)
  31. console.log(e.target.dataset.question)
  32. this.alphaClick();
  33. this.queueClick();
  34. },
  35. queueClick: function () {
  36. var animation = wx.createAnimation({});
  37. animation.translate((this.data.widthScreen - 0), 0).scale(0).opacity(0.5).step({ duration: 3000 })
  38. this.setData({ queueData: animation.export() })
  39. },
  40. alphaClick: function (even) {
  41. var animation = wx.createAnimation({})
  42. animation.opacity(0).step({ duration: 2000 })
  43. this.setData({ alphaData: animation.export() })
  44. }
  45. },
  46. onLoad(){
  47. }
  48. });