paymentPopup.js 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const util = require("../../../utils/util.js");
  2. Component({
  3. properties: {
  4. show:{
  5. type: Boolean,
  6. observer: function (newVal) {
  7. this.setData({ show: newVal });
  8. }
  9. },
  10. presell:{
  11. type:Object,
  12. observer:function(val){
  13. let presellPayEndTime = util.formatDate(util.formatUnixtimestamp(val.presellPaymentDeadline), 'MM月dd日 hh:mm', false);
  14. this.setData({ presell: val,presellPayEndTime});
  15. }
  16. },
  17. },
  18. data: {
  19. show:false,
  20. time:'',
  21. presell:{},
  22. presellPayEndTime:''
  23. },
  24. methods: {
  25. close(){
  26. this.triggerEvent("close", false);
  27. },
  28. // 继续购买
  29. newGroup(e){
  30. this.triggerEvent('makeUpGroup',1)
  31. },
  32. // 支付尾款
  33. jumpBalancePayment(e){
  34. this.triggerEvent('jumpBalancePayment')
  35. }
  36. }
  37. })