wupengfei 1 年之前
父节点
当前提交
0be6b9eef8
共有 2 个文件被更改,包括 22 次插入3 次删除
  1. 3 3
      .idea/workspace.xml
  2. 19 0
      application/synth/view/bill_apply/form.html

+ 3 - 3
.idea/workspace.xml

@@ -327,7 +327,7 @@
       <workItem from="1684543423796" duration="10653000" />
       <workItem from="1684716593546" duration="15730000" />
       <workItem from="1684743465298" duration="6526000" />
-      <workItem from="1684802887863" duration="10443000" />
+      <workItem from="1684802887863" duration="10684000" />
     </task>
     <servers />
   </component>
@@ -485,10 +485,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state x="1166" y="605" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/0.0.2560.1400@0.0.2560.1400" timestamp="1683268554421" />
-    <state x="1031" y="369" width="1218" height="604" key="find.popup" timestamp="1684821420755">
+    <state x="1031" y="369" width="1218" height="604" key="find.popup" timestamp="1684824705284">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
-    <state x="1031" y="369" width="1218" height="604" key="find.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1684821420755" />
+    <state x="1031" y="369" width="1218" height="604" key="find.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1684824705284" />
     <state x="1282" y="549" key="ftp.server.browser" timestamp="1684465678841">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>

+ 19 - 0
application/synth/view/bill_apply/form.html

@@ -98,3 +98,22 @@
 
     </div>
 </div>
+<script>
+    layui.use(['upload', 'element', 'layer'], function(){
+        var $ = layui.jquery
+            ,upload = layui.upload
+            ,element = layui.element
+            ,layer = layui.layer;
+        upload.render({
+            elem: '#test3',
+            url: '/api/upload/upload', //此处用的是第三方的 http 请求演示,实际使用时改成您自己的上传接口即可。,accept: 'file', //普通文件,
+            accept: 'file', //普通文件,
+            done: function(res){
+                if(res.code == 1){
+                    $("input[name='bill_img']").val(res.data);
+                }
+                layer.msg(res.msg);
+            }
+        });
+    });
+</script>