index.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <cm-construct v-bind:data="data[index]" class="many-goods-list">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="goods-list-preview" v-bind:style="{ marginTop: nc.marginTop + 'px' }" style="padding: 0 15px;">
  5. <template v-if="nc.style == 1">
  6. <div class="goods-cate-list">
  7. <template v-for="(item, index) in nc.list">
  8. <div class="split-line" v-if="index > 0"></div>
  9. <div class="goods-cate-item" :class="{'active': index == 0}">
  10. <p>{{item.title}}</p>
  11. <p :style="{background: index == 0 && item.desc ? nc.selectColor : ''}">{{item.desc}}</p>
  12. </div>
  13. </template>
  14. </div>
  15. </template>
  16. </div>
  17. </template>
  18. <!-- 编辑 -->
  19. <template slot="edit">
  20. <!-- <div class="layui-form-item">
  21. <label class="layui-form-label sm">名称</label>
  22. <div class="layui-input-block">
  23. <input type="text" v-model="nc.goodsGroupTitle" v-bind:id="'title_'+index" placeholder="请输入商品组名称" class="layui-input">
  24. </div>
  25. </div> -->
  26. <template v-if="nc.lazyLoad">
  27. <many-goods-list-style></many-goods-list-style>
  28. </template>
  29. <template v-if="nc.lazyLoad">
  30. <many-goods-list></many-goods-list>
  31. </template>
  32. <div class="template-edit-title"><h3>其他设置</h3></div>
  33. <slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
  34. <!-- 商品组风格弹框 -->
  35. <div class="goods-cate-style">
  36. <div class="style-cate-goods layui-form">
  37. <div class="style-cate-con-goods">
  38. <div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
  39. <img src="{$resourceurl}/many_goods_list/img/cate_style_1.png" />
  40. </div>
  41. </div>
  42. <input type="hidden" name="style">
  43. </div>
  44. </div>
  45. <!-- 商品分类选择弹框 -->
  46. <div class="goods-category-layer">
  47. <notempty name="goods_category_list">
  48. <div class="category-head">分类名称</div>
  49. <div class="category-wrap">
  50. <foreach name="goods_category_list" item="vo">
  51. <div class="category-item" data-id="{$vo.id}">{$vo.name}</div>
  52. </foreach>
  53. </div>
  54. </notempty>
  55. </div>
  56. <!-- 商品列表风格弹框 -->
  57. <!-- <div class="goods-list-style">
  58. <div class="style-list-goods layui-form">
  59. <div class="style-list-con-goods">
  60. <div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
  61. <img src="{$resourceurl}/many_goods_list/img/style3.png" />
  62. </div>
  63. </div>
  64. <input type="hidden" name="style">
  65. </div>
  66. </div> -->
  67. </template>
  68. <!-- 资源 -->
  69. <template slot="resource">
  70. <js>
  71. var goodsListResourcePath = "{$resourceurl}";
  72. </js>
  73. <css src="{$resourceurl}/many_goods_list/css/style.css"></css>
  74. <js src="{$resourceurl}/many_goods_list/js/style.js"></js>
  75. </template>
  76. </cm-construct>