{"action":"created","issue":{"url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/16","repository_url":"https://api.github.com/repos/Dafrok/vue-baidu-map","labels_url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/16/comments","events_url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/16/events","html_url":"https://github.com/Dafrok/vue-baidu-map/issues/16","id":213957626,"number":16,"title":"拖动覆盖物dragend 回调不到数据","user":{"login":"qinyang1018","id":15726024,"avatar_url":"https://avatars1.githubusercontent.com/u/15726024?v=3","gravatar_id":"","url":"https://api.github.com/users/qinyang1018","html_url":"https://github.com/qinyang1018","followers_url":"https://api.github.com/users/qinyang1018/followers","following_url":"https://api.github.com/users/qinyang1018/following{/other_user}","gists_url":"https://api.github.com/users/qinyang1018/gists{/gist_id}","starred_url":"https://api.github.com/users/qinyang1018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qinyang1018/subscriptions","organizations_url":"https://api.github.com/users/qinyang1018/orgs","repos_url":"https://api.github.com/users/qinyang1018/repos","events_url":"https://api.github.com/users/qinyang1018/events{/privacy}","received_events_url":"https://api.github.com/users/qinyang1018/received_events","type":"User","site_admin":false},"labels":[{"id":515743791,"url":"https://api.github.com/repos/Dafrok/vue-baidu-map/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-03-14T03:17:57Z","updated_at":"2017-03-14T07:52:17Z","closed_at":"2017-03-14T03:44:27Z","body":"```\r\n  <el-form-item label=\"地图\">\r\n            <baidu-map class=\"map\" :center=\"{lng: lng, lat:lat}\" :zoom=\"16\" @ready=\"loadMap\">\r\n                <bm-view style=\"position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px\"></bm-view>\r\n                <bm-marker :point=\"{lng:lng, lat:lat}\" :dragging=\"true\" animation=\"BMAP_ANIMATION_BOUNCE\" :label=\"{content: data.name, opts: {offset: {width: 20, height: -10}}}\" @dragend=\"dragend\"></bm-marker>\r\n                <bm-geolocation anchor=\"BMAP_ANCHOR_BOTTOM_RIGHT\" :showAddressBar=\"true\" :autoLocation=\"true\" />\r\n                <bm-navigation anchor=\"BMAP_ANCHOR_TOP_LEFT\" />\r\n            </baidu-map>\r\n        </el-form-item>\r\n```\r\n```\r\n methods: {\r\n            searchMap: function() {\r\n\r\n            },\r\n            loadMap: function() {\r\n                var map = this.data.location.split(',');\r\n                this.lat = map[0];\r\n                this.lng = map[1];\r\n            },\r\n             dragend: function(type, target, pixel, point) {\r\n              console.log(type+\"----\"+target+\"----\"+pixel+\"----\"+point);\r\n            }\r\n\r\n        },\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/15726024/23884484/ddcd18bc-08a7-11e7-82f6-836b030dea2c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/comments/286346611","html_url":"https://github.com/Dafrok/vue-baidu-map/issues/16#issuecomment-286346611","issue_url":"https://api.github.com/repos/Dafrok/vue-baidu-map/issues/16","id":286346611,"user":{"login":"qinyang1018","id":15726024,"avatar_url":"https://avatars1.githubusercontent.com/u/15726024?v=3","gravatar_id":"","url":"https://api.github.com/users/qinyang1018","html_url":"https://github.com/qinyang1018","followers_url":"https://api.github.com/users/qinyang1018/followers","following_url":"https://api.github.com/users/qinyang1018/following{/other_user}","gists_url":"https://api.github.com/users/qinyang1018/gists{/gist_id}","starred_url":"https://api.github.com/users/qinyang1018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qinyang1018/subscriptions","organizations_url":"https://api.github.com/users/qinyang1018/orgs","repos_url":"https://api.github.com/users/qinyang1018/repos","events_url":"https://api.github.com/users/qinyang1018/events{/privacy}","received_events_url":"https://api.github.com/users/qinyang1018/received_events","type":"User","site_admin":false},"created_at":"2017-03-14T07:52:17Z","updated_at":"2017-03-14T07:52:17Z","body":"```\r\nmethods: {\r\n            searchMap: function() {\r\n\r\n            },\r\n            loadMap: function() {\r\n                console.log(this.$route.query.venueData);\r\n                this.data = JSON.parse(this.$route.query.venueData);\r\n                this.value = this.data.inUse == 1 ? true : false;\r\n                console.log(this.lat + \"---\" + this.lng);\r\n                console.log(\"=====\")\r\n                console.log(this.data)\r\n                var map = this.data.location.split(',');\r\n                // this.lat = map[0];\r\n                // this.lng = map[1];\r\n                 this.lat = '39.915';\r\n                this.lng = '116.404';\r\n\r\n            },\r\n            dragend: function(type, target, pixel, point) {\r\n                console.log(type + \"----\" + target + \"----\" + pixel + \"----\" + point);\r\n            }\r\n\r\n        },\r\n```\r\n写成固定的值也不行，还是没有marker\r\n![image](https://cloud.githubusercontent.com/assets/15726024/23890762/28a5205c-08ce-11e7-9418-4678ac2a7472.png)\r\n"}}
{"actor":{"display_login":"qinyang1018"}}