index.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <cm-construct v-bind:data="data[index]" class="component-store-show-info">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor }">
  5. <div class="info-list">
  6. <div class="info-item style-one" v-if="nc.style == 1">
  7. <div class="info-item">
  8. <span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">社区名称</span>
  9. <span class="change" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">切换 ></span>
  10. <p :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">这里展示社区地址</p>
  11. </div>
  12. <div class="info-item-r">
  13. <div class="img-wrap">
  14. <img src="{$resourceurl}/community_show/img/default_store.png" />
  15. </div>
  16. <div class="conmunity-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">团长昵称</div>
  17. </div>
  18. </div>
  19. <div class="info-item style-three" v-if="nc.style == 2">
  20. <div class="info-item">
  21. <div class="img-wrap">
  22. <img src="{$resourceurl}/community_show/img/default_store.png" />
  23. </div>
  24. <span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">门店名称</span>
  25. <span class="change" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">切换 ></span>
  26. </div>
  27. <div class="store-right-search">
  28. <div><img src="{$resourceurl}/community_show/img/sousuo.png" /> 搜索</div>
  29. </div>
  30. </div>
  31. <div class="info-item style-four" v-if="nc.style == 3">
  32. <div class="store-left-wrap">
  33. <i class="iconfont iconweizhi" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }"></i>
  34. <span class="store-name" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }">门店名称</span>
  35. <i class="layui-icon layui-icon-down" :style="{ color: nc.textColor?nc.textColor:'rgba(0,0,0,0)' }"></i>
  36. </div>
  37. <div class="store-right-search">
  38. <div>商品搜索<i class="iconfont iconsousuo2"></i></div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. <!-- 编辑 -->
  45. <template slot="edit">
  46. <template v-if="nc.lazyLoad">
  47. <store-show-style></store-show-style>
  48. </template>
  49. <!-- 商品列表风格弹框 -->
  50. <div class="goods-list-style" style="display: none;">
  51. <div class="style-list-goods layui-form">
  52. <div class="style-list-con-store">
  53. <div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 1}">
  54. <img src="{$resourceurl}/community_show/img/style1.jpg" />
  55. <span class="layui-hide">风格一</span>
  56. </div>
  57. <div class="style-li-goods" v-bind:class="{'selected ns-border-color': nc.style == 2}">
  58. <img src="{$resourceurl}/community_show/img/style2.jpg" />
  59. <span class="layui-hide">风格二</span>
  60. </div>
  61. </div>
  62. <input type="hidden" name="style">
  63. <input type="hidden" name="style_name" />
  64. </div>
  65. </div>
  66. </template>
  67. <!-- 资源 -->
  68. <template slot="resource">
  69. <css src="{$resourceurl}/community_show/css/style.css"></css>
  70. <js src="{$resourceurl}/community_show/js/style.js"></js>
  71. </template>
  72. </cm-construct>