截流自动化的商城平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

add.html 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form-label {
  4. width: 120px;
  5. }
  6. .layui-input-block{
  7. margin-left:150px;
  8. }
  9. </style>
  10. <div class="layui-card layui-form">
  11. <div class="layui-card-body">
  12. <!-- 直播间标题 -->
  13. <div class="layui-form-item">
  14. <label for="name" class="layui-form-label" ><font color="red">*</font>直播间标题:</label>
  15. <div class="layui-input-inline">
  16. <input type="text" id="name" name="name" placeholder="填写本次直播的标题"
  17. class="layui-input" autocomplete="off" lay-verType="tips" lay-verify="required">
  18. </div>
  19. </div>
  20. <!--直播类型-->
  21. <div class="layui-form-item">
  22. <label class="layui-form-label" ><font color="red">*</font>直播类型:</label>
  23. <div class="layui-input-block">
  24. <input type="radio" name="type" value="0" title="手机直播" checked>
  25. </div>
  26. <div class="layui-form-mid layui-word-aux">通过“小程序直播”开播</div>
  27. </div>
  28. <!-- 开播时间 -->
  29. <div class="layui-form-item">
  30. <label for="startTime" class="layui-form-label" ><font color="red">*</font>开播时间:</label>
  31. <div class="layui-input-inline">
  32. <input type="text" id="startTime" name="start_time" placeholder="填写直播开始时间"
  33. class="layui-input" autocomplete="off" lay-verType="tips" lay-verify="required" readonly>
  34. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">填写直播开始时间,开播时间需要在当前时间的10分钟后并且不能在6个月后</div>
  35. </div>
  36. </div>
  37. <!-- 结束时间 -->
  38. <div class="layui-form-item">
  39. <label for="endTime" class="layui-form-label" ><font color="red">*</font>结束时间:</label>
  40. <div class="layui-input-inline">
  41. <input type="text" id="endTime" name="end_time" class="layui-input" placeholder="直播结束时间"
  42. autocomplete="off" lay-verType="tips" lay-verify="required" readonly>
  43. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">开播时间和结束时间间隔不得短于30分钟,不得超过24小时</div>
  44. </div>
  45. </div>
  46. <!-- 主播昵称 -->
  47. <div class="layui-form-item">
  48. <label for="anchor_name" class="layui-form-label" ><font color="red">*</font>主播昵称:</label>
  49. <div class="layui-input-inline">
  50. <input type="text" id="anchor_name" name="anchor_name" placeholder="填写本次直播的主播昵称"
  51. class="layui-input" autocomplete="off" lay-verType="tips" lay-verify="required">
  52. </div>
  53. </div>
  54. <!-- 主播微信账号 -->
  55. <div class="layui-form-item">
  56. <label for="anchor_wechat" class="layui-form-label" ><font color="red">*</font>主播微信号:</label>
  57. <div class="layui-input-inline">
  58. <input type="text" id="anchor_wechat" name="anchor_wechat" placeholder="填写本次直播的主播微信号"
  59. class="layui-input" autocomplete="off" lay-verType="tips" lay-verify="required">
  60. <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">每个直播间需要绑定主播微信号,用以核实主播身份,不会展示给观众。</div>
  61. </div>
  62. </div>
  63. <!-- 分享卡片封面 -->
  64. <div class="layui-form-item">
  65. <label class="layui-form-label"><font color="red">*</font>分享卡片封面:</label>
  66. <div class="layui-input-block">
  67. <div class="like-upload-image " switch-tab="0" lay-verType="tips">
  68. <div class="upload-image-elem"><a class="add-upload-image upload-share-img"> + 添加</a></div>
  69. </div>
  70. <div class="layui-form-mid layui-word-aux">用户在微信对话框内分享的直播间将以分享卡片的形式呈现。 建议尺寸:800像素 * 640像素,图片大小不得超过1M</div>
  71. </div>
  72. </div>
  73. <!-- 直播卡片封面 -->
  74. <div class="layui-form-item">
  75. <label class="layui-form-label"><font color="red">*</font>直播卡片封面:</label>
  76. <div class="layui-input-block">
  77. <div class="like-upload-image " switch-tab="0" lay-verType="tips">
  78. <div class="upload-image-elem"><a class="add-upload-image upload-feeds-img"> + 添加</a></div>
  79. </div>
  80. <div class="layui-form-mid layui-word-aux">图片建议大小为 800像素 * 800像素。图片大小不超过300KB。 图片内容遵循平台规范后更容易被推荐。</div>
  81. </div>
  82. </div>
  83. <!-- 直播间背景墙 -->
  84. <div class="layui-form-item">
  85. <label class="layui-form-label"><font color="red">*</font>直播间背景墙:</label>
  86. <div class="layui-input-block">
  87. <div class="like-upload-image " switch-tab="0" lay-verType="tips">
  88. <div class="upload-image-elem"><a class="add-upload-image upload-cover-img"> + 添加</a></div>
  89. </div>
  90. <div class="layui-form-mid layui-word-aux">直播间背景墙是每个直播间的默认背景。 建议尺寸:600像素 * 1300像素,图片大小不得超过3M</div>
  91. </div>
  92. </div>
  93. <!-- 直播间功能-->
  94. <div class="layui-form-item">
  95. <label class="layui-form-label" >直播间功能:</label>
  96. <div class="layui-input-block">
  97. <input type="checkbox" name="close_like" lay-skin="primary" title="开启点赞" checked>
  98. <input type="checkbox" name="close_goods" lay-skin="primary" title="开启货架" checked>
  99. <input type="checkbox" name="close_comment" lay-skin="primary" title="开启评论" checked>
  100. <input type="checkbox" name="close_replay" lay-skin="primary" title="开启回放" checked>
  101. <input type="checkbox" name="close_share" lay-skin="primary" title="开启分享" checked>
  102. <input type="checkbox" name="close_kf" lay-skin="primary" title="开启客服" checked>
  103. <input type="checkbox" name="is_feeds_public" lay-skin="primary" title="开启官方收录">
  104. </div>
  105. </div>
  106. <div class="layui-form-item layui-hide">
  107. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  108. </div>
  109. </div>
  110. </div>
  111. <script>
  112. layui.use(['table', 'form', 'laydate', 'element'], function () {
  113. var $ = layui.$
  114. ,form = layui.form
  115. ,laydate = layui.laydate
  116. ,element = layui.element;
  117. // 时间组件
  118. laydate.render({type:'datetime' ,elem:'#startTime', trigger:'click'});
  119. laydate.render({type:'datetime' ,elem:'#endTime' ,trigger: 'click'});
  120. like.delUpload();
  121. // 分享卡片封面
  122. $(document).on("click", ".upload-share-img", function () {
  123. like.imageUpload({
  124. limit: 1,
  125. field: "share_img",
  126. that: $(this),
  127. content: '/shop/file/lists?type=10',
  128. });
  129. });
  130. // 直播封面
  131. $(document).on("click", ".upload-feeds-img", function () {
  132. like.imageUpload({
  133. limit: 1,
  134. field: "feeds_img",
  135. that: $(this),
  136. content: '/shop/file/lists?type=10',
  137. });
  138. });
  139. // 直播背景
  140. $(document).on("click", ".upload-cover-img", function () {
  141. like.imageUpload({
  142. limit: 1,
  143. field: "cover_img",
  144. that: $(this),
  145. content: '/shop/file/lists?type=10',
  146. });
  147. });
  148. });
  149. </script>