|
|
@@ -2,7 +2,7 @@ var app = new Vue({
|
|
|
el: '#app',
|
|
|
data: {
|
|
|
submitStatus: false,
|
|
|
- shopInfo: {status: 0},
|
|
|
+ shopInfo: {status: 1, address: ''},
|
|
|
// 会员信息
|
|
|
memberInfo: {},
|
|
|
// 提交状态
|
|
|
@@ -57,8 +57,7 @@ var app = new Vue({
|
|
|
mark.addEventListener("dragend", showInfo);
|
|
|
mark.enableDragging(); //可拖拽
|
|
|
|
|
|
- _this.shopInfo.lng = e.point.lng;
|
|
|
- _this.shopInfo.lat = e.point.lat;
|
|
|
+
|
|
|
});
|
|
|
|
|
|
// 获取地址信息
|
|
|
@@ -70,6 +69,8 @@ var app = new Vue({
|
|
|
var address = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber;//获取地址
|
|
|
_this.addressData = addComp;
|
|
|
_this.addressData.address = address;
|
|
|
+ _this.addressData.lng = e.point.lng;
|
|
|
+ _this.addressData.lat = e.point.lat;
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -80,6 +81,9 @@ var app = new Vue({
|
|
|
selectPoint: function(){
|
|
|
$.closePopup();
|
|
|
this.shopInfo.address = this.addressData.address;
|
|
|
+ this.shopInfo.lng = this.addressData.lng;
|
|
|
+ this.shopInfo.lat = this.addressData.lat;
|
|
|
+ $("#address").append(JSON.stringify(this.addressData));
|
|
|
alert(this.addressData.address);
|
|
|
},
|
|
|
// 获取申请信息
|