123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- <!-- 商品分类和轮播图 -->
- <form>
- <input type="hidden" name="model_id" value="8" />
- <h2 class="attr-title">商品分类和轮播图</h2>
- <div class="layui-form-item">
- <label class="layui-form-label sm">背景颜色</label>
- <div class="layui-input-block">
- <div class="color-wrapper">
- <input data-js="color" type="text" name="back_color" value="{$config_info.back_color|default=''}" />
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">上边距</label>
- <div class="layui-input-block">
- <div class="range-wrapper">
- <input type="range" name="padding_top" value="{$config_info.padding_top|default='0'}" onchange="$(this).next().text($(this).val())">
- <span>{$config_info.padding_top|default='0'}</span>
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">下边距</label>
- <div class="layui-input-block">
- <div class="range-wrapper">
- <input type="range" name="padding_bottom" value="{$config_info.padding_bottom|default='0'}" onchange="$(this).next().text($(this).val())">
- <span>{$config_info.padding_bottom|default='0'}</span>
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">选择分类</label>
- <div class="layui-input-block">
- <div data-js="goods_class"><div data-select></div>
- <input type="hidden" name="goods_class" data-input value="{$config_info.goods_class|default='0'}" />
- <div data-type="template" data-name="gc_id" data-value="{if isset($config_info['gc_id'])}{:json_encode($config_info['gc_id'])}{/if}"></div>
- <table class="dssc-default-table mb15">
- <thead>
- <tr>
- <th class="tl">{$Think.lang.ds_goodsclass}</th>
- <th class="w90">{$Think.lang.ds_sort}</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">分类图标</label>
- <div class="layui-input-block">
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['gc'][0]['image']) || !$config_info['gc'][0]['image']}style="display:none" {/if}>
- <img class='uploader-image' src='{$config_info['gc'][0]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['gc'][0]['image']) && $config_info['gc'][0]['image']}style="display:none" {/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">26×26</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='gc[i_0][image]' value='{$config_info['gc'][0]['image']|default=""}'>
- </div>
-
- </div>
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['gc'][1]['image']) || !$config_info['gc'][1]['image']}style="display:none" {/if}>
- <img class='uploader-image' src='{$config_info['gc'][1]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['gc'][1]['image']) && $config_info['gc'][1]['image']}style="display:none" {/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">26×26</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='gc[i_1][image]' value='{$config_info['gc'][1]['image']|default=""}'>
- </div>
-
- </div>
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['gc'][2]['image']) || !$config_info['gc'][2]['image']}style="display:none" {/if}>
- <img class='uploader-image' src='{$config_info['gc'][2]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['gc'][2]['image']) && $config_info['gc'][2]['image']}style="display:none" {/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">26×26</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='gc[i_2][image]' value='{$config_info['gc'][2]['image']|default=""}'>
- </div>
-
- </div>
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['gc'][3]['image']) || !$config_info['gc'][3]['image']}style="display:none" {/if}>
- <img class='uploader-image' src='{$config_info['gc'][3]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['gc'][3]['image']) && $config_info['gc'][3]['image']}style="display:none" {/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">26×26</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='gc[i_3][image]' value='{$config_info['gc'][3]['image']|default=""}'>
- </div>
-
- </div>
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['gc'][4]['image']) || !$config_info['gc'][4]['image']}style="display:none" {/if}>
- <img class='uploader-image' src='{$config_info['gc'][4]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['gc'][4]['image']) && $config_info['gc'][4]['image']}style="display:none" {/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">26×26</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='gc[i_4][image]' value='{$config_info['gc'][4]['image']|default=""}'>
- </div>
-
- </div>
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">中间广告</label>
- <div class="layui-input-block">
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['adv_center'][0]['image']) || !$config_info['adv_center'][0]['image']}style="display:none"{/if}>
- <img class='uploader-image' src='{$config_info['adv_center'][0]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['adv_center'][0]['image']) && $config_info['adv_center'][0]['image']}style="display:none"{/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">800×400</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='adv_center[i_0][image]' value="{$config_info['adv_center'][0]['image']|default=""}">
- </div>
-
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="adv_center[i_0][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">中间广告</label>
- <div class="layui-input-block">
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['adv_center'][1]['image']) || !$config_info['adv_center'][1]['image']}style="display:none"{/if}>
- <img class='uploader-image' src='{$config_info['adv_center'][1]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['adv_center'][1]['image']) && $config_info['adv_center'][1]['image']}style="display:none"{/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">800×400</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='adv_center[i_1][image]' value="{$config_info['adv_center'][1]['image']|default=""}">
- </div>
-
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="adv_center[i_1][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">中间广告</label>
- <div class="layui-input-block">
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['adv_center'][2]['image']) || !$config_info['adv_center'][2]['image']}style="display:none"{/if}>
- <img class='uploader-image' src='{$config_info['adv_center'][2]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['adv_center'][2]['image']) && $config_info['adv_center'][2]['image']}style="display:none"{/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">800×400</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='adv_center[i_2][image]' value="{$config_info['adv_center'][2]['image']|default=""}">
- </div>
-
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="adv_center[i_2][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">文章标题1</label>
- <div class="layui-input-block">
- <input type="text" name="article_title_1" value="{$config_info.article_title_1|default=''}" placeholder="请输入文章标题1" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">文章标题2</label>
- <div class="layui-input-block">
- <input type="text" name="article_title_2" value="{$config_info.article_title_2|default=''}" placeholder="请输入文章标题2" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">文章标题</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_0][title]" value="" placeholder="请输入文章标题" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_0][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">文章标题</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_1][title]" value="" placeholder="请输入文章标题" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_1][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">文章标题</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_2][title]" value="" placeholder="请输入文章标题" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="article[i_2][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- <div class="model-item">
- <div class="layui-form-item">
- <label class="layui-form-label sm">右侧广告</label>
- <div class="layui-input-block">
- <div class="uploader-wrapper">
- <div class="uploader-image-wrapper" {if !isset($config_info['adv_right'][0]['image']) || !$config_info['adv_right'][0]['image']}style="display:none"{/if}>
- <img class='uploader-image' src='{$config_info['adv_right'][0]['image']|default=""}' />
- <div class="iconfont uploader-image-btn" onclick="delFile($(this))"></div>
- </div>
- <div class='uploader-content' {if isset($config_info['adv_right'][0]['image']) && $config_info['adv_right'][0]['image']}style="display:none"{/if}>
- <div class="uploader-icon iconfont"></div>
- <div class="uploader-text">点击上传</div>
- <div class="uploader-notice">188×245</div>
- <input type='file' class='uploader-file' onchange='uploadFile($(this))'>
- <input type='hidden' name='adv_right[i_0][image]' value="{$config_info['adv_right'][0]['image']|default=""}">
- </div>
-
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label sm">跳转页面</label>
- <div class="layui-input-block">
- <input type="text" name="adv_right[i_0][link]" value="" placeholder="请输入跳转页面" class="layui-input">
- </div>
- </div>
- </div>
- </form>
- <script>
- if(typeof(loadConfig8)=='undefined'){
- function loadConfig8(obj){
- obj.find('[data-js="color"]').colorpicker({showOn: 'both'});
- var id=obj.attr('data-id')
- obj.find('[data-js="goods_class"]').attr('id','goods_class_'+id)
-
- var gc_id=parseInt(obj.find('*[data-input]').val())
- if(gc_id){
- getGoodsClass(gc_id,'goods_class_'+id)
- }else{
- loadGoodsClass(1,0,'goods_class_'+id)
- }
- }
- }
- </script>
|