index.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <cm-construct v-bind:data="data[index]" class="component-seckill">
  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" v-if="nc.style == 1">
  6. <div class="seckill-list-preview marketing-box marketing-box-two">
  7. <div class="seckill-time-list1" v-bind:style="{ backgroundColor : nc.backgroundColor }">
  8. <div class="seckill-time-list1-tit">
  9. <div>整点</div>
  10. <div>秒杀</div>
  11. </div>
  12. <ul>
  13. <li class="selected">
  14. <p class="time">12:00</p>
  15. <p class="desc">已开抢</p>
  16. </li>
  17. <li class="active">
  18. <p class="time">14:00</p>
  19. <p class="desc" v-bind:style="{ color : nc.backgroundColor }">疯抢中</p>
  20. </li>
  21. <li>
  22. <p class="time">16:00</p>
  23. <p class="desc">即将开抢</p>
  24. </li>
  25. </ul>
  26. <div class="seckill-time-list1-more">更多</div>
  27. </div>
  28. <div class="list-wrap" style="position: relative;" v-if="nc.style==1">
  29. <div class="item">
  30. <div class="img-wrap">
  31. <img src="/static/images/diy/crack_figure.png" />
  32. </div>
  33. <div class="content">
  34. <div class="top">
  35. <div class="content-desc">商品名称</div>
  36. <div class="progress">
  37. <div class="img">
  38. <div class="img-con"></div>
  39. </div>
  40. <div class="num">已抢888件</div>
  41. </div>
  42. </div>
  43. <div class="bot">
  44. <div class="content-price">
  45. <div>¥<span>99.00</span></div>
  46. <div class="content-num">¥139.00</div>
  47. </div>
  48. <button class="layui-btn">马上抢</button>
  49. </div>
  50. </div>
  51. </div>
  52. <span class="current">1/3</span>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- 风格二/风格三 -->
  57. <div class="seckill-list-preview marketing-box marketing-box-two" v-bind:class="'marketing-box-'+ nc.style" v-if="nc.style == 2 || nc.style == 3">
  58. <template v-if="nc.lazyLoad">
  59. <seckill-top-content></seckill-top-content>
  60. </template>
  61. <div class="list-wrap">
  62. <div class="item">
  63. <div class="img-wrap">
  64. <img src="/static/images/diy/crack_figure.png" />
  65. </div>
  66. <div class="content">
  67. <div class="top">
  68. <div class="content-desc">商品名称</div>
  69. <div class="progress">
  70. <div class="img">
  71. <div class="img-con"></div>
  72. </div>
  73. <div class="num">已抢65.32%</div>
  74. </div>
  75. </div>
  76. <div class="bot">
  77. <div class="content-price">
  78. <div>¥<span>99.00</span></div>
  79. <div class="content-num">¥139.00</div>
  80. </div>
  81. <button class="layui-btn">立即抢购</button>
  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="top">
  91. <div class="content-desc">商品名称</div>
  92. <div class="progress">
  93. <div class="img">
  94. <div class="img-con"></div>
  95. </div>
  96. <div class="num">已抢65.32%</div>
  97. </div>
  98. </div>
  99. <div class="bot">
  100. <div class="content-price">
  101. <div>¥<span>99.00</span></div>
  102. <div class="content-num">¥139.00</div>
  103. </div>
  104. <button class="layui-btn">立即抢购</button>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="item">
  109. <div class="img-wrap">
  110. <img src="/static/images/diy/crack_figure.png" />
  111. </div>
  112. <div class="content">
  113. <div class="top">
  114. <div class="content-desc">商品名称</div>
  115. <div class="progress">
  116. <div class="img">
  117. <div class="img-con"></div>
  118. </div>
  119. <div class="num">已抢65.32%</div>
  120. </div>
  121. </div>
  122. <div class="bot">
  123. <div class="content-price">
  124. <div>¥<span>99.00</span></div>
  125. <div class="content-num">¥139.00</div>
  126. </div>
  127. <button class="layui-btn">立即抢购</button>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="more" v-if="nc.style == 3">
  133. <span>更多秒杀</span><i class="layui-icon layui-icon-right"></i>
  134. </div>
  135. </div>
  136. <!-- 风格四 -->
  137. <div class="marketing-wrap" v-if="nc.style == 4">
  138. <img v-if="nc.bgSelect == 'red'" src="{$resourceurl}/seckill/img/red.png" />
  139. <img v-if="nc.bgSelect == 'blue'" src="{$resourceurl}/seckill/img/blue.png" />
  140. <img v-if="nc.bgSelect == 'yellow'" src="{$resourceurl}/seckill/img/yellow.png" />
  141. <img v-if="nc.bgSelect == 'violet'" src="{$resourceurl}/seckill/img/violet.png" />
  142. <div class="seckill-list-preview marketing-box">
  143. <template v-if="nc.lazyLoad">
  144. <seckill-top-content></seckill-top-content>
  145. </template>
  146. <div class="seckill-time-list">
  147. <ul>
  148. <li class="selected">
  149. <p>12:00</p>
  150. <p>抢购中</p>
  151. </li>
  152. <li>
  153. <p>14:00</p>
  154. <p>敬请期待</p>
  155. </li>
  156. <li>
  157. <p>16:00</p>
  158. <p>敬请期待</p>
  159. </li>
  160. <li>
  161. <p>18:00</p>
  162. <p>敬请期待</p>
  163. </li>
  164. <li>
  165. <p>20:00</p>
  166. <p>敬请期待</p>
  167. </li>
  168. </ul>
  169. </div>
  170. <div class="list-wrap" v-if="nc.style==1">
  171. <div class="item">
  172. <div class="img-wrap">
  173. <img src="/static/images/diy/crack_figure.png" />
  174. </div>
  175. <div class="content">
  176. <div class="content-desc">商品名称</div>
  177. <div class="content-price">
  178. ¥<span>99.00</span>
  179. </div>
  180. <div class="content-num">¥139.00</div>
  181. </div>
  182. </div>
  183. <div class="item">
  184. <div class="img-wrap">
  185. <img src="/static/images/diy/crack_figure.png" />
  186. </div>
  187. <div class="content">
  188. <div class="content-desc">商品名称</div>
  189. <div class="content-price">
  190. ¥<span>99.00</span>
  191. </div>
  192. <div class="content-num">¥139.00</div>
  193. </div>
  194. </div>
  195. <div class="item">
  196. <div class="img-wrap">
  197. <img src="/static/images/diy/crack_figure.png" />
  198. </div>
  199. <div class="content">
  200. <div class="content-desc">商品名称</div>
  201. <div class="content-price">
  202. ¥<span>99.00</span>
  203. </div>
  204. <div class="content-num">¥139.00</div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </template>
  212. <!-- 编辑 -->
  213. <template slot="edit">
  214. <!-- <slide v-if="nc.style == 2 || nc.style == 3" v-bind:data="{ field : 'goodsCount', label: '商品数量', max: 9, min: 1}"></slide> -->
  215. <template v-if="nc.lazyLoad">
  216. <seckill-style></seckill-style>
  217. <!-- <seckill-color v-if="nc.style == 1"></seckill-color> -->
  218. <!-- <seckill-change-type v-if="nc.style == 1"></seckill-change-type> -->
  219. </template>
  220. <div class="template-edit-title">
  221. <h3>顶部标题设置</h3>
  222. <i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
  223. </div>
  224. <div class="template-edit-wrap">
  225. <template v-if="nc.lazyLoad">
  226. <div v-if="nc.style == 1">
  227. <color v-bind:data="{ field : 'titleTextColor', 'label' : '文本颜色', 'defaultcolor': '#333333' }"></color>
  228. <color v-bind:data="{ field : 'backgroundColor', 'label' : '背景颜色' }"></color>
  229. </div>
  230. <seckill-top-list v-else="nc.style !== 1"></seckill-top-list>
  231. </template>
  232. </div>
  233. <div class="template-edit-title">
  234. <h3>其他设置</h3>
  235. <i class="layui-icon layui-icon-down" onclick="closeBox(this)"></i>
  236. </div>
  237. <div class="template-edit-wrap">
  238. <slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
  239. </div>
  240. <!-- 弹框 -->
  241. <div class="seckill-list-style">
  242. <div class="style-list-seckill layui-form">
  243. <div class="style-list-con-seckill">
  244. <div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 1}">
  245. <img src="{$resourceurl}/seckill/img/seckill_style_1.png" />
  246. <span class="layui-hide">风格一</span>
  247. </div>
  248. <div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 2}">
  249. <img src="{$resourceurl}/seckill/img/seckill_style_2.png" />
  250. <span class="layui-hide">风格二</span>
  251. </div>
  252. <div class="style-li-seckill" v-bind:class="{'selected ns-border-color': nc.style == 3}">
  253. <img src="{$resourceurl}/seckill/img/seckill_style_3.png" />
  254. <span class="layui-hide">风格三</span>
  255. </div>
  256. </div>
  257. <input type="hidden" name="style">
  258. <input type="hidden" name="style_name" />
  259. </div>
  260. </div>
  261. </template>
  262. <!-- 资源 -->
  263. <template slot="resource">
  264. <js>
  265. var seckillResourcePath = "{$resourceurl}";
  266. </js>
  267. <js src="{$resourceurl}/seckill/js/style.js"></js>
  268. <css src="{$resourceurl}/seckill/css/style.css"></css>
  269. </template>
  270. </nc-component>