{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation view-save" action="{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'save')}}" method="POST" request-type="ajax-url" request-value="{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'index')}}" enctype="multipart/form-data">
            <legend>
                <span class="fs-16">右侧快捷导航</span>
                <a href="{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
            </legend>

            <div class="am-form-group am-form-file">
                <label class="block">支付宝小程序二维码<span class="fs-12 fw-100 cr-999">（建议100像数X100像数）</span></label>
                <ul class="plug-file-upload-view plugins-alipay_mini_qrcode_images-view" data-form-name="alipay_mini_qrcode_images" data-max-number="1" data-dialog-type="images">
                    {{if !empty($data['alipay_mini_qrcode_images'])}}
                        <li>
                            <input type="text" name="alipay_mini_qrcode_images" value="{{$data.alipay_mini_qrcode_images_old}}" data-validation-message="请上传支付宝小程序二维码" />
                            <img src="{{$data.alipay_mini_qrcode_images}}" />
                            <i>×</i>
                        </li>
                    {{/if}}
                </ul>
                <div class="plug-file-upload-submit" data-view-tag="ul.plugins-alipay_mini_qrcode_images-view">+上传图片</div>
            </div>

            <div class="am-form-group am-form-file">
                <label class="block">支付宝生活号二维码<span class="fs-12 fw-100 cr-999">（建议100像数X100像数）</span></label>
                <ul class="plug-file-upload-view plugins-alipay_fuwu_qrcode_images-view" data-form-name="alipay_fuwu_qrcode_images" data-max-number="1" data-dialog-type="images">
                    {{if !empty($data['alipay_fuwu_qrcode_images'])}}
                        <li>
                            <input type="text" name="alipay_fuwu_qrcode_images" value="{{$data.alipay_fuwu_qrcode_images_old}}" data-validation-message="请上传支付宝生活号二维码" />
                            <img src="{{$data.alipay_fuwu_qrcode_images}}" />
                            <i>×</i>
                        </li>
                    {{/if}}
                </ul>
                <div class="plug-file-upload-submit" data-view-tag="ul.plugins-alipay_fuwu_qrcode_images-view">+上传图片</div>
            </div>

            <div class="am-form-group am-form-file">
                <label class="block">微信小程序二维码<span class="fs-12 fw-100 cr-999">（建议100像数X100像数）</span></label>
                <ul class="plug-file-upload-view plugins-weixin_mini_qrcode_images-view" data-form-name="weixin_mini_qrcode_images" data-max-number="1" data-dialog-type="images">
                    {{if !empty($data['weixin_mini_qrcode_images'])}}
                        <li>
                            <input type="text" name="weixin_mini_qrcode_images" value="{{$data.weixin_mini_qrcode_images_old}}" data-validation-message="请上传微信小程序二维码" />
                            <img src="{{$data.weixin_mini_qrcode_images}}" />
                            <i>×</i>
                        </li>
                    {{/if}}
                </ul>
                <div class="plug-file-upload-submit" data-view-tag="ul.plugins-weixin_mini_qrcode_images-view">+上传图片</div>
            </div>

            <div class="am-form-group am-form-file">
                <label class="block">微信公众号二维码<span class="fs-12 fw-100 cr-999">（建议100像数X100像数）</span></label>
                <ul class="plug-file-upload-view plugins-weixin_fuwu_qrcode_images-view" data-form-name="weixin_fuwu_qrcode_images" data-max-number="1" data-dialog-type="images">
                    {{if !empty($data['weixin_fuwu_qrcode_images'])}}
                        <li>
                            <input type="text" name="weixin_fuwu_qrcode_images" value="{{$data.weixin_fuwu_qrcode_images_old}}" data-validation-message="请上传微信公众号二维码" />
                            <img src="{{$data.weixin_fuwu_qrcode_images}}" />
                            <i>×</i>
                        </li>
                    {{/if}}
                </ul>
                <div class="plug-file-upload-submit" data-view-tag="ul.plugins-weixin_fuwu_qrcode_images-view">+上传图片</div>
            </div>

            <div class="am-form-group">
                <label>链接是否新窗口打开</label>
                <div>
                    {{foreach $is_whether_list as $v}}
                        <label class="am-radio-inline m-r-10">
                            <input type="radio" name="is_new_window_open" value="{{$v.id}}" {{if isset($data['is_new_window_open']) and $data['is_new_window_open'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_new_window_open']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
                        </label>
                    {{/foreach}}
                </div>
            </div>

            <div class="am-form-group">
                <label>是否全局<span class="fs-12 fw-100 cr-999">（否则只在首页显示，是则全局展示）</span></label>
                <div>
                    {{foreach $is_whether_list as $v}}
                        <label class="am-radio-inline m-r-10">
                            <input type="radio" name="is_overall" value="{{$v.id}}" {{if isset($data['is_overall']) and $data['is_overall'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_overall']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
                        </label>
                    {{/foreach}}
                </div>
            </div>

            <div class="am-form-group">
                <label>商品详情页面展示购物车入口</label>
                <div>
                    {{foreach $is_whether_list as $v}}
                        <label class="am-radio-inline m-r-10">
                            <input type="radio" name="is_goods_page_show_cart" value="{{$v.id}}" {{if isset($data['is_goods_page_show_cart']) and $data['is_goods_page_show_cart'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_goods_page_show_cart']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
                        </label>
                    {{/foreach}}
                </div>
            </div>

            <div class="am-form-group">
                <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->