人人商城

refund.html 3.9KB

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