awardPopup.js 780 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Component({
  2. properties: {
  3. show:{
  4. type: Boolean,
  5. observer: function (newVal) {
  6. this.setData({ show: newVal });
  7. }
  8. },
  9. theam:{
  10. type: String,
  11. value:'redContent',
  12. observer: function (newVal) {
  13. this.setData({ theam: newVal });
  14. }
  15. },
  16. prizeInfo:{
  17. type: Object,
  18. observer: function (newVal) {
  19. this.setData({ prizeInfo: newVal });
  20. }
  21. }
  22. },
  23. data: {
  24. show:false,
  25. height:'80%',
  26. theam:'',
  27. prizeInfo:{}
  28. },
  29. methods: {
  30. // 关闭弹窗
  31. closeTip(e){
  32. this.close(e.detail)
  33. },
  34. // 确定
  35. closePopup(){
  36. this.close(false)
  37. },
  38. close(data){
  39. this.triggerEvent("close", {
  40. status:data,
  41. type:'award'
  42. });
  43. }
  44. }
  45. })