refund.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {template 'common/header'}
  2. <ul class="we7-page-tab">
  3. {loop $active_sub_permission $active_menu}
  4. {if permission_check_account_user($active_menu['permission_name'], false, 'wxapp')}
  5. <li {if $action == $active_menu['active']}class="active"{/if}><a href="{$active_menu['url']}version_id={$_GPC['version_id']}">{$active_menu['title']}</a></li>
  6. {/if}
  7. {/loop}
  8. </ul>
  9. <div class="main">
  10. <form id="form21" action="" method="post" class="we7-form form" enctype="multipart/form-data">
  11. <div class="panel-body">
  12. <table class="we7-table table-hover table-form">
  13. <col width="150px"/>
  14. <col />
  15. <col width="150px"/>
  16. <tr>
  17. <th colspan="4">微信退款设置</th>
  18. </tr>
  19. <tr>
  20. <td>微信退款</td>
  21. <td class="color-gray"></td>
  22. <td class="color-gray">{php echo($open_or_close ? '开启': '关闭')}</td>
  23. <td class="text-right">
  24. <a class="link-group" data-toggle="modal" data-target="#wechat_refund"><span >修改</span></a>
  25. </td>
  26. </tr>
  27. </table>
  28. </div>
  29. </form>
  30. <div class="modal fade" id="wechat_refund" tabindex="-1" role="dialog"
  31. aria-hidden="true">
  32. <div class="we7-modal-dialog modal-dialog">
  33. <div class="modal-content">
  34. <form action="{php echo url('wxapp/refund/save_setting')}" method="post" class="we7-form form" id="form_wechat" enctype="multipart/form-data">
  35. <div class="modal-header">
  36. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  37. <div class="modal-title">微信退款设置</div>
  38. </div>
  39. <div class="modal-body">
  40. <div class="we7-form">
  41. <div class="alert alert-warning">
  42. 证书:<br/>
  43. 使用微信退款功能需要上传双向证书。<br/>
  44. 证书下载方式:<br>
  45. 微信商户平台(pay.weixin.qq.com)-->账户中心-->账户设置-->API安全-->证书下载。<br>
  46. 我们仅用到apiclient_cert.pem 和 apiclient_key.pem这两个证书<br>
  47. </div>
  48. <div class="alert alert-warning">
  49. 接口:<br/>
  50. 支付回调URL: {$_W['siteroot']}payment/wechat/refund.php
  51. </div>
  52. <div class="form-group">
  53. <label for="" class="control-label col-sm-3"><span class="pull-right">微信退款</span></label>
  54. <div class="form-controls col-sm-7 pull-right">
  55. <input type="radio" id="radio-wechat-1" name="switch" value="1" {if $open_or_close == true} checked {/if}/>
  56. <label for="radio-wechat-1">开启 </label>
  57. <input type="radio" id="raido-wechat-0" name="switch" value="0" {if $open_or_close == false} checked {/if}/>
  58. <label for="raido-wechat-0">关闭 </label>
  59. </div>
  60. </div>
  61. <input type="hidden" name="type" value="wechat_refund">
  62. <div class="form-group">
  63. <label for="" class="control-label col-sm-5">apiclient_cert.pem 证书</label>
  64. <span class="text-success col-sm-4">{php echo($has_cert ? '已上传' : '') }</span>
  65. <div class="form-controls col-sm-3 pull-right">
  66. <input type="file" id="cert" name="cert">
  67. <!--<a class="color-default" href="javascript:;" onclick="cert.click()">上传证书</a>-->
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="" class="control-label col-sm-5">apiclient_key.pem 证书</label>
  72. <span class="text-success col-sm-4">{php echo($has_key ? '已上传' : '')}</span>
  73. <div class="form-controls col-sm-3 pull-right">
  74. <input type="file" id="key" name="key">
  75. <!--<a class="color-default" href="javascript:;" onclick="key.click()">上传证书</a>-->
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="modal-footer">
  81. <button type="submit" class="btn btn-primary">确定</button>
  82. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  83. </div>
  84. </form>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. {template 'common/footer'}