Showing
5 changed files
with
115 additions
and
1 deletions
@@ -16,8 +16,11 @@ | @@ -16,8 +16,11 @@ | ||
16 | <label>添加皮肤</label>  | 16 | <label>添加皮肤</label>  |
17 | </div> | 17 | </div> |
18 | <div class="col-sm-3"> | 18 | <div class="col-sm-3"> |
19 | - <input type="file" name="file" value="[[contentData.back_image]]" data-field="..back_image"/> | 19 | + <input type="file" name="file" class="backImage" value="[[contentData.back_image]]" data-field="..back_image"/> |
20 | </div> | 20 | </div> |
21 | + <div class="col-sm-1"> | ||
22 | + <input type="button" class="btn btn-danger delBackImage" value="删除皮肤"> | ||
23 | + </div> | ||
21 | </div> | 24 | </div> |
22 | </div> | 25 | </div> |
23 | [[/if]] | 26 | [[/if]] |
@@ -2573,4 +2573,72 @@ | @@ -2573,4 +2573,72 @@ | ||
2573 | </li> | 2573 | </li> |
2574 | [[/each]] | 2574 | [[/each]] |
2575 | </ul> | 2575 | </ul> |
2576 | +</script> | ||
2577 | + | ||
2578 | +<!--热门品牌个性化--> | ||
2579 | +<script type="text/template" id="bigDataHotBrand-template"> | ||
2580 | + <div class="form-group"> | ||
2581 | + <div class="col-sm-10"> | ||
2582 | + <label>标题</label> | ||
2583 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="热门品牌-个性化"> | ||
2584 | +     <label>显示名称</label> | ||
2585 | + <label style="cursor: pointer;"><input type="radio" name="is_show_name_bigDataHotBrand" class="is_show_name_bigDataHotBrand" value="Y">是</label> | ||
2586 | + <label style="cursor: pointer;"><input type="radio" name="is_show_name_bigDataHotBrand" class="is_show_name_bigDataHotBrand" value="N">否</label> | ||
2587 | + <input type="hidden" id="is_show_name_bigDataHotBrand" value="[[contentData.data.is_show_name]]" for="radio"/> | ||
2588 | + </div> | ||
2589 | + </div> | ||
2590 | + <div class="from-group"> | ||
2591 | + <div class="col-sm-6"> | ||
2592 | + <label>应用范围</label>   | ||
2593 | + <select class="form-control observe input-form" name="channel" value="[[contentData.data.title.channel]]" data-field="title.channel"> | ||
2594 | + <option value="-1">选择频道</option> | ||
2595 | + <option value="1">男生</option> | ||
2596 | + <option value="2">女生</option> | ||
2597 | + <option value="3">潮童</option> | ||
2598 | + <option value="4">创意生活</option> | ||
2599 | + </select> | ||
2600 | + </div> | ||
2601 | + </div> | ||
2602 | + <div class="panel-body"> | ||
2603 | + <div class="form-group"> | ||
2604 | + <table class="table table-hover table-bordered responsive dataTable no-footer"> | ||
2605 | + <thead> | ||
2606 | + <tr> | ||
2607 | + <th>图片</th> | ||
2608 | + <th>选项</th> | ||
2609 | + </tr> | ||
2610 | + </thead> | ||
2611 | + <tbody> | ||
2612 | + <tr> | ||
2613 | + <td> | ||
2614 | + <input type="file" name="file" value="[[contentData.data.image.src]]" | ||
2615 | + class="observe" required="required" | ||
2616 | + data-field="image.src"/> | ||
2617 | + </td> | ||
2618 | + <td> | ||
2619 | + <div class="form-group "> | ||
2620 | + <select name="goTo" class="form-control observe" | ||
2621 | + value="[[contentData.data.image.url.action]]" | ||
2622 | + data-field="image.url.action"> | ||
2623 | + [[layout action_template]] | ||
2624 | + </select> | ||
2625 | + </div> | ||
2626 | + <div class="form-group "> | ||
2627 | + <input value="[[contentData.data.image.url.url]]" | ||
2628 | + class="form-control observe" | ||
2629 | + data-field="image.url.url" placeholder="图片链接"/> | ||
2630 | + | ||
2631 | + <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> | ||
2632 | + </div> | ||
2633 | + <div class="form-group "> | ||
2634 | + <input value="[[contentData.data.image.alt]]" | ||
2635 | + class="form-control observe" | ||
2636 | + data-field="image.alt" placeholder="图片描述"/> | ||
2637 | + </div> | ||
2638 | + </td> | ||
2639 | + </tr> | ||
2640 | + </tbody> | ||
2641 | + </table> | ||
2642 | + </div> | ||
2643 | + </div> | ||
2576 | </script> | 2644 | </script> |
@@ -129,6 +129,16 @@ | @@ -129,6 +129,16 @@ | ||
129 | </ul> | 129 | </ul> |
130 | </div> | 130 | </div> |
131 | </div> | 131 | </div> |
132 | + [[else if module.contentData.template_name=='bigDataHotBrand']] | ||
133 | + <div class="form-group"> | ||
134 | + <div class="row title"> | ||
135 | + [[module.contentData.data.title.title]] | ||
136 | + </div> | ||
137 | + <div class="col-sm-12"> | ||
138 | + <img src="[[module.contentData.data.image.src]]" class="custom-pic-img" style="margin:2px;"> | ||
139 | + </ul> | ||
140 | + </div> | ||
141 | + </div> | ||
132 | [[else if module.contentData.template_name=='customBrands']] | 142 | [[else if module.contentData.template_name=='customBrands']] |
133 | <div class="custom-pic"> | 143 | <div class="custom-pic"> |
134 | <div class="custom-brand-title row title">[[module.contentData.data.title.title]]</div> | 144 | <div class="custom-brand-title row title">[[module.contentData.data.title.title]]</div> |
@@ -343,6 +343,27 @@ var Button = [ | @@ -343,6 +343,27 @@ var Button = [ | ||
343 | } | 343 | } |
344 | }, | 344 | }, |
345 | { | 345 | { |
346 | + button_name: "热门品牌-个性化", | ||
347 | + template_intro: "热门品牌-个性化", | ||
348 | + template_name: "bigDataHotBrand", | ||
349 | + dialog: "bigDataHotBrand-template", | ||
350 | + "data": { | ||
351 | + "title": { | ||
352 | + "title": "", | ||
353 | + "channel":"" | ||
354 | + }, | ||
355 | + "is_show_name": "N", | ||
356 | + "image": { | ||
357 | + "src": "", | ||
358 | + "alt": "", | ||
359 | + "url": { | ||
360 | + "action": "", | ||
361 | + "url": "" | ||
362 | + } | ||
363 | + } | ||
364 | + } | ||
365 | + }, | ||
366 | + { | ||
346 | button_name: "自定义品牌", | 367 | button_name: "自定义品牌", |
347 | template_intro: "自定义品牌", | 368 | template_intro: "自定义品牌", |
348 | template_name: "customBrands", | 369 | template_name: "customBrands", |
@@ -737,11 +737,23 @@ $(document).on("click", '.is_show_name_brand', function () { | @@ -737,11 +737,23 @@ $(document).on("click", '.is_show_name_brand', function () { | ||
737 | Bll.module.contentData.data.is_show_name = $(this).val(); | 737 | Bll.module.contentData.data.is_show_name = $(this).val(); |
738 | Bll.renderDialog("brands-template"); | 738 | Bll.renderDialog("brands-template"); |
739 | }); | 739 | }); |
740 | +//热门品牌个性化推荐 | ||
741 | +$(document).on("click", '.is_show_name_bigDataHotBrand', function () { | ||
742 | + Bll.module.contentData.data.is_show_name = $(this).val(); | ||
743 | + Bll.renderDialog("bigDataHotBrand-template"); | ||
744 | +}); | ||
745 | + | ||
740 | //图标入口 一行显示个数 | 746 | //图标入口 一行显示个数 |
741 | $(document).on("click", '.icon-number', function () { | 747 | $(document).on("click", '.icon-number', function () { |
742 | Bll.module.contentData.number = $(this).val(); | 748 | Bll.module.contentData.number = $(this).val(); |
743 | Bll.renderDialog("icon-template"); | 749 | Bll.renderDialog("icon-template"); |
744 | }); | 750 | }); |
751 | + | ||
752 | +//清空背景图片 | ||
753 | +$(document).on("click",".delBackImage",function(){ | ||
754 | + Bll.module.contentData.back_image = ""; | ||
755 | + Bll.renderDialog("icon-template"); | ||
756 | +}); | ||
745 | //**********************************************************************************/ | 757 | //**********************************************************************************/ |
746 | //复制 | 758 | //复制 |
747 | $(document).on("click", "#copyTab", function() { | 759 | $(document).on("click", "#copyTab", function() { |
-
Please register or login to post a comment