NativePay.js 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. var windowID;
  2. //加载
  3. $(function () {
  4. windowID = $.SystemGeneral.getUrlParam("WindowID");
  5. })
  6. function WechatPay() {
  7. var url = CMS_SystemConfig.VirtualDirectoryPath + '/Weixin/NativePay?examinationRegistrationID=' + examinationRegistrationID
  8. + '&fee=' + fee
  9. + '&feeTypeName=' + escape(feeTypeName);
  10. // + '&WindowID=' + windowID;
  11. //location.href = url;
  12. top.$("#" + windowID).dialog("close");
  13. $.popupTopWindow('微信支付', url, 320, 380, reload);
  14. }
  15. function AliPay() {
  16. var url = CMS_SystemConfig.VirtualDirectoryPath + '/Alipay/NativePay?examinationRegistrationID=' + examinationRegistrationID
  17. + '&fee=' + fee
  18. + '&feeTypeName=' + escape(feeTypeName);
  19. // + '&WindowID=' + windowID;
  20. //location.href = url;
  21. top.$("#" + windowID).dialog("close");
  22. $.popupTopWindow('支付宝支付', url, 320, 380, reload);
  23. }
  24. function reload() {
  25. var tab = top.$('#index_center_tabs').tabs('getSelected');
  26. var $iframe = tab.panel('body').find("iframe");
  27. $iframe[0].contentWindow.reload();
  28. }