design.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <nc-component :data="data[index]" class="component-live-info">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="live-wrap">
  5. <div class="banner-wrap">
  6. <img src="{$resource_path}/img/live_default_banner.png">
  7. <div class="shade"></div>
  8. <div class="wrap">
  9. <div class="room-name">
  10. <span class="status-name"><img src="{$resource_path}/img/live_default_icon.png"/>直播中</span>
  11. 双十一活动,限时秒杀!
  12. </div>
  13. </div>
  14. </div>
  15. <div class="room-info" v-if="nc.isShowAnchorInfo || nc.isShowLiveGood">
  16. <template v-if="nc.isShowAnchorInfo">
  17. <img src="{:img('public/static/img/default_img/head.png')}" class="anchor-img">
  18. <span class="anchor-name">主播:主播昵称</span>
  19. </template>
  20. <template v-if="nc.isShowAnchorInfo && nc.isShowLiveGood">
  21. <span class="separate">|</span>
  22. </template>
  23. <template v-if="nc.isShowLiveGood">
  24. <span class="goods-text">直播商品:名称</span>
  25. </template>
  26. </div>
  27. </div>
  28. </template>
  29. <!-- 内容编辑 -->
  30. <template slot="edit-content">
  31. <template v-if="nc.lazyLoad">
  32. <live-set></live-set>
  33. </template>
  34. </template>
  35. <!-- 样式编辑 -->
  36. <template slot="edit-style"></template>
  37. <!-- 资源 -->
  38. <template slot="resource">
  39. <css src="{$resource_path}/css/design.css"></css>
  40. <js src="{$resource_path}/js/design.js"></js>
  41. </template>
  42. </nc-component>