|
@@ -291,8 +291,8 @@
|
|
|
{value:'13',name:'纤体减肥'}
|
|
|
],
|
|
|
params:{
|
|
|
- userID:10450,
|
|
|
- shopID:10087,
|
|
|
+ userID:'',
|
|
|
+ shopID:'',
|
|
|
townID:'',
|
|
|
provinceID: '',//省id
|
|
|
cityID: '',
|
|
@@ -337,10 +337,8 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- // this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
|
- // this.params.userID = resolve.userID;
|
|
|
- // this.params.shopID = resolve.shopID;
|
|
|
- // })
|
|
|
+ },
|
|
|
+ created() {
|
|
|
this.shopInfo();
|
|
|
},
|
|
|
methods:{
|
|
@@ -377,8 +375,11 @@
|
|
|
return _ARRAY
|
|
|
},
|
|
|
shopInfo(){
|
|
|
- // this.$api.getStorage().then((resolve) =>{
|
|
|
- this.ShopService.shopInfo({userId:10450}).then(response =>{
|
|
|
+ this.$api.getStorage().then((resolve) =>{
|
|
|
+ this.params.userID = resolve.userID;
|
|
|
+ this.params.shopID = resolve.shopID;
|
|
|
+ console.log(resolve)
|
|
|
+ this.ShopService.shopInfo({userId:this.params.userID}).then(response =>{
|
|
|
if(response.code==0){
|
|
|
console.log(response)
|
|
|
let shop = response.data.shop;
|
|
@@ -432,7 +433,7 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- // })
|
|
|
+ })
|
|
|
},
|
|
|
shopSubmit(){//提交修改
|
|
|
console.log(this.params);
|