|
|
@@ -392,18 +392,26 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
- this.initSelect();
|
|
|
- this.tabVal = '1';
|
|
|
- if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
|
|
|
- this.mapShows = false;
|
|
|
+ // 是否从下单成功页面跳转过来
|
|
|
+ let id = localStorage.getItem('successStoreId');
|
|
|
+ if (this.$route.query.source == 'successPage' && id) {
|
|
|
+ // 跳转到详情页
|
|
|
+ this.storeDetailFn(id);
|
|
|
+ localStorage.removeItem('successStoreId');
|
|
|
} else {
|
|
|
- this.mapShows = true;
|
|
|
+ this.initSelect();
|
|
|
+ this.tabVal = '1';
|
|
|
+ if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
|
|
|
+ this.mapShows = false;
|
|
|
+ } else {
|
|
|
+ this.mapShows = true;
|
|
|
+ }
|
|
|
+ this.getStoreTypeList();
|
|
|
+ this.getstoreCoverPosition();
|
|
|
+ this.getStreetQuery();
|
|
|
+ this.getMonth();
|
|
|
+ this.onSearch();
|
|
|
}
|
|
|
- this.getStoreTypeList();
|
|
|
- this.getstoreCoverPosition();
|
|
|
- this.getStreetQuery();
|
|
|
- this.getMonth();
|
|
|
- this.onSearch();
|
|
|
},
|
|
|
// created() {
|
|
|
// },
|
|
|
@@ -845,7 +853,7 @@ export default {
|
|
|
this.$router.push('/storeAdd');
|
|
|
},
|
|
|
onClickLeft() {
|
|
|
- this.$router.go(-1);
|
|
|
+ this.$router.push('/My/index');
|
|
|
},
|
|
|
onSearch() {
|
|
|
window.scrollTo(0, 0);
|