截流自动化的商城平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

detail.html 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label { width: 110px; }
  4. </style>
  5. <div class="layui-card layui-form" style="box-shadow:none;">
  6. <div class="layui-card-body">
  7. <!-- 商品信息 -->
  8. <div class="layui-form-item">
  9. <label class="layui-form-label"></label>
  10. <div class="layui-input-block">
  11. <div class="goods_info">
  12. <img src="{$detail.goods.image}" alt="商品图片" style="width:80px;height:80px;">
  13. <span style="margin-left:5px;">{$detail.goods.name}</span>
  14. <input type="hidden" name="goods_id" value="{$detail.goods.id}" disabled readonly>
  15. </div>
  16. <table id="goods_list" class="layui-table layui-disabled" lay-size="sm" style="width:630px;">
  17. <thead>
  18. <tr style="background-color: #f3f5f9">
  19. <th style="width: 120px;text-align: center">商品规格</th>
  20. <th style="width: 60px;text-align: center">商品价格</th>
  21. <th style="width: 40px;text-align: center">拼团价格</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {volist name="$detail.teamGoods" id="vo"}
  26. <tr>
  27. <td style="text-align: center">{$vo.spec_value_str}</td>
  28. <td style="text-align: center">{$vo.price}</td>
  29. <td style="width: 40px;">
  30. <input type="number" name=item[{$vo.goods_id}][{$vo.item_id}]
  31. lay-verType="tips" lay-verify="required" autocomplete="off"
  32. class="layui-input layui-disabled" value="{$vo.team_price}" disabled readonly>
  33. </td>
  34. </tr>
  35. {/volist}
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <!-- 拼团人数 -->
  41. <div class="layui-form-item" style="margin-bottom: 0;">
  42. <label for="people_num" class="layui-form-label"><font color="red">*</font>拼团人数:</label>
  43. <div class="layui-input-inline">
  44. <input type="number" min="2" id="people_num" name="people_num"
  45. class="layui-input layui-disabled" autocomplete="off" value="{$detail.people_num}"
  46. onkeyup="value=value.replace(/[^\d]/g,'')"
  47. lay-verType="tips" lay-verify="required|number|people_num" disabled readonly>
  48. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">最少两人成团,设置商品拼团人数</div>
  49. </div>
  50. <div class="layui-form-mid">人</div>
  51. </div>
  52. <!-- 拼团时效 -->
  53. <div class="layui-form-item" style="margin-bottom: 0;">
  54. <label for="effective_time" class="layui-form-label"><font color="red">*</font>成团有效期:</label>
  55. <div class="layui-input-inline">
  56. <input type="number" min="0" id="effective_time" name="effective_time"
  57. class="layui-input layui-disabled" autocomplete="off" value="{$detail.effective_time}"
  58. onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
  59. lay-verType="tips" lay-verify="required|number|effective_time" disabled readonly>
  60. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">拼团有效期,超出时间还未成团则拼团失败</div>
  61. </div>
  62. <div class="layui-form-mid">小时</div>
  63. </div>
  64. <!-- 拼团活动时间 -->
  65. <div class="layui-form-item" style="margin-bottom: 0;">
  66. <label class="layui-form-label"><font color="red">*</font>拼团活动时间:</label>
  67. <div class="layui-input-block">
  68. <div class="layui-inline">
  69. <input type="text" id="activity_start_time" name="activity_start_time" value="{$detail.activity_start_time}"
  70. class="layui-input layui-disabled" autocomplete="off" lay-verType="tips" lay-verify="required" disabled readonly>
  71. </div>
  72. <div class="layui-inline">-</div>
  73. <div class="layui-inline">
  74. <input type="text" id="activity_end_time" name="activity_end_time" value="{$detail.activity_end_time}"
  75. class="layui-input layui-disabled" autocomplete="off" lay-verType="tips" lay-verify="required" disabled readonly>
  76. </div>
  77. </div>
  78. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;margin-left:140px;">商品参与拼团营销活动的时间,超出活动时间则不能开启新团</div>
  79. </div>
  80. <!-- 拼够分享标题 -->
  81. <div class="layui-form-item" style="margin-bottom: 0;">
  82. <label for="share_title" class="layui-form-label" style="width:110px;">拼团分享标题:</label>
  83. <div class="layui-input-inline" style="width: 300px;">
  84. <input type="text" id="share_title" name="share_title" value="{$detail.share_title}"
  85. class="layui-input layui-disabled" autocomplete="off" lay-verType="tips" disabled readonly>
  86. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">分享拼团活动时的标题,不填则默认使用商品标题</div>
  87. </div>
  88. </div>
  89. <!-- 拼够分享简介 -->
  90. <div class="layui-form-item" style="margin-bottom: 0;">
  91. <label for="share_intro" class="layui-form-label" style="width:110px;">拼团分享简介:</label>
  92. <div class="layui-input-inline" style="width: 300px;">
  93. <input type="text" id="share_intro" name="share_intro" value="{$detail.share_intro}"
  94. class="layui-input layui-disabled" autocomplete="off" lay-verType="tips" disabled readonly>
  95. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">分享拼团活动时的简介,不填则默认使用商品简介</div>
  96. </div>
  97. </div>
  98. <!-- 拼团状态 -->
  99. <div class="layui-form-item" style="margin-bottom: 0;">
  100. <label class="layui-form-label"><font color="red">*</font>拼团状态:</label>
  101. <div class="layui-input-inline">
  102. <input type="radio" name="status" value="1" title="开启" {if $detail.status==1}checked{/if} disabled readonly>
  103. <input type="radio" name="status" value="0" title="关闭" {if $detail.status==0}checked{/if} disabled readonly>
  104. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">商品参与拼团营销活动的状态,停止活动则不能开启新团</div>
  105. </div>
  106. </div>
  107. <div class="layui-form-item layui-hide">
  108. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  109. </div>
  110. </div>
  111. </div>