jason.lu 6 lat temu
rodzic
commit
7c6e06f118
1 zmienionych plików z 20 dodań i 0 usunięć
  1. 20 0
      sourcecode/h5app/vue/src/connector/simple-demo.js

+ 20 - 0
sourcecode/h5app/vue/src/connector/simple-demo.js

@@ -273,5 +273,25 @@ smartOrder/list
 [{"id":28,"userId":3,"paymentId":0,"deliveryId":0,"merchandise":"[{\"q\":1,\"model\":1,\"id\":\"3\",\"spec\":[{\"v\":\"100\",\"i\":1002}]},{\"q\":1,\"model\":1,\"id\":\"6\",\"spec\":[{\"v\":\"350\",\"i\":1002}]}]","status":2,"payStatus":2,"distributionStatus":0,"dueAmount":25.11,"paidAmount":0.0,"taxes":0.0,"payableFreight":0.0,"realFreight":0.0,"payFee":0.0,"promotions":0.49,"discount":1.0,"orderAmount":25.6,"payTime":"2017-12-23 10:38:20","sendTime":"2017-12-23 10:38:20","createTime":"2017-12-23 10:38:20","completionTime":"2017-12-23 10:38:20","acceptTime":"0","invoice":0,"invoiceTitle":"empty","postscript":"","note":"","prop":"{\"wechat\":1}","exp":0,"point":0,"type":1}]
 
 
+
+*************
+* // 第一阶段: 上传文件到fileServerURL
+function fileServerDeal(lst, fileServerURL, lstId) {
+    uploadParams.uploadURI = fileServerURL;
+    var formData = new FormData();
+    upload_status_report("正在上传 - 第"+(lstId+1)+"个文件", (lstId + 1) +" / "+ lst.length);
+    formData.append('file', $('#fileInput_'+lst[lstId])[0].files[0]);
+    $.ajax({
+        url: fileServerURL,
+        type: 'POST',
+        cache: false,
+        data: formData,
+        processData: false,
+        contentType: false,
+        now_list_id: lstId,
+        now_lst:lst
+    }).always(fileServerRet);
+}
+
  */