|
@@ -11,6 +11,7 @@ var app = new Vue({
|
|
|
cates: [],
|
|
cates: [],
|
|
|
// 二级分类数据
|
|
// 二级分类数据
|
|
|
subCates: [],
|
|
subCates: [],
|
|
|
|
|
+ addressData: {},
|
|
|
map: null,
|
|
map: null,
|
|
|
},
|
|
},
|
|
|
created: function () {
|
|
created: function () {
|
|
@@ -67,10 +68,8 @@ var app = new Vue({
|
|
|
gc.getLocation(e.point, function(rs){
|
|
gc.getLocation(e.point, function(rs){
|
|
|
var addComp = rs.addressComponents;
|
|
var addComp = rs.addressComponents;
|
|
|
var address = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber;//获取地址
|
|
var address = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber;//获取地址
|
|
|
- _this.shopInfo.address = address;
|
|
|
|
|
- alert(address+'++');
|
|
|
|
|
- console.log(_this.shopInfo)
|
|
|
|
|
- console.log(addComp)
|
|
|
|
|
|
|
+ _this.addressData = addComp;
|
|
|
|
|
+ _this.addressData.address = address;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -78,6 +77,10 @@ var app = new Vue({
|
|
|
hideMap: function(){
|
|
hideMap: function(){
|
|
|
$.closePopup();
|
|
$.closePopup();
|
|
|
},
|
|
},
|
|
|
|
|
+ selectPoint: function(){
|
|
|
|
|
+ $.closePopup();
|
|
|
|
|
+ this.shopInfo.address = this.addressData.address;
|
|
|
|
|
+ },
|
|
|
// 获取申请信息
|
|
// 获取申请信息
|
|
|
getShopInfo: function(){
|
|
getShopInfo: function(){
|
|
|
var _this = this;
|
|
var _this = this;
|