qrcode.html 3.8 KB
Newer Older
B
baiy 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<div class="layui-tab layui-tab-brief" lay-filter="url">
    <ul class="layui-tab-title">
        <li class="{{ d.getPageData('tab','class_tab0') }}">二维码生成</li>
        <li class="{{ d.getPageData('tab','class_tab1') }}">二维码解析</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item {{ d.getPageData('tab','class_div0') }} generate_tab layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea input_content" style="height: 220px;">{{ d.getPageData('generate','input_content') }}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <button class="layui-btn submit_button">生成</button>
17 18 19 20 21 22
                        {{#  if(d.getPageData('generate','is_short_url')){ }}
                        <input type="checkbox" checked="checked" lay-filter="short_url" class="short_url" title="转短链接" lay-skin="primary">
                        {{#  } else { }}
                        <input type="checkbox" lay-filter="short_url" class="short_url" title="转短链接" lay-skin="primary">
                        {{#  } }}

B
baiy 已提交
23
                    </div>
24 25 26 27 28 29 30 31 32 33
                    {{#  if(d.getPageData('generate','is_short_url')){ }}
                    <blockquote class="layui-elem-quote short_url_text">
                        短链接API由 <a href="http://t.cn/" target="_blank">t.cn</a> 提供
                    </blockquote>
                    {{#  } else { }}
                    <blockquote class="layui-elem-quote short_url_text" style="display: none">
                        短链接API由 <a href="http://t.cn/" target="_blank">t.cn</a> 提供
                    </blockquote>
                    {{#  } }}

B
baiy 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item output_content" style="padding-left: 40px">
                        {{ d.getPageData('generate','output_content') }}
                    </div>
                </div>
        </div>
        <div class="layui-tab-item {{ d.getPageData('tab','class_div1') }} decoder_tab layui-row">
            <div class="layui-col-xs6">
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">二维码图片地址</label>
                    <div class="layui-input-block">
                        <textarea class="layui-textarea input_content" placeholder="请输入图片地址或点击下方按钮上传图片">{{ d.getPageData('decoder','input_content') }}</textarea>
                        <input type="file" accept="image/*" style="display: none;" class="file_qrcode">
                    </div>
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn submit_button">解析</button>
                    <button class="layui-btn file_button layui-btn-primary">上传图片</button>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">结果</label>
                    <div class="layui-input-block">
                        <textarea class="layui-textarea output_content">{{ d.getPageData('decoder','output_content') }}</textarea>
                    </div>
                </div>
            </div>
            <div class="layui-col-xs6">
                <div class="layui-form-item input_img" style="width: 320px; margin: 0px auto 0;">
                    {{ d.getPageData('decoder','input_img') }}
                </div>
            </div>
        </div>
    </div>
</div>