Commit 2dfbcaa4 by ym

map

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