index.html 8.1 KB

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