123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 |
- <?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));?>
- <div class="we7-page-title">
- 支付参数设置
- </div>
- <?php if($do == 'display') { ?>
- <ul class="we7-page-tab">
- <?php if(is_array($active_sub_permission)) { foreach($active_sub_permission as $active_menu) { ?>
- <?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']))) { ?>
- <li <?php if($action == $active_menu['active']) { ?>class="active"<?php } ?>><a href="<?php echo $active_menu['url'];?>"><?php echo $active_menu['title'];?></a></li>
- <?php } ?>
- <?php } } ?>
- </ul>
- <div class="js-profile-payment" ng-controller="paymentCtrl" ng-cloak>
- <table class="table we7-table table-hover table-form">
- <col width="140px " />
- <col width="400px"/>
- <col />
- <col width="140px" />
- <tr>
- <th colspan="2" >支付参数</th>
- <th colspan="1" >参数配置状态</th>
- <th colspan="1" >支持状态</th>
- <th colspan="1" >操作</th>
- </tr>
- <tr>
- <td colspan="2">
- 货到支付
- </td>
- <td>无需配置</td>
- <td>
- {{ paysetting.delivery.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="<?php echo url('profile/payment/switch', array('type' => 'delivery'))?>">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- 余额支付
- </td>
- <td>无需配置</td>
- <td>
- {{ paysetting.credit.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="<?php echo url('profile/payment/switch', array('type' => 'credit'))?>">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="1">
- 混合支付
- </td>
- <td>
- <span class="related-info">
- 余额不足时,可用剩余余额付部分,用其它支付付剩余部分
- </span>
- </td>
- <td>无需配置</td>
- <td>
- {{ paysetting.mix.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="<?php echo url('profile/payment/switch', array('type' => 'mix'))?>">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- 支付宝支付
- </td>
- <td>
- <div class="related-info">
- 开启支付宝支付
- </div>
- </td>
- <td>
- {{ paysetting.alipay.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.alipay.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#zhifubao">
- {{ paysetting.alipay.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'alipay'))?>" ng-if="paysetting.alipay.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- 微信支付
- </td>
- <td>
- <div class="related-info">
- <div>接口类型:新版(2014年9月之后申请的)</div>
- <div>支付账号:<?php echo $_W['uniaccount']['name'];?></div>
- </div>
- </td>
- <td >
- {{ paysetting.wechat.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.wechat.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" ng-click="check_wechat()">
- {{ paysetting.wechat.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'wechat'))?>" ng-if="paysetting.wechat.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
-
- <tr>
- <td>
- 服务商支付
- </td>
- <td>
- <div class="related-info">
- </div>
- </td>
- <td>
- {{ paysetting.wechat_facilitator.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>无需设置</td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" class="color-default" data-toggle="modal" data-target="#wechat_fa">
- {{ paysetting.wechat_facilitator.has_config === true ? '修改配置' : '去配置' }}
- </a>
- </div>
- </td>
- </tr>
-
- <tr>
- <td>
- 一码支付
- </td>
- <td>
- <div class="related-info">
- </div>
- </td>
- <td >
- {{ paysetting.jueqiymf.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.jueqiymf.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#jueqiymf">
- {{ paysetting.jueqiymf.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'jueqiymf'))?>" ng-if="paysetting.jueqiymf.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- 银联支付
- </td>
- <td>
- <div class="related-info">
- </div>
- </td>
- <td >
- {{ paysetting.unionpay.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.unionpay.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#yinlian">
- {{ paysetting.unionpay.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'unionpay'))?>" ng-if="paysetting.unionpay.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td >
- 百度钱包支付
- </td>
- <td>
- <div class="related-info"></div>
- </td>
- <td >
- {{ paysetting.baifubao.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.baifubao.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#baidu">
- {{ paysetting.baifubao.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'baifubao'))?>" ng-if="paysetting.baifubao.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
- <tr>
- <td >
- 汇款支付
- </td>
- <td>
- <div class="related-info"></div>
- </td>
- <td>
- {{ paysetting.line.has_config === true ? '已配置' : '未配置' }}
- </td>
- <td>
- {{ paysetting.line.support_set === true ? '未设置' : '已设置' }}
- </td>
- <td class="text-center">
- <div class="link-group">
- <a href="javascript:;" data-toggle="modal" data-target="#huikuan">
- {{ paysetting.line.has_config === true ? '修改配置' : '去配置' }}
- </a>
- <a href="<?php echo url('profile/payment/switch', array('type' => 'line'))?>" ng-if="paysetting.line.has_config === true">支付支持</a>
- </div>
- </td>
- </tr>
- </table>
-
- <!--支付宝修改-->
- <div class="modal fade" id="zhifubao" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">支付宝支付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">支付宝无线支付</label>
- <div class="form-controls col-sm-10">
- <div class="alert alert-warning">
- 您的支付宝账号必须支持手机网页即时到账接口, 才能使用手机支付功能,
- <a href="https://b.alipay.com/order/productDetail.htm?productId=2013080604609688" target="_blank" class="color-default">申请及详情请查看这里</a>.
- </div>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">收款支付宝账号</label>
- <div class="form-controls col-sm-10">
- <div class="input-group">
- <input type="text" name="" class="form-control" placeholder="" ng-model="paysetting.alipay.account">
- <a herf="#" ng-click="aliaccounthelp = !aliaccounthelp" class="input-group-addon"><i class="fa fa-exclamation-circle"></i></a>
- </div>
- <span class="help-block" ng-show="aliaccounthelp">
- 如果开启兑换或交易功能,请填写真实有效的支付宝账号,用于收取用户以现金兑换交易积分的相关款项。如账号无效或安全码有误,将导致用户支付后无法正确对其积分账户自动充值,或进行正常的交易对其积分账户自动充值,或进行正常的交易。 如您没有支付宝帐号,
- <a href="https://memberprod.alipay.com/account/reg/enterpriseIndex.htm" target="_blank">请点击这里注册</a>
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">合作者身份</label>
- <div class="form-controls col-sm-10">
- <div class="input-group">
- <input type="text" name="" class="form-control" placeholder="" ng-model="paysetting.alipay.partner">
- <a herf="#" ng-click="alipartnerhelp = !alipartnerhelp" class="input-group-addon"><i class="fa fa-exclamation-circle"></i></a>
- </div>
- <span class="help-block" ng-show="alipartnerhelp">
- 支付宝签约用户请在此处填写支付宝分配给您的合作者身份,签约用户的手续费按照您与支付宝官方的签约协议为准。
- <br>如果您还未签约,
- <a href="https://memberprod.alipay.com/account/reg/enterpriseIndex.htm" target="_blank">
- 请点击这里签约
- </a>;
- 如果已签约,
- <a href="https://b.alipay.com/order/pidKey.htm?pid=2088501719138773&product=fastpay" target="_blank">
- 请点击这里获取PID、Key
- </a>;
- 如果在签约时出现合同模板冲突,请咨询0571-88158090
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">校验密钥</label>
- <div class="form-controls col-sm-10">
- <div class="input-group">
- <input type="text" name="" class="form-control" placeholder="" ng-model="paysetting.alipay.secret">
- <a herf="#" ng-click="alisecrethelp = !alisecrethelp" class="input-group-addon"><i class="fa fa-exclamation-circle"></i></a>
- </div>
- <span class="help-block" ng-show="alisecrethelp">支付宝签约用户可以在此处填写支付宝分配给您的交易安全校验码,此校验码您可以到支付宝官方的商家服务功能处查看 </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">模拟测试</label>
- <div class="form-controls col-sm-10">
- <a href="javascript:;" class="form-control-static color-default" ng-click="test_alipay()">模拟测试</a>
- <span class="help-block">本测试将模拟提交 0.01 元人民币的订单进行测试,如果提交后成功出现付款界面,说明您站点的支付宝功能可以正常使用</span>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveEdit('alipay')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 微信修改 -->
- <div class="modal fade" id="weixin" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">微信支付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">微信支付</label>
- <div class="form-controls col-sm-10">
- <div class="alert alert-warning">
- 你必须向微信公众平台提交企业信息以及银行账户资料,审核通过并签约后才能使用微信支付功能,
- <a href="https://pay.weixin.qq.com/guide/webbased_payment.shtml" class="color-default" target="_blank">申请及详情请查看这里</a>
- </div>
- <div class="alert alert-warning">
- <p>微信支付的接口说明如下:</p>
- <br>
- <h4>JS API网页支付参数</h4>
- <p>支付授权目录: <?php echo $_W['siteroot'];?>payment/wechat/ 和 <?php echo $_W['siteroot'];?>app/</p>
- <p>支付请求实例: <?php echo $_W['siteroot'];?>payment/wechat/pay.php</p>
- <p>共享收货地址: 选择"是"</p>
- <br>
- <h4>Native原生支付</h4>
- <p>支付回调URL: <?php echo $_W['siteroot'];?>payment/wechat/native.php</p>
- <p>维权通知URL: <?php echo $_W['siteroot'];?>payment/wechat/rights.php</p>
- <p>警告通知URL: <?php echo $_W['siteroot'];?>payment/wechat/warning.php</p>
- </div>
- <?php if($accounts[$_W['acid']]['level'] > ACCOUNT_SERVICE) { ?>
- <?php if($accounts[$_W['acid']]['level'] == ACCOUNT_SERVICE_VERIFY) { ?>
- <input id='radio-11' type="radio" name='wechat[switch]' ng-checked='paysetting.wechat.switch == 1' ng-click="changeSwitch('wechat', 1)" value="1"/>
- <label for="radio-11">微信支付 </label>
- <?php } ?>
- <?php if(!empty($proxy_wechatpay_account['borrow'])) { ?>
- <input id='radio-12' type="radio" name='wechat[switch]' ng-checked='paysetting.wechat.switch == 2' ng-click="changeSwitch('wechat', 2)" value="2"/>
- <label for="radio-12">借用支付 </label>
- <?php } ?>
-
- <?php if(!empty($proxy_wechatpay_account['service'])) { ?>
- <input id='radio-13' type="radio" name='wechat[switch]' ng-checked='paysetting.wechat.switch == 3' ng-click="changeSwitch('wechat', 3)" value="3"/>
- <label for="radio-13">服务商支付 </label>
- <?php } ?>
-
- <?php } ?>
- <!-- <input id='radio-24' type="radio" name='wechat[switch]' ng-checked='paysetting.wechat.switch == 4 || paysetting.wechat.switch === false' ng-click="changeSwitch('wechat', 4)" value="4" checked=""/>
- <label for="radio-24">关闭 </label> -->
- </div>
- </div>
- <?php if($accounts[$_W['acid']]['level'] > ACCOUNT_SERVICE) { ?>
- <?php if($accounts[$_W['acid']]['level'] == ACCOUNT_SERVICE_VERIFY) { ?>
- <div ng-show="paysetting.wechat.switch == 1">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">接口类型</label>
- <div class="form-controls col-sm-10">
- <input id='radio-15' type="radio" name='paysetting[wechat][version]' ng-checked='paysetting.wechat.version == 1' value="1" ng-click="changeVersion(1)"/>
- <label for="radio-15">旧版 </label>
- <input id='radio-25' type="radio" name='paysetting[wechat][version]' ng-checked='paysetting.wechat.version == 2' value="2" ng-click="changeVersion(2)"/>
- <label for="radio-25">新版(2014年9月之后申请的) </label>
- <span class="help-block">由于微信支付接口调整,需要根据申请时间来区分支付接口</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">支付账号</label>
- <div class="form-controls col-sm-10">
- <a href="" class="form-control-static color-default"><?php echo $_W['account']['name'];?></a>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">身份标识<br>(appId)</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" disabled class="form-control" value="<?php echo $_W['account']['key'];?>" placeholder="">
- <span class="help-block">
- 公众号身份标识
- <a href="./index.php?c=account&a=post&uniacid=2">
- 请通过修改公众号信息来保存
- </a>
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">身份密钥<br>(appSecret)</label>
- <div class="form-controls col-sm-10">
- <input type="text" disabled value="<?php echo $_W['account']['secret'];?>" name="" class="form-control" placeholder="">
- <span class="help-block">公众平台API(参考文档API 接口部分)的权限获取所需密钥Key
- <a href="./index.php?c=account&a=post&uniacid=2">
- 请通过修改公众号信息来保存
- </a>
- </span>
- </div>
- </div>
- <div ng-show="paysetting.wechat.version == 1">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户身份</label>
- <div class="form-controls col-sm-10">
- <input type="text" class="form-control" ng-model="paysetting.wechat.partner" placeholder="">
- <span class="help-block">
- 财付通商户身份标识
- <br>
- 公众号支付请求中用于加密的密钥Key
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户密钥</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.wechat.key" class="form-control" placeholder="">
- <span class="help-block">
- 财付通商户权限密钥
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">通信秘钥</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.wechat.signkey" class="form-control" placeholder="">
- <span class="help-block">
- 财付通商户权限密钥
- </span>
- </div>
- </div>
- </div>
- <div ng-show="paysetting.wechat.version == 2">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">微信支付商户号</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.wechat.mchid" class="form-control" placeholder="">
- <span class="help-block">
- 财付通商户权限密钥
- </span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">微信支付秘钥</label>
- <div class="form-controls col-sm-10">
- <div class="input-group">
- <input type="text" name="" ng-model="paysetting.wechat.apikey" class="form-control" placeholder="">
- <a href="javascript:;" class="input-group-addon" ng-click="tokenGen('wechat.apikey')">生成新的秘钥</a>
- </div>
- <span class="help-block">
- 财付通商户权限密钥
- </span>
- </div>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php if(!empty($proxy_wechatpay_account['borrow'])) { ?>
- <div ng-show="paysetting.wechat.switch == 2">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">借用公众号</label>
- <div class="form-controls col-sm-10">
- <select name="borrow" class="we7-select" ng-model="paysetting.wechat.borrow">
- <option value="" ng-selected="paysetting.wechat.borrow == 0 || paysetting.wechat.borrow == '' || paysetting.wechat.borrow == undefined">请选择要借用的公众号</option>
- <option value="{{key}}" ng-selected="paysetting.wechat.borrow == key" ng-repeat="(key, account) in config.borrows track by key">{{ account }}</option>
- </select>
- <span class="help-block">借用认证服务号支付权限完成支付。</span>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <?php if(!empty($proxy_wechatpay_account['service'])) { ?>
- <div ng-show="paysetting.wechat.switch == 3">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">服务商公众号</label>
- <div class="form-controls col-sm-10">
- <select name="service" class="we7-select" ng-model="paysetting.wechat.service">
- <option value="">请选择服务商公众号</option>
- <option value="{{key}}" ng-selected="paysetting.wechat.service == key" ng-repeat="(key, account) in config.services track by key">{{ account }}</option>
- </select>
- <span class="help-block">借用认证服务号支付权限完成支付。</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">子商户号</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.wechat.sub_mch_id" class="form-control" placeholder="">
- <span class="help-block">
- 子商户的商户号
- </span>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <?php } ?>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click='saveEdit("wechat")'>确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="modal fade" id="wechat_fa" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">服务商支付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">服务商支付</label>
- <div class="form-controls col-sm-10">
- <input id='radio-111' type="radio" name='wechat_facilitator' value="true" ng-checked="paysetting.wechat_facilitator.switch === true" ng-click="changeSwitch('wechat_facilitator', true)"/>
- <label for="radio-111">开启 </label>
- <input id='radio-222' type="radio" name='wechat_facilitator' value="false" ng-checked="paysetting.wechat_facilitator.switch === false" ng-click="changeSwitch('wechat_facilitator', false)"/>
- <label for="radio-222">关闭 </label>
- <span class="help-block">设置为服务商,其他商户可以授权给服务商,让服务商完成支付。</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">服务商商户号</label>
- <div class="form-controls col-sm-10">
- <input name="" ng-model="paysetting.wechat_facilitator.mchid" class="form-control" placeholder="" >
- <span class="help-block">需要填写申请为服务商的商户号。注:服务商的商户号与微信支付的商户号不是同一个号。</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户支付密钥</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.wechat_facilitator.signkey" class="form-control" placeholder="">
- <span class="help-block">此商户秘钥为服务商商户号对应的支付秘钥,与微信支付的支付秘钥不相同。</span>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveEdit('wechat_facilitator')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
-
- <!--银联支付-->
- <div class="modal fade" id="yinlian" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <form action="<?php echo url('profile/payment/save_setting', array('type' => 'unionpay'))?>" enctype="multipart/form-data" method="post" id="form1" >
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">银联支付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户私钥证书(签名)</label>
- <div class="form-controls col-sm-10">
- <input type="file" name="unionpay[signcertpath]" id="amend" <?php if($pay_setting['unionpay']['signcertexists'] !== false) { ?>style="display:none;"<?php } ?> class="form-control" placeholder="">
- <span <?php if($pay_setting['unionpay']['signcertexists'] === false) { ?>style="display:none;"<?php } ?>>证书已上传<input type="button" class="btn btn-success" onclick="amend.click()" value="修改"></span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户号</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="unionpay[merid]" value="<?php echo $pay_setting['unionpay']['merid'];?>" class="form-control" placeholder="">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户私钥证书密码</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="unionpay[signcertpwd]" value="<?php echo $pay_setting['unionpay']['signcertpwd'];?>" class="form-control" placeholder="">
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="submit" class="btn btn-primary">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
-
-
- <div class="modal fade" id="jueqiymf" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">一码付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">一码付后台地址</label>
- <div class="form-controls col-sm-10">
- <input type="text"ng-model="paysetting.jueqiymf.url" name="" class="form-control" placeholder="">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户号</label>
- <div class="form-controls col-sm-10">
- <input type="text"ng-model="paysetting.jueqiymf.mchid" name="" class="form-control" placeholder="">
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveEdit('jueqiymf')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
- <!--百度钱包-->
- <div class="modal fade" id="baidu" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">百度钱包</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户号</label>
- <div class="form-controls col-sm-10">
- <input type="text"ng-model="paysetting.baifubao.mchid" name="" class="form-control" placeholder="">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">商户支付密钥</label>
- <div class="form-controls col-sm-10">
- <input type="text" name="" ng-model="paysetting.baifubao.signkey" class="form-control" placeholder="">
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveEdit('baifubao')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <!--汇款-->
- <div class="modal fade" id="huikuan" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="we7-modal-dialog modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">汇款支付</div>
- </div>
- <div class="modal-body">
- <div class="we7-form">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">账户信息</label>
- <div class="form-controls col-sm-10">
- <input type="text" id="" name="" ng-model="paysetting.line.message" class="form-control" placeholder="">
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="saveEdit('line')">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <?php if($do == 'switch') { ?>
- <ol class="breadcrumb we7-breadcrumb">
- <a href="<?php echo url('profile/payment');?>"><i class="wi wi-back-circle"></i> </a>
- <li>
- <a href="<?php echo url('profile/payment');?>">支付配置</a>
- </li>
- <li>
- <a href="javascript:;">支付支持</a></li>
- </li>
- </ol>
-
- <div class="js-profile-payment" ng-controller="paymentCtrl" ng-cloak>
- <table class="table we7-table table-hover table-form">
- <col width="140px " />
- <col width="400px"/>
- <col />
- <col width="140px" />
- <tr>
- <th colspan="5" >支付方式设置(<?php echo $payment_types[$_GPC['type']];?>)</th>
- <th colspan="1" >操作</th>
- </tr>
- <tr>
- <td colspan="2">
- 充值
- </td>
- <td colspan="2">
- <label>
- <input name="" class="form-control" type="checkbox" style="display: none;" ng-click="switchStatus(config.paytype, 'recharge_switch')" ng-if="paysetting[config.paytype].recharge_set === true">
- <input name="" class="form-control" type="checkbox" style="display: none;" ng-else>
- <div ng-class="paysetting[config.paytype].recharge_switch === true || paysetting[config.paytype].recharge_switch === 'true' ? 'switch switchOn' : 'switch'"></div>
- </label>
- </td>
- <td colspan="2" ng-if="paysetting[config.paytype].recharge_set !== true">不可启用</td>
- <td colspan="2" ng-if="paysetting[config.paytype].recharge_set === true"></td>
- </tr>
- <tr>
- <td colspan="2">
- 支付
- </td>
- <td colspan="2">
- <label>
- <input name="" class="form-control" type="checkbox" style="display: none;" ng-click="switchStatus(config.paytype, 'pay_switch')">
- <div ng-class="paysetting[config.paytype].pay_switch === true || paysetting[config.paytype].pay_switch === 'true' ? 'switch switchOn' : 'switch'"></div>
- </label>
- </td>
- <td colspan="2"></td>
- </tr>
- </table>
- </div>
- <?php } ?>
- <script>
- angular.module('profileApp').value('config', {
- 'paysetting' : <?php echo json_encode($pay_setting)?>,
- 'paytype' : "<?php echo $_GPC['type'];?>",
- 'saveurl' : "<?php echo url('profile/payment/save_setting')?>",
- 'text_alipay_url' : "<?php echo url('profile/payment/test_alipay')?>",
- 'borrows' : <?php echo json_encode($proxy_wechatpay_account['borrow'])?>,
- 'change_status': "<?php echo url('profile/payment/change_status')?>",
- 'services' : <?php echo json_encode($proxy_wechatpay_account['service'])?>,
- 'get_setting_url' : "<?php echo url('profile/payment/get_setting')?>",
- 'account_level' : "<?php echo $accounts[$_W['acid']]['level'];?>"
- });
- angular.bootstrap($('.js-profile-payment'), ['profileApp']);
- </script>
- <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
|