截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

set.html 5.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-item .layui-form-label { width: 95px; }
  4. .layui-form-item .layui-input-inline { width: 240px; }
  5. </style>
  6. <div class="layui-card layui-form" style="box-shadow:none;">
  7. <div class="layui-card-body">
  8. <div class="layui-form-item" style="display: none;">
  9. <label class="layui-form-label">推荐商家:</label>
  10. <div class="layui-input-inline">
  11. <input type="radio" name="is_recommend" value="1" title="是" {if $detail.is_recommend}checked{/if}>
  12. <input type="radio" name="is_recommend" value="0" title="否" {if !$detail.is_recommend}checked{/if}>
  13. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">商城首页会显示推荐的商家</div>
  14. </div>
  15. </div>
  16. <div class="layui-form-item" style="display: none;">
  17. <label class="layui-form-label">分销功能:</label>
  18. <div class="layui-input-inline">
  19. <input type="radio" name="is_distribution" value="1" title="是" {if $detail.is_distribution}checked{/if}>
  20. <input type="radio" name="is_distribution" value="0" title="否" {if !$detail.is_distribution}checked{/if}>
  21. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">开启或关闭分销功能,关闭后商家不参与分销推广</div>
  22. </div>
  23. </div>
  24. <div class="layui-form-item" style="display: none;">
  25. <label class="layui-form-label">支付功能:</label>
  26. <div class="layui-input-inline">
  27. <input type="radio" name="is_pay" value="1" title="开启" {if $detail.is_pay}checked{/if}>
  28. <input type="radio" name="is_pay" value="0" title="关闭" {if !$detail.is_pay}checked{/if}>
  29. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">默认开启,关闭时商品详情则显示咨询商家按钮</div>
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <label for="cid" class="layui-form-label"><span style="color:red;">*</span>服务套餐:</label>
  34. <div class="layui-input-inline">
  35. <select name="tid" id="tid" lay-verType="tips" lay-verify="tid" switch-tab="0">
  36. <option value=""></option>
  37. {volist name="goods_list" id="vo"}
  38. <option value="{$vo.id}" {if $vo.id == $detail.tid}selected{/if}>{$vo.name}</option>
  39. {/volist}
  40. </select>
  41. </div>
  42. </div>
  43. <!--detail-->
  44. <div class="layui-form-item">
  45. <label for="expire_time" class="layui-form-label"><span style="color:red;">*</span>使用场景:</label>
  46. <div class="layui-input-inline">
  47. <input type="radio" name="type" value="0" title="增加" checked>
  48. <input type="radio" name="type" value="1" title="减少">
  49. </div>
  50. </div>
  51. {if $detail.hksy_type == 0}
  52. <!--包月-->
  53. <div class="layui-form-item">
  54. <label for="expire_time" class="layui-form-label"><span style="color:red;">*</span>操作类型:</label>
  55. <div class="layui-input-inline">
  56. <input type="radio" name="mouth" value="0" title="月份" checked>
  57. <input type="radio" name="mouth" value="1" title="天数">
  58. </div>
  59. </div>
  60. <div class="layui-form-item hksy_type_item2">
  61. <label for="months" class="layui-form-label"><span style="color:red;">*</span>赠送数量:</label>
  62. <div class="layui-input-inline">
  63. <input type="number" name="number" id="months" value="0" lay-verType="tips"
  64. lay-verify="months" switch-tab="1" autocomplete="off" class="layui-input">
  65. </div>
  66. </div>
  67. {else/}
  68. <!--按量付费-->
  69. <div class="layui-form-item hksy_type_item">
  70. <label for="hksy_count" class="layui-form-label"><span style="color:red;">*</span>赠送评论数:</label>
  71. <div class="layui-input-inline">
  72. <input type="number" name="number" id="hksy_count" value="1000" lay-verType="tips"
  73. lay-verify="hksy_count" switch-tab="1" autocomplete="off" class="layui-input">
  74. </div>
  75. </div>
  76. {/if}
  77. <div class="layui-form-item">
  78. <label for="weight" class="layui-form-label"><span style="color:red;">*</span>排序权重:</label>
  79. <div class="layui-input-inline">
  80. <input type="number" name="weight" id="weight" value="{$detail.weight}" lay-verType="tips" lay-verify="require|number"
  81. switch-tab="0" autocomplete="off" class="layui-input">
  82. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">商品排序权重,数字越小排序越前,权重越大</div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="layui-form-item layui-hide">
  87. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  88. </div>
  89. </div>