人人商城

payment.html 5.4KB

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