人人商城

paysetting.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {template 'header'}
  2. <ul class="we7-page-tab">
  3. <li {if $_GPC['operate'] == 'alipay' || $_GPC['operate'] == ''}class="active"{/if}><a href="{php echo $this->createWebUrl('paySetting', array('direct' => 1, 'operate' => 'alipay'))}">支付宝支付设置</a></li>
  4. <li {if $_GPC['operate'] == 'wechat'}class="active"{/if}><a href="{php echo $this->createWebUrl('paySetting', array('direct' => 1, 'operate' => 'wechat'))}">微信支付设置</a></li>
  5. <!-- <li><a href="#">京东支付设置</a></li> -->
  6. <!-- <li><a href="#">银行卡支付设置</a></li> -->
  7. <!-- <li><a href="#">applePay支付设置</a></li> -->
  8. </ul>
  9. <form action="" method="post" class="we7-form" id="js-pay-setting" ng-controller="storePaySettingCtrl" ng-cloak>
  10. {if $operate == 'alipay'}
  11. <div class="form-group">
  12. <label class="control-label col-sm-2">支付宝无线支付</label>
  13. <div class="col-sm-8">
  14. <div class="alert alert-warning">
  15. 您的支付宝账号必须支持手机网页即时到账接口,才能使用手机支付功能 <a href="https://b.alipay.com/order/productDetail.htm?productId=2013080604609688" target="_blank" class="color-default">申请及详情查看这里</a>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="control-label col-sm-2">开关</label>
  21. <div class="col-sm-8">
  22. <input id='radio-1' type="radio" name='switch' ng-checked="alipay.switch == 1" value="1"/>
  23. <label for="radio-1">开启 </label>
  24. <input id='radio-2' type="radio" name='switch' ng-checked="alipay.switch != 1" value="2"/>
  25. <label for="radio-2">关闭 </label>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-sm-2">收款支付宝账号</label>
  30. <div class="col-sm-8">
  31. <div class="input-group">
  32. <input type="text" class="form-control" name="account" ng-model="alipay.account">
  33. <span class="input-group-addon" ng-click="aliaccounthelp = !aliaccounthelp"><i class="wi wi-warning-sign" style="font-size:18px;"></i></span>
  34. </div>
  35. <span class="help-block" ng-show="aliaccounthelp">
  36. 如果开启兑换或交易功能,请填写真实有效的支付宝账号,用于收取用户以现金兑换交易积分的相关款项。如账号无效或安全码有误,将导致用户支付后无法正确对其积分账户自动充值,或进行正常的交易对其积分账户自动充值,或进行正常的交易。 如您没有支付宝帐号,
  37. <a href="https://memberprod.alipay.com/account/reg/enterpriseIndex.htm" target="_blank" class="color-default">请点击这里注册</a>
  38. </span>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="control-label col-sm-2">合作者身份</label>
  43. <div class="col-sm-8">
  44. <div class="input-group">
  45. <input type="text" class="form-control" name="partner" ng-model="alipay.partner">
  46. <span class="input-group-addon" ng-click="alipartnerhelp = !alipartnerhelp"><i class="wi wi-warning-sign" style="font-size:18px;"></i></span>
  47. </div>
  48. <span class="help-block" ng-show="alipartnerhelp">
  49. 支付宝签约用户请在此处填写支付宝分配给您的合作者身份,签约用户的手续费按照您与支付宝官方的签约协议为准。
  50. <br>如果您还未签约,
  51. <a href="https://memberprod.alipay.com/account/reg/enterpriseIndex.htm" target="_blank" class="color-default">请点击这里签约</a>;
  52. 如果已签约,
  53. <a href="https://b.alipay.com/order/pidKey.htm?pid=2088501719138773&amp;product=fastpay" target="_blank" class="color-default">请点击这里获取PID、Key</a>;
  54. 如果在签约时出现合同模板冲突,请咨询0571-88158090
  55. </span>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-sm-2">校验密钥</label>
  60. <div class="col-sm-8">
  61. <div class="input-group">
  62. <input type="text" class="form-control" name="secret" ng-model="alipay.secret">
  63. <span class="input-group-addon" ng-click="alisecrethelp = !alisecrethelp"><i class="wi wi-warning-sign" style="font-size:18px;"></i></span>
  64. </div>
  65. <span class="help-block" ng-show="alisecrethelp">支付宝签约用户可以在此处填写支付宝分配给您的交易安全校验码,此校验码您可以到支付宝官方的商家服务功能处查看 </span>
  66. </div>
  67. </div>
  68. {/if}
  69. {if $operate == 'wechat'}
  70. <div class="form-group">
  71. <label class="control-label col-sm-2">开关</label>
  72. <div class="col-sm-8">
  73. <input id='radio-3' type="radio" name='switch' {if $wechat['switch'] == 1}checked{/if} value="1"/>
  74. <label for="radio-3">开启 </label>
  75. <input id='radio-4' type="radio" name='switch' {if $wechat['switch'] != 1}checked{/if} value="2"/>
  76. <label for="radio-4">关闭 </label>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label class="control-label col-sm-2">appid</label>
  81. <div class="col-sm-8">
  82. <input type="text" class="form-control" name="appid" value="{$wechat['appid']}">
  83. </div>
  84. </div>
  85. <div class="form-group">
  86. <label class="control-label col-sm-2">微信支付商户号</label>
  87. <div class="col-sm-8">
  88. <input type="text" class="form-control" name="mchid" value="{$wechat['mchid']}">
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label class="control-label col-sm-2">微信支付秘钥</label>
  93. <div class="col-sm-8">
  94. <input type="text" class="form-control" name="signkey" value="{$wechat['signkey']}">
  95. </div>
  96. </div>
  97. {/if}
  98. <div class="form-group">
  99. <label class="control-label col-sm-2"></label>
  100. <div class="col-sm-8">
  101. <input type="hidden" name="token" value="{$_W['token']}">
  102. <input type="hidden" name="operate" value="{$_GPC['operate']}">
  103. <input type="submit" name="submit" value="保 存" class="btn btn-primary">
  104. </div>
  105. </div>
  106. </form>
  107. <script>
  108. angular.module('storeApp').value('config', {
  109. 'alipay': {php echo !empty($alipay) ? json_encode($alipay) : 'null'},
  110. });
  111. angular.bootstrap($('#js-pay-setting'), ['storeApp']);
  112. </script>
  113. {template 'common/footer'}