浏览代码

首页配置视频修改

zhanglinxin 2 年之前
父节点
当前提交
0c28a6fe88
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      application/store/view/home/index-privacy-index.html

+ 9 - 6
application/store/view/home/index-privacy-index.html

@@ -31,19 +31,19 @@
         <div class="layui-form-item">
             <label class="layui-form-label label-required">视频一</label>
             <div class="layui-input-block">
-                <input name="url1" type="hidden" value="{$data.url1|default=''}">
+                <input name="url1" type="hidden" value="{$data.url1|default=''}" data-type="gif">
             </div>
         </div>
         <div class="layui-form-item">
             <label class="layui-form-label label-required">视频二</label>
             <div class="layui-input-block">
-                <input name="url2" type="hidden" value="{$data.url2|default=''}">
+                <input name="url2" type="hidden" value="{$data.url2|default=''}" data-type="gif">
             </div>
         </div>
         <div class="layui-form-item">
             <label class="layui-form-label label-required">视频三</label>
             <div class="layui-input-block">
-                <input name="url3" type="hidden" value="{$data.url3|default=''}">
+                <input name="url3" type="hidden" value="{$data.url3|default=''}" data-type="gif">
             </div>
         </div>
         <div class="layui-form-item">
@@ -88,9 +88,12 @@
     </script>
     <script>
         window.form.render();
-        $('[name="url1"]').uploadOneVideo();
-        $('[name="url2"]').uploadOneVideo();
-        $('[name="url3"]').uploadOneVideo();
+        // $('[name="url1"]').uploadOneVideo();
+        // $('[name="url2"]').uploadOneVideo();
+        // $('[name="url3"]').uploadOneVideo();
+        $('[name="url1"]').uploadOneImage();
+        $('[name="url2"]').uploadOneImage();
+        $('[name="url3"]').uploadOneImage();
     </script>
 </form>