#@layout()

#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
             订单设置
            <small>Order Setting</small>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header ">
                        <h3 class="box-title"></h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal form-setting" autocomplete="off"
                          id="optionForm">
                        <div class="box-body ">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站域名</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="填写网站的域名" name="web_domain" value="">
                                    <p class="help-block"> 请填写http（或https）开头，结尾不要包含“/”。例如：http://www.jpress.io ，
                                        <span style="color: red">要开启支付功能，必须正确填写此项内容。</span> </p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">开启提现功能</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="payout_enable"
                                           #checkedIf(option("payout_enable"))>
                                    <input type="hidden" id="payout_enable" name="payout_enable">
                                    <p class="help-block"> 当不开启提现功能时，用户分销所赚取的佣金只能在本站进行消费。 </p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">提现手续费</label>
                                <div class="col-sm-6">
                                    <input type="input" class="form-control" placeholder="不填写默认手续费为：0" name="payout_fee" value="">
                                </div>
                            </div>


                            <h4 class="page-header">物流设置</h4>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">物流信息API</label>
                                <div class="col-sm-6">
                                    <select class="form-control" name="express_api_type">
                                        <option value="kuaidi100">
                                            快递100（kuaidi100.com）
                                        </option>
                                        <option value="juhecn">
                                           聚合数据（juhe.cn）
                                        </option>
                                        <option value="kdniao">
                                            快递鸟（kdniao.com）
                                        </option>
                                        <option value="showapi">
                                            易源接口（showapi.com）
                                        </option>
                                    </select>
                                    <p class="help-block">如果只销售虚拟产品，无需对此项配置。 </p>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">AppId（或 AppKey）</label>
                                <div class="col-sm-6">
                                    <input type="input" name="express_api_appid" class="form-control" value="#option('express_api_appid')" placeholder="">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">AppSecret</label>
                                <div class="col-sm-6">
                                    <input type="input" name="express_api_appsecret" class="form-control" value="#option('express_api_appsecret')"
                                           placeholder="">
                                </div>
                            </div>


                            <h4 class="page-header">对私收款</h4>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">个人微信收款</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="wechatx_pay_enable"
                                           #checkedIf(option("wechatx_pay_enable"))>
                                    <input type="hidden" id="wechatx_pay_enable" name="wechatx_pay_enable">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">微信收款二维码</label>
                                <div class="col-sm-6">
                                    <button type="button"
                                            for-src="wechatx_pay_qrcode_img"
                                            for-input="wechatx_pay_qrcode_input"
                                            class="jp-image-browser btn btn-flat btn-default btn-xs">
                                        <i class="fa fa-fw fa-image"></i> 选择图片
                                    </button>
                                    <br/>
                                    <img src="#(CPATH)#option('attachment_watermark_img','/static/commons/img/avatar.png')" id="wechatx_pay_qrcode_img">
                                    <input type="hidden" id="wechatx_pay_qrcode_input" name="wechatx_pay_qrcode" value="#option('wechatx_pay_qrcode')">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">付款说明</label>
                                <div class="col-sm-6">
                                    <textarea rows="3" class="form-control" placeholder="例如：付款成功后，请截图并联系微信号：wx198819880 进行入账" name="wechatx_pay_message">#option("wechatx_pay_message")</textarea>
                                    <p class="help-block"> 这部分的内容会显示在用户的付款页面里 。
                                    </p>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">个人支付收款</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="alipayx_pay_enable" #checkedIf(option("alipayx_pay_enable"))>
                                    <input type="hidden" id="alipayx_pay_enable" name="alipayx_pay_enable">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">支付宝收款二维码</label>
                                <div class="col-sm-6">
                                    <button type="button"
                                            for-src="alipayx_pay_qrcode_img"
                                            for-input="alipayx_pay_qrcode_input"
                                            class="jp-image-browser btn btn-flat btn-default btn-xs">
                                        <i class="fa fa-fw fa-image"></i> 选择图片
                                    </button>
                                    <br/>
                                    <img src="#(CPATH)#option('attachment_watermark_img','/static/commons/img/avatar.png')" id="alipayx_pay_qrcode_img">
                                    <input type="hidden" id="alipayx_pay_qrcode_input" name="alipayx_pay_qrcode" value="#option('alipayx_pay_qrcode')">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">付款说明</label>
                                <div class="col-sm-6">
                                    <textarea rows="3" class="form-control" placeholder="例如：付款成功后，请截图并联系微信号：wx198819880 进行入账" name="alipayx_pay_message">#option("alipayx_pay_message")</textarea>
                                    <p class="help-block"> 这部分的内容会显示在用户的付款页面里 。
                                    </p>
                                </div>
                            </div>


                            <h4 class="page-header">微信对公收款</h4>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">开启</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="wechat_pay_enable"
                                           #checkedIf(option("wechat_pay_enable"))>
                                    <input type="hidden" id="wechat_pay_enable" name="wechat_pay_enable">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户号</label>
                                <div class="col-sm-6">
                                    <input type="input" name="wechat_pay_mchId" class="form-control" value="#option('wechat_pay_mchId')"
                                           placeholder="">
                                    <p class="help-block">微信的对公收款要求必须有已经认证的服务号，同时服务号必须已经认证并开通微信支付功能。
                                        更多请参考 <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> 。</p>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">应用ID</label>
                                <div class="col-sm-6">
                                    <input type="input" name="wechat_pay_appid" class="form-control" value="#option('wechat_pay_appid')"
                                           placeholder="">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">公钥</label>
                                <div class="col-sm-6">
                                    <input type="input" name="wechat_pay_publicKey" class="form-control" value="#option('wechat_pay_publicKey')"
                                           placeholder="">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">密钥</label>
                                <div class="col-sm-6">
                                    <input type="input" name="wechat_pay_secretKey" class="form-control" value="#option('wechat_pay_secretKey')"
                                           placeholder="">
                                </div>
                            </div>


                            <h4 class="page-header">支付宝对公收款</h4>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">开启</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="alipay_pay_enable"
                                           #checkedIf(option("alipay_pay_enable"))>
                                    <input type="hidden" id="alipay_pay_enable" name="alipay_pay_enable">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">合作者ID</label>
                                <div class="col-sm-6">
                                    <input type="input" name="alipay_pay_pid" class="form-control" value="#option('alipay_pay_pid')"
                                           placeholder="">
                                    <p class="help-block">支付宝的合作者ID 和 应用ID 等信息请去 <a href="https://open.alipay.com" target="_blank" >https://open.alipay.com</a> 申请。 </p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">应用ID</label>
                                <div class="col-sm-6">
                                    <input type="input" name="alipay_pay_appid" class="form-control" value="#option('alipay_pay_appid')"
                                           placeholder="">
                                </div>
                            </div>



                            <div class="form-group">
                                <label class="col-sm-2 control-label">支付宝公钥</label>
                                <div class="col-sm-6">
                                    <input type="input" name="alipay_pay_publicKey" class="form-control" value="#option('alipay_pay_publicKey')"
                                           placeholder="">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">应用私钥</label>
                                <div class="col-sm-6">
                                    <input type="input" name="alipay_pay_privateKey" class="form-control" value="#option('alipay_pay_privateKey')"
                                           placeholder="">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">收款账号</label>
                                <div class="col-sm-6">
                                    <input type="input" name="alipay_pay_seller" class="form-control" value="#option('alipay_pay_seller')"
                                           placeholder="">
                                    <p class="help-block">请填写收款的公司支付宝账号。 </p>
                                </div>
                            </div>


                            <h4 class="page-header">PayPal对公收款</h4>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">开启</label>
                                <div class="col-sm-6">
                                    <input type="checkbox" class="switchery"  data-for="paypal_pay_enable"
                                           #checkedIf(option("paypal_pay_enable"))>
                                    <input type="hidden" id="paypal_pay_enable" name="paypal_pay_enable">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户号</label>
                                <div class="col-sm-6">
                                    <input type="input" name="paypal_pay_clientid" class="form-control" value="#option('paypal_pay_clientid')"
                                           placeholder="">
                                    <p class="help-block">Paypal 的商户号及密钥等请去 <a href="https://developer.paypal.com/" target="_blank">https://developer.paypal.com/</a> 申请。 </p>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户密钥</label>
                                <div class="col-sm-6">
                                    <input type="input" name="paypal_pay_clientsecret" class="form-control" value="#option('paypal_pay_clientsecret')"
                                           placeholder="">
                                </div>
                            </div>




                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <div class="col-sm-offset-2 col-sm-10 submit-block">
                                <div class="box-submit">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>

    </section>

</div>
#end
