noticePopup.js 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. theam:'',
  26. prizeInfo:{}
  27. },
  28. methods: {
  29. // 关闭弹窗
  30. closeTip(e){
  31. this.close(e.detail)
  32. },
  33. // 确定
  34. closePopup(){
  35. this.close(false)
  36. },
  37. close(data){
  38. this.triggerEvent("close", {
  39. status:data,
  40. type:'notice'
  41. });
  42. },
  43. // 填写地址
  44. inputAddress(){
  45. this.triggerEvent("inputAddress", {id:this.data.prizeInfo.winId});
  46. },
  47. // 再来一次
  48. tryAgain(){
  49. this.triggerEvent("tryAgain");
  50. }
  51. }
  52. })