From bffb180ee82774f8503567b5a01ce7e9f35ca506 Mon Sep 17 00:00:00 2001
From: hdw <hdw@192.168.7.127>
Date: 星期二, 15 一月 2019 16:33:45 +0800
Subject: [PATCH] 手机端上传图片添加水印

---
 gx_tieta/WebRoot/mobil/iframe/homeinfo1.html |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/iframe/homeinfo1.html b/gx_tieta/WebRoot/mobil/iframe/homeinfo1.html
index 43456d8..7e00195 100644
--- a/gx_tieta/WebRoot/mobil/iframe/homeinfo1.html
+++ b/gx_tieta/WebRoot/mobil/iframe/homeinfo1.html
@@ -425,15 +425,10 @@
 			var uploadImgsLoad;
 			var uploadImgs = upload.render({
     			elem: '#imgsSelect'
-    			,url: 'MyFileAction!uploadStationFile'
+    			,url: 'MyFileAction!uploadStationFile_mobile'
     			,accept: 'image'
 			    ,multiple: true
-			    ,data: {
-                    json:JSON.stringify( {
-                        StationId: homeInfo.homeId,
-                        VideoOrImage: 'image'
-                    })
-                }
+			    ,data:{} 
 			    ,auto: false
 			    ,bindAction: '#uploadImgs'
 			    ,choose: function(obj){
@@ -466,8 +461,20 @@
 				        imgsInfo.append(tr);
       				});
 			    }
-			    ,before:function() {
+			    ,before:function(obj) {
 			    	uploadImgsLoad = layer.load(1);
+			    	// 璁剧疆鎻愪氦鐨勫弬鏁�
+			    	this.data.json = JSON.stringify({
+	                        StationId: homeInfo.homeId
+	                        ,VideoOrImage: 'image'
+	                        ,binfmation: {
+	                        	StationId: homeInfo.homeId
+	                        	,StationName: $('#homeName').val()
+	                        	,latitude: $('#lat').val()	// 绾害
+	                        	,longitude: $('#lng').val()	// 缁忓害
+	                        	,Address: $('#addr').val()				// 鍦板潃
+	                        }
+	                    })
 			    }
 			    ,done:function(res) {
 			    	var rs = JSON.parse(res.result);

--
Gitblit v1.9.1