growup.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. const util = require('../../../utils/util.js');
  2. Component({
  3. properties: {
  4. info:{
  5. type: Object,
  6. obserover:function(newVal){
  7. this.setData({ info: newVal });
  8. }
  9. },
  10. show:{
  11. type: Boolean,
  12. obserover: function (newVal){
  13. this.setData({ show: newVal });
  14. }
  15. },
  16. status:{
  17. type: Number,
  18. obserover: function (newVal){
  19. this.setData({ status: newVal });
  20. }
  21. },
  22. presellOpen:{
  23. type: Number,
  24. obserover: function (newVal){
  25. this.setData({ presellOpen: newVal });
  26. }
  27. },
  28. gdiscount:{
  29. type: Object,
  30. obserover:function(newVal){
  31. this.setData({ gdiscount: newVal });
  32. }
  33. }
  34. },
  35. data: {
  36. show:false,
  37. height:'85%',
  38. FixHeight:'85%',
  39. info:{
  40. createGroup: 0,
  41. otype: 0,
  42. price: 0.00
  43. },
  44. presellOpen:0,
  45. status:0,
  46. gdiscount:{
  47. items:[],
  48. type:0
  49. }
  50. },
  51. methods: {
  52. submit(){
  53. this.setData({ show: false });
  54. this.triggerEvent("close",{show:this.data.show,pop:true});
  55. },
  56. salesReminder(){
  57. this.setData({ show: false });
  58. this.triggerEvent("salesReminder",false);
  59. }
  60. }
  61. })