makeGroup.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // components/activity/makeGroup.js
  2. const util = require("../../../utils/util.js");
  3. Component({
  4. properties: {
  5. datas:{
  6. type: Object,
  7. observer:function(val){
  8. this.setData({ showObj: val });
  9. }
  10. },
  11. remainTime:{
  12. type: Object,
  13. observer:function(val){
  14. this.setData({ updateTime: val });
  15. }
  16. },
  17. presell:{
  18. type:Object,
  19. observer:function(val){
  20. let presellPayEndTime = util.formatDate(util.formatUnixtimestamp(val.presellPaymentDeadline), 'MM月dd日 hh:mm', false);
  21. this.setData({ presell: val,presellPayEndTime});
  22. }
  23. },
  24. presellOpen:{
  25. type: Number,
  26. observer:function(val){
  27. this.setData({ presellOpen: val });
  28. }
  29. }
  30. },
  31. data: {
  32. showObj:{},
  33. updateTime:{},
  34. presell:{},
  35. presellPayEndTime:'',
  36. presellOpen:0
  37. },
  38. methods: {
  39. newGroup(e){
  40. this.triggerEvent('makeUpGroup',e.target.dataset.creategroup)
  41. },
  42. jumpBalancePayment(e){
  43. this.triggerEvent('jumpBalancePayment')
  44. }
  45. }
  46. })