Commit 2dfbcaa4 by ym

map

1 parent d5079728
...@@ -8,7 +8,7 @@ const pages = { ...@@ -8,7 +8,7 @@ const pages = {
{name: 'loss', title: '整车全损',showNavBar: true}, {name: 'loss', title: '整车全损',showNavBar: true},
], ],
oilStation: [ oilStation: [
{name: 'index'}, {name: 'index',showNavBar: true},
{name: 'record', title: '加油记录',showNavBar: true}, {name: 'record', title: '加油记录',showNavBar: true},
{name: 'detail', title: '加油站详情',showNavBar: true}, {name: 'detail', title: '加油站详情',showNavBar: true},
{name: 'location', title: '选择位置',showNavBar: true}, {name: 'location', title: '选择位置',showNavBar: true},
......
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
}, },
mixins: [indexMixin], mixins: [indexMixin],
mounted() { mounted() {
this.getMapLocation();
this.tabHideShow(1); this.tabHideShow(1);
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:2,show:1})) window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:2,show:1}))
console.log("更新页面时间:", new Date().format("hh:mm:ss")); console.log("更新页面时间:", new Date().format("hh:mm:ss"));
...@@ -186,6 +185,7 @@ export default { ...@@ -186,6 +185,7 @@ export default {
this.isWXEnvironment = true this.isWXEnvironment = true
}else{ }else{
this.isWXEnvironment = false this.isWXEnvironment = false
this.getMapLocation();
} }
// 标记已受过权,状态变为false,下次领取页需要重新授权 // 标记已受过权,状态变为false,下次领取页需要重新授权
this.setLocalStorage("codeAuth", false); this.setLocalStorage("codeAuth", false);
...@@ -221,6 +221,7 @@ export default { ...@@ -221,6 +221,7 @@ export default {
address: result.formattedAddress, address: result.formattedAddress,
cityCode: result.addressComponent.adcode, cityCode: result.addressComponent.adcode,
}; };
self.$store.commit("setAddress", self.addressInfo);
} else { } else {
self.showToast("获取定位失败"); self.showToast("获取定位失败");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!