截流自动化的商城平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.html 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {layout name="layout1" /}
  2. <div class="wrapper">
  3. <div class="layui-card layui-form">
  4. <!-- 操作提示 -->
  5. <div class="layui-card-body">
  6. <div class="layui-card-body">
  7. <div class="layui-collapse like-layui-collapse" style="border:1px dashed #c4c4c4">
  8. <div class="layui-colla-item">
  9. <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
  10. <div class="layui-colla-content layui-show">
  11. <p>*设置参与拼团活动的商品。</p>
  12. <p>*用户退出拼团,需商家后台审核通过之后,方可原路退回支付金额</p>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. <!-- 内容 -->
  19. <div class="layui-card-body">
  20. <div class="layui-form-item" style="margin-bottom: 0;">
  21. <label class="layui-form-label" style="width:110px;"><font color="red">*</font>系统自动成团:</label>
  22. <div class="layui-input-inline">
  23. <input type="radio" name="automatic" value="1" title="开始" {if $automatic==1}checked{/if}>
  24. <input type="radio" name="automatic" value="0" title="关闭" {if $automatic==0}checked{/if}>
  25. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">开启系统自动成团后,成团有效期结束后自动成团</div>
  26. </div>
  27. </div>
  28. <div class="layui-form-item">
  29. <label class="layui-form-label"></label>
  30. <div class="layui-input-block">
  31. <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="addSubmit">确定</button>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <script>
  38. layui.use(['form'], function () {
  39. var form = layui.form;
  40. form.on('submit(addSubmit)', function(data){
  41. like.ajax({
  42. url:'{:url("team.Setting/set")}',
  43. data: data.field,
  44. type: "post",
  45. success:function(res) {
  46. if(res.code === 1) {
  47. layui.layer.msg(res.msg, { offset:'15px', icon:1, time:1000 });
  48. location.reload();
  49. } else {
  50. layui.layer.msg(res.msg, { offset:'15px', icon:2, time:1000 });
  51. }
  52. }
  53. });
  54. return false;
  55. });
  56. })
  57. </script>