pay-comp.component.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <ion-modal
  2. #modal
  3. trigger="open-modal"
  4. [isOpen]="isOpen"
  5. (didDismiss)="isOpen = false"
  6. [backdropDismiss]="false"
  7. >
  8. <ng-template>
  9. <div class="pay-box">
  10. <div class="close" (click)="onClose()">
  11. <ion-icon name="close-outline"></ion-icon>
  12. </div>
  13. @if (!codeLink) {
  14. <div class="pay-title">支付订单</div>
  15. <div class="pay-num">¥{{ price || 0 }}</div>
  16. <div class="options">
  17. <div class="row" (click)="onchangPay('wxpay')">
  18. <div class="label">
  19. <img src="img/wxpay.png" alt="" class="icon" />
  20. <div class="text">微信支付</div>
  21. </div>
  22. <div
  23. [ngClass]="{
  24. 'check-active': checkpay == 'wxpay',
  25. chekc: true
  26. }"
  27. >
  28. <div class="checkbox"></div>
  29. </div>
  30. </div>
  31. <div class="bar"></div>
  32. <div class="row" (click)="onchangPay('alipay')">
  33. <div class="label">
  34. <img src="img/pay_alipay.png" alt="" class="icon" />
  35. <div class="text">支付宝</div>
  36. </div>
  37. <div
  38. [ngClass]="{
  39. 'check-active': checkpay == 'alipay',
  40. chekc: true
  41. }"
  42. >
  43. <div class="checkbox"></div>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="pay-footer">
  48. <div class="order-num">订单编号{{ tradeNo }}</div>
  49. <div class="pay-btn" (click)="userPayment()">去付款</div>
  50. </div>
  51. } @else{
  52. <div class="qrcode">
  53. <img [src]="codeLink" alt="" />
  54. </div>
  55. }
  56. </div>
  57. </ng-template>
  58. </ion-modal>