人人商城

refund.tpl.php 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <div class="we7-page-title">
  3. 退款参数设置
  4. </div>
  5. <ul class="we7-page-tab">
  6. <?php if(is_array($active_sub_permission)) { foreach($active_sub_permission as $active_menu) { ?>
  7. <?php if(permission_check_account_user($active_menu['permission_name'], false) && (empty($active_menu['is_display']) || is_array($active_menu['is_display']) && in_array($_W['account']['type'], $active_menu['is_display']))) { ?>
  8. <li <?php if($action == $active_menu['active']) { ?>class="active"<?php } ?>><a href="<?php echo $active_menu['url'];?>"><?php echo $active_menu['title'];?></a></li>
  9. <?php } ?>
  10. <?php } } ?>
  11. </ul>
  12. <div class="main" id="js-profile-refund" ng-controller="refundCtrl">
  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">{{ wechat_refund.switch == 1 ? '开启' : '关闭' }}</td>
  26. <td class="text-right">
  27. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#wechat_refund">修改</a></div>
  28. </td>
  29. </tr>
  30. </table>
  31. <table class="we7-table table-hover table-form">
  32. <col width="150px"/>
  33. <col />
  34. <col width="150px"/>
  35. <tr>
  36. <th colspan="4">支付宝退款设置</th>
  37. </tr>
  38. <tr>
  39. <td>支付宝退款</td>
  40. <td class="color-gray"></td>
  41. <td class="color-gray">{{ ali_refund.switch == 1 ? '开启' : '关闭' }}</td>
  42. <td class="text-right">
  43. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#ali_refund">修改</a></div>
  44. </td>
  45. </tr>
  46. </table>
  47. </div>
  48. </form>
  49. <div class="modal fade" id="ali_refund" tabindex="-1" role="dialog" aria-hidden="true" ng-cloak>
  50. <div class="we7-modal-dialog modal-dialog">
  51. <div class="modal-content">
  52. <form action="<?php echo url('profile/refund/save_setting')?>" id="form_ali" method="post" class="we7-form form" enctype="multipart/form-data">
  53. <div class="modal-header">
  54. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  55. <div class="modal-title">支付宝退款设置</div>
  56. </div>
  57. <div class="modal-body">
  58. <div class="we7-form">
  59. <div class="form-group">
  60. <label for="" class="control-label col-sm-3"><span class="pull-right">支付宝退款设置</span></label>
  61. <div class="form-controls col-sm-7 pull-right">
  62. <input type="radio" id="radio-wechat-3" name="param[switch]" value="1" ng-checked="ali_refund.switch == 1" ng-click="change_switch('ali_refund', 1)"/>
  63. <label for="radio-wechat-3">开启 </label>
  64. <input type="radio" id="raido-wechat-4" name="param[switch]" value="0" ng-checked="ali_refund.switch != 1" ng-click="change_switch('ali_refund', 0)"/>
  65. <label for="raido-wechat-4">关闭 </label>
  66. </div>
  67. </div>
  68. <input type="hidden" name="type" value="ali_refund">
  69. <div class="form-group">
  70. <label for="" class="control-label col-sm-3"><span class="pull-right">app_id</span></label>
  71. <div class="form-controls col-sm-4" style="margin-left: 10ex;">
  72. <input type="text" class="form-control" name="param[app_id]" value="" ng-model="ali_refund.app_id">
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <label for="" class="control-label col-sm-5">rsa_private_key.pem 证书</label>
  77. <span class="text-success col-sm-4">{{ ali_refund.private_key != '' && ali_refund.private_key != undefind ? '已上传' : '' }}</span>
  78. <div class="form-controls col-sm-3">
  79. <input type="file" id="private_key" class="hidden" name="private_key">
  80. <a class="color-default" href="javascript:;" onclick="private_key.click()">上传证书</a>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="modal-footer">
  86. <button type="submit" class="btn btn-primary">确定</button>
  87. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  88. </div>
  89. </form>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="modal fade" id="wechat_refund" tabindex="-1" role="dialog" aria-hidden="true" ng-cloak>
  94. <div class="we7-modal-dialog modal-dialog">
  95. <div class="modal-content">
  96. <form action="<?php echo url('profile/refund/save_setting')?>" method="post" class="we7-form form" id="form_wechat" enctype="multipart/form-data">
  97. <div class="modal-header">
  98. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  99. <div class="modal-title">微信退款设置</div>
  100. </div>
  101. <div class="modal-body">
  102. <div class="we7-form">
  103. <div class="alert alert-warning">
  104. 证书:<br/>
  105. 使用微信退款功能需要上传双向证书。<br/>
  106. 证书下载方式:<br>
  107. 微信商户平台(pay.weixin.qq.com)-->账户中心-->账户设置-->API安全-->证书下载。<br>
  108. 我们仅用到apiclient_cert.pem 和 apiclient_key.pem这两个证书<br>
  109. </div>
  110. <div class="alert alert-warning">
  111. 接口:<br/>
  112. 支付回调URL: <?php echo $_W['siteroot'];?>payment/wechat/refund.php
  113. </div>
  114. <div class="form-group">
  115. <label for="" class="control-label col-sm-3"><span class="pull-right">微信退款</span></label>
  116. <div class="form-controls col-sm-7 pull-right">
  117. <input type="radio" id="radio-wechat-1" name="param[switch]" value="1" ng-checked="wechat_refund.switch == 1" ng-click="change_switch('wechat_refund', 1)"/>
  118. <label for="radio-wechat-1">开启 </label>
  119. <input type="radio" id="raido-wechat-0" name="param[switch]" value="0" ng-checked="wechat_refund.switch != 1" ng-click="change_switch('wechat_refund', 0)"/>
  120. <label for="raido-wechat-0">关闭 </label>
  121. </div>
  122. </div>
  123. <input type="hidden" name="type" value="wechat_refund">
  124. <div class="form-group">
  125. <label for="" class="control-label col-sm-5">apiclient_cert.pem 证书</label>
  126. <span class="text-success col-sm-4">{{ wechat_refund.cert != '' && wechat_refund.cert != undefind ? '已上传' : '' }}</span>
  127. <div class="form-controls col-sm-3 pull-right">
  128. <input type="file" id="cert" class="hidden" name="cert">
  129. <a class="color-default" href="javascript:;" onclick="cert.click()">上传证书</a>
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label for="" class="control-label col-sm-5">apiclient_key.pem 证书</label>
  134. <span class="text-success col-sm-4">{{ wechat_refund.key != '' && wechat_refund.key != undefind ? '已上传' : '' }}</span>
  135. <div class="form-controls col-sm-3pull-right">
  136. <input type="file" id="key" class="hidden" name="key">
  137. <a class="color-default" href="javascript:;" onclick="key.click()">上传证书</a>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="modal-footer">
  143. <button type="submit" class="btn btn-primary">确定</button>
  144. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  145. </div>
  146. </form>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <script>
  152. angular.module('profileApp').value('config', {
  153. 'setting' : <?php echo json_encode($setting)?>,
  154. });
  155. angular.bootstrap($('#js-profile-refund'), ['profileApp']);
  156. </script>
  157. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>