Browse Source

凌云集团更改公司

peiguo 5 years ago
parent
commit
b11e415b19

+ 12 - 10
whepi-ui/templates/user/location.ftl

@@ -75,17 +75,19 @@
         wx.getLocation({
             type: 'wgs84',
             success: function (res) {
-                var geocoder = new qq.maps.Geocoder({
-                    complete: function (result) {
-                        // alert(result.detail.addressComponents.district)
-                        // alert(JSON.stringify(result.detail.address))
-                        window.location.href = "${url}" + res.longitude + "%2C" + res.latitude + "%26address%3D" + result.detail.address + "${moreUrl}";
-                    }
-                })
+                <#--var geocoder = new qq.maps.Geocoder({-->
+                <#--    complete: function (result) {-->
+                <#--        // alert(result.detail.addressComponents.district)-->
+                <#--        // alert(JSON.stringify(result.detail.address))-->
+                <#--        window.location.href = "${url}" + res.longitude + "%2C" + res.latitude + "%26address%3D" + result.detail.address + "${moreUrl}";-->
+                <#--    }-->
+                <#--})-->
 
-                var coord = new qq.maps.LatLng(res.latitude, res.longitude)
-                // alert(coord);
-                geocoder.getAddress(coord)
+                <#--var coord = new qq.maps.LatLng(res.latitude, res.longitude)-->
+                <#--// alert(coord);-->
+                <#--geocoder.getAddress(coord)-->
+
+              window.location.href = "${url}" + res.longitude + "%2C" + res.latitude + "%26address%3D" + "${moreUrl}";
                 // alert(JSON.stringify(coord));
                 <#--window.location.href = "${url}" + res.longitude + "%2C" + res.latitude + "${moreUrl}";-->
             },

+ 1 - 1
whepi-web/src/main/java/com/bofeng/wx/controller/ScanController.java

@@ -84,7 +84,7 @@ public class ScanController {
     public ModelAndView scan(HttpServletRequest request, ModelMap model, @RequestParam(value = "doorId", required = false, defaultValue = "0") Long doorId,
                              @RequestParam(value = "inType", required = false, defaultValue = "0") Integer inType,
                              @RequestParam(value = "coord", required = false, defaultValue = "") String coord,
-                             @RequestParam(value = "address", required = false, defaultValue = "") String address) throws ParseException, UnsupportedEncodingException {
+                             @RequestParam(value = "address", defaultValue = "") String address) throws ParseException, UnsupportedEncodingException {
         UserOpen userOpen = homeService.getUserOpenByCode(request.getParameter("code"));
         List<UserRole> list = userRoleMapper.getUserRoleByUserId(userOpen.getUserId());
 //        List<UserRole> list = userRoleMapper.getUserRoleByUserId(1228565481837944834L);