payment.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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="js-profile-payment" ng-controller="PaymentCtrl" ng-cloak>
  10. <table class="table we7-table table-hover table-form">
  11. <col width="140px " />
  12. <col width="400px"/>
  13. <col width="140px" />
  14. <tr>
  15. <th colspan="3">支付参数</th>
  16. </tr>
  17. <tr>
  18. <td>
  19. 微信支付
  20. </td>
  21. <td>
  22. <div class="related-info">
  23. <div>接口类型:新版</div>
  24. <div>支付账号:{$_W['uniaccount']['name']}</div>
  25. </div>
  26. </td>
  27. <td class="text-center">
  28. <div class="link-group"><a href="javascript:;" data-toggle="modal" data-target="#weixin">修改</a></div>
  29. </td>
  30. </tr>
  31. </table>
  32. <!-- 微信修改 -->
  33. <div class="modal fade" id="weixin" tabindex="-1" role="dialog" aria-hidden="true">
  34. <div class="we7-modal-dialog modal-dialog">
  35. <div class="modal-content">
  36. <div class="modal-header">
  37. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  38. <div class="modal-title">微信支付</div>
  39. </div>
  40. <div class="modal-body">
  41. <div class="we7-form">
  42. <div>
  43. <div class="form-group">
  44. <label for="" class="control-label col-sm-2">身份标识<br>(appId)</label>
  45. <div class="form-controls col-sm-10">
  46. <input type="text" name="" disabled class="form-control" value="{$_W['account']['key']}" placeholder="">
  47. <span class="help-block">
  48. 公众号身份标识
  49. <a href="./index.php?c=account&amp;a=post&amp;uniacid=2">
  50. 请通过修改公众号信息来保存
  51. </a>
  52. </span>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label for="" class="control-label col-sm-2">身份密钥<br>(appSecret)</label>
  57. <div class="form-controls col-sm-10">
  58. <input type="text" disabled value="{$_W['account']['secret']}" name="" class="form-control" placeholder="">
  59. <span class="help-block">公众平台API(参考文档API 接口部分)的权限获取所需密钥Key
  60. <a href="./index.php?c=account&amp;a=post&amp;uniacid=2">
  61. 请通过修改公众号信息来保存
  62. </a>
  63. </span>
  64. </div>
  65. </div>
  66. <div>
  67. <div class="form-group">
  68. <label for="" class="control-label col-sm-2">微信支付商户号</label>
  69. <div class="form-controls col-sm-10">
  70. <input type="text" name="" ng-model="paysetting.wechat.mchid" class="form-control" placeholder="">
  71. <span class="help-block">
  72. 财付通商户权限密钥
  73. </span>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label for="" class="control-label col-sm-2">微信支付密钥</label>
  78. <div class="form-controls col-sm-10">
  79. <div class="input-group">
  80. <input type="text" name="" ng-model="paysetting.wechat.signkey" class="form-control" placeholder="">
  81. <a href="javascript:;" class="input-group-addon" ng-click="tokenGen('wechat.signkey')">生成新的密钥</a>
  82. </div>
  83. <span class="help-block">
  84. 财付通商户权限密钥
  85. </span>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="modal-footer">
  93. <button type="button" class="btn btn-primary" ng-click='saveEdit("wechat")'>确定</button>
  94. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <script>
  101. angular.module('wxApp').value('config', {
  102. 'paysetting' : {php echo json_encode($pay_setting)},
  103. 'saveurl' : "{php echo url('wxapp/payment/save_setting')}",
  104. 'get_setting_url' : "{php echo url('wxapp/payment/get_setting')}"
  105. });
  106. angular.bootstrap($('.js-profile-payment'), ['wxApp']);
  107. </script>
  108. {template 'common/footer'}