index.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <cm-construct v-bind:data="data[index]" class="component-special">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin: nc.marginTop + 'px 15px 0' }">
  5. <div class="marketing-wrap marketing-wrap-1 marketing-wrap-4" v-if="nc.style == 1">
  6. <div class="marketing-box">
  7. <template v-if="nc.lazyLoad&&nc.list[0].imageUrl">
  8. <img :src="nc.list[0].imageUrl" alt="">
  9. </template>
  10. <div class="list-wrap">
  11. <div class="item">
  12. <div class="img-wrap">
  13. <img src="/static/images/diy/crack_figure.png" />
  14. </div>
  15. <div class="content">
  16. <div class="content-desc">商品名称</div>
  17. <div class="content-price">
  18. ¥<span>99.00</span>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="item">
  23. <div class="img-wrap">
  24. <img src="/static/images/diy/crack_figure.png" />
  25. </div>
  26. <div class="content">
  27. <div class="content-desc">商品名称</div>
  28. <div class="content-price">
  29. ¥<span>99.00</span>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="item">
  34. <div class="img-wrap">
  35. <img src="/static/images/diy/crack_figure.png" />
  36. </div>
  37. <div class="content">
  38. <div class="content-desc">商品名称</div>
  39. <div class="content-price">
  40. ¥<span>99.00</span>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <!-- 风格四 -->
  48. <div class="marketing-wrap marketing-wrap-1" v-if="nc.style == 4">
  49. <img v-if="nc.bgSelect == 'red'" src="{$resourceurl}/special/img/red.png" />
  50. <img v-if="nc.bgSelect == 'blue'" src="{$resourceurl}/special/img/blue.png" />
  51. <img v-if="nc.bgSelect == 'yellow'" src="{$resourceurl}/special/img/yellow.png" />
  52. <img v-if="nc.bgSelect == 'violet'" src="{$resourceurl}/special/img/violet.png" />
  53. <div class="marketing-box">
  54. <template v-if="nc.lazyLoad">
  55. <special-top-content></special-top-content>
  56. </template>
  57. <div class="list-wrap">
  58. <div class="item">
  59. <div class="img-wrap">
  60. <img src="/static/images/diy/crack_figure.png" />
  61. </div>
  62. <div class="content">
  63. <div class="content-desc">商品名称</div>
  64. <div class="content-num">2人团</div>
  65. <div class="content-price">
  66. ¥<span>99.00</span>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="item">
  71. <div class="img-wrap">
  72. <img src="/static/images/diy/crack_figure.png" />
  73. </div>
  74. <div class="content">
  75. <div class="content-desc">商品名称</div>
  76. <div class="content-num">2人团</div>
  77. <div class="content-price">
  78. ¥<span>99.00</span>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="item">
  83. <div class="img-wrap">
  84. <img src="/static/images/diy/crack_figure.png" />
  85. </div>
  86. <div class="content">
  87. <div class="content-desc">商品名称</div>
  88. <div class="content-num">2人团</div>
  89. <div class="content-price">
  90. ¥<span>99.00</span>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <!-- 风格二/风格三 -->
  98. <div class="marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
  99. <template v-if="nc.lazyLoad">
  100. <special-top-content></special-top-content>
  101. </template>
  102. <div class="list-wrap">
  103. <div class="item">
  104. <div class="img-wrap">
  105. <img src="/static/images/diy/crack_figure.png" />
  106. </div>
  107. <div class="content">
  108. <div class="top">
  109. <div class="content-desc">商品名称</div>
  110. <div class="label">
  111. <div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
  112. <div class="label-num"><span>已拼10件</span></div>
  113. </div>
  114. </div>
  115. <div class="bot">
  116. <div class="content-price">
  117. <div>¥<span>99.00</span></div>
  118. <div class="content-num">¥139.00</div>
  119. </div>
  120. <button class="layui-btn">去拼团</button>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="item">
  125. <div class="img-wrap">
  126. <img src="/static/images/diy/crack_figure.png" />
  127. </div>
  128. <div class="content">
  129. <div class="top">
  130. <div class="content-desc">商品名称</div>
  131. <div class="label">
  132. <div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
  133. <div class="label-num"><span>已拼10件</span></div>
  134. </div>
  135. </div>
  136. <div class="bot">
  137. <div class="content-price">
  138. <div>¥<span>99.00</span></div>
  139. <div class="content-num">¥139.00</div>
  140. </div>
  141. <button class="layui-btn">去拼团</button>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="item">
  146. <div class="img-wrap">
  147. <img src="/static/images/diy/crack_figure.png" />
  148. </div>
  149. <div class="content">
  150. <div class="top">
  151. <div class="content-desc">商品名称</div>
  152. <div class="label">
  153. <div class="label-person"><i class="layui-icon layui-icon-user"></i><span>2人团</span></div>
  154. <div class="label-num"><span>已拼10件</span></div>
  155. </div>
  156. </div>
  157. <div class="bot">
  158. <div class="content-price">
  159. <div>¥<span>99.00</span></div>
  160. <div class="content-num">¥139.00</div>
  161. </div>
  162. <button class="layui-btn">去拼团</button>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <div class="more" v-if="nc.style == 3">
  168. <span>更多拼团</span><i class="layui-icon layui-icon-right"></i>
  169. </div>
  170. </div>
  171. </div>
  172. </template>
  173. <!-- 编辑 -->
  174. <template slot="edit">
  175. <template v-if="nc.lazyLoad">
  176. <!-- <special-list></special-list> -->
  177. <!-- <special-style></special-style> -->
  178. </template>
  179. <template v-if="nc.lazyLoad">
  180. <special-color v-if="nc.style == 4"></special-color>
  181. <!-- <change-type v-if="nc.style == 4"></change-type> -->
  182. </template>
  183. <div class="template-edit-title">
  184. <h3>顶部标题设置</h3>
  185. <i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
  186. </div>
  187. <template v-if="nc.lazyLoad">
  188. <special-top-list></special-top-list>
  189. </template>
  190. <div class="template-edit-title">
  191. <h3>其他设置</h3>
  192. <i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
  193. </div>
  194. <template v-if="nc.lazyLoad">
  195. <slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
  196. </template>
  197. <!-- 弹框 -->
  198. <div class="special-list-style">
  199. <div class="style-list-special layui-form">
  200. <div class="style-list-con-special">
  201. <div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 1}">
  202. <img src="{$resourceurl}/special/img/special_style_1.png" />
  203. <span class="layui-hide">风格一</span>
  204. </div>
  205. <div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 2}">
  206. <img src="{$resourceurl}/special/img/special_style_2.png" />
  207. <span class="layui-hide">风格二</span>
  208. </div>
  209. <div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 3}">
  210. <img src="{$resourceurl}/special/img/special_style_3.png" />
  211. <span class="layui-hide">风格三</span>
  212. </div>
  213. <div class="style-li-special" v-bind:class="{'selected ns-border-color': nc.style == 4}">
  214. <img src="{$resourceurl}/special/img/special_style_4.png" />
  215. <span class="layui-hide">风格四</span>
  216. </div>
  217. </div>
  218. <input type="hidden" name="style">
  219. <input type="hidden" name="style_name" />
  220. </div>
  221. </div>
  222. </template>
  223. <!-- 资源 -->
  224. <template slot="resource">
  225. <js>
  226. var specialResourcePath = "{$resourceurl}";
  227. </js>
  228. <css src="{$resourceurl}/special/css/style.css"></css>
  229. <js src="{$resourceurl}/special/js/style.js"></js>
  230. </template>
  231. </cm-construct>