read.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <style>
  4. .upload-img {
  5. width: 120px;
  6. height: 90px;
  7. overflow: hidden;
  8. position: relative;
  9. border: 1px solid #eee;
  10. padding: 1px;
  11. margin: 5px;
  12. float: left;
  13. }
  14. .upload-close {
  15. position: absolute;
  16. top: 1px;
  17. right: 1px;
  18. }
  19. </style>
  20. {/block}
  21. <!-- 主体 -->
  22. {block name="body"}
  23. <div class="layui-form p-4">
  24. <h3 class="pb-3">商品详情</h3>
  25. <table class="layui-table layui-table-form">
  26. <tr>
  27. <td class="layui-td-gray">商品标题</td>
  28. <td colspan="5">{$detail.title}</td>
  29. <td class="layui-td-gray">商品分类</td>
  30. <td>{$detail.cate_name}</td>
  31. </tr>
  32. <tr>
  33. <td class="layui-td-gray">关键字</td>
  34. <td colspan="5">{$detail.keyword_names}</td>
  35. <td class="layui-td-gray" rowspan="3">缩略图<font>*</font></td>
  36. <td rowspan="3" style="vertical-align:top">
  37. <img src="{$detail.thumb|get_file}" style="width:200px;max-width:200px" />
  38. </td>
  39. </tr>
  40. <tr>
  41. <td class="layui-td-gray">商品卖点</td>
  42. <td colspan="5">{$detail.tips}</td>
  43. </tr>
  44. <tr>
  45. <td class="layui-td-gray" style="vertical-align:top;">商品简介</td>
  46. <td colspan="5">{$detail.desc}</td>
  47. </tr>
  48. <tr>
  49. <td class="layui-td-gray">商品标签</td>
  50. <td colspan="8">
  51. <input type="checkbox" name="tag_values[]" title="正品保证" lay-skin="primary" disabled value="1" {eq
  52. name="$detail.tag1" value="1" }checked{/eq} />
  53. <input type="checkbox" name="tag_values[]" title="一年保修" lay-skin="primary" disabled value="2" {eq
  54. name="$detail.tag2" value="1" }checked{/eq} />
  55. <input type="checkbox" name="tag_values[]" title="七天退换(拆封后不支持)" lay-skin="primary" disabled value="3" {eq
  56. name="$detail.tag3" value="1" }checked{/eq} />
  57. <input type="checkbox" name="tag_values[]" title="赠运费险" lay-skin="primary" disabled value="4" {eq
  58. name="$detail.tag4" value="1" }checked{/eq} />
  59. <input type="checkbox" name="tag_values[]" title="闪电发货" lay-skin="primary" disabled value="5" {eq
  60. name="$detail.tag5" value="1" }checked{/eq} />
  61. <input type="checkbox" name="tag_values[]" title="售后无忧" lay-skin="primary" disabled value="6" {eq
  62. name="$detail.tag6" value="1" }checked{/eq} />
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="layui-td-gray">市场价格</td>
  67. <td>{$detail.base_price}</td>
  68. <td class="layui-td-gray">实际价格</td>
  69. <td>{$detail.price}</td>
  70. <td class="layui-td-gray">商品库存</td>
  71. <td>{$detail.stocks}</td>
  72. <td class="layui-td-gray">是否包邮</td>
  73. <td>
  74. {eq name="$detail.is_mail" value="1"}是{/eq}
  75. {eq name="$detail.is_mail" value="0"}否{/eq}
  76. </td>
  77. </tr>
  78. <tr>
  79. <td class="layui-td-gray">商品属性</td>
  80. <td>
  81. {eq name="$detail.type" value="1" }精华{/eq}
  82. {eq name="$detail.type" value="2" }热门{/eq}
  83. {eq name="$detail.type" value="3" }推荐{/eq}
  84. </td>
  85. <td class="layui-td-gray">首页显示</td>
  86. <td>
  87. {eq name="$detail.is_home" value="1"}是{/eq}
  88. {eq name="$detail.is_home" value="0"}否{/eq}
  89. </td>
  90. <td class="layui-td-gray">排序</td>
  91. <td>{$detail.sort}</td>
  92. <td class="layui-td-gray">状态</td>
  93. <td>
  94. {eq name="$detail.status" value="1" }正常{/eq}
  95. {eq name="$detail.status" value="0" }下架{/eq}
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="layui-td-gray">商品图集</td>
  100. <td colspan="7">
  101. <div class="layui-upload">
  102. <div class="layui-upload-list">
  103. {notempty name="detail.banner"}
  104. {volist name="detail.banner_array" id="vo"}
  105. <div class="upload-img img-cover" id="uploadImg{$vo}"><div class="gg-img-cover cover-4-3"><img src="{$vo|get_file}"></div></div>
  106. {/volist}
  107. {/notempty}
  108. </div>
  109. </div>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="layui-td-gray">商品介绍</td>
  114. <td colspan="7">
  115. {$detail.content|raw}
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. {/block}
  121. <!-- /主体 -->