Commit a8a8842e by ym

pay

1 parent 7badefab
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
if (ua.match(/MicroMessenger/i) == 'micromessenger') { if (ua.match(/MicroMessenger/i) == 'micromessenger') {
payMannerId = 4; payMannerId = 4;
} else { } else {
payMannerId = 5; // 7 payMannerId = 5; // 5
} }
let para = { let para = {
orderCode, orderCode,
......
...@@ -178,7 +178,6 @@ export default { ...@@ -178,7 +178,6 @@ export default {
mixins: [indexMixin], mixins: [indexMixin],
mounted() { mounted() {
this.tabHideShow(1); this.tabHideShow(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"));
const ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger"){ if (ua.match(/MicroMessenger/i) == "micromessenger"){
...@@ -326,6 +325,7 @@ export default { ...@@ -326,6 +325,7 @@ export default {
let { nickName, logo } = this.$store.state; let { nickName, logo } = this.$store.state;
this.userInfo.nickName = nickName; this.userInfo.nickName = nickName;
this.userInfo.logo = logo; this.userInfo.logo = logo;
console.log(this.$store.state)
}, },
//设置用户信息--获取权益信息 //设置用户信息--获取权益信息
setUserInfo(data) { setUserInfo(data) {
...@@ -537,7 +537,6 @@ export default { ...@@ -537,7 +537,6 @@ export default {
if (ua.match(/MicroMessenger/i) != "micromessenger") { if (ua.match(/MicroMessenger/i) != "micromessenger") {
if (this.checkPhoneType() == 'ios') { if (this.checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:2,show:status})) window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:2,show:status}))
} else { } else {
window.myjs.jumpNativeApp(JSON.stringify({type:2,show:status})) window.myjs.jumpNativeApp(JSON.stringify({type:2,show:status}))
} }
......
...@@ -128,7 +128,6 @@ export default { ...@@ -128,7 +128,6 @@ export default {
}; };
}, },
mounted() { mounted() {
// this.listeningBack();
this.getOilNoList(); this.getOilNoList();
let longitude, latitude; let longitude, latitude;
if (this.$store.state.address.longitude) { if (this.$store.state.address.longitude) {
...@@ -147,26 +146,6 @@ export default { ...@@ -147,26 +146,6 @@ export default {
} }
}, },
methods: { methods: {
listeningBack() {
const path = window.vm.$store.state.prevPath;
window.onpopstate = null;
window.onpopstate = function () {
window.onpopstate = null;
history.pushState({}, null, window.location.href);
if (
path == "oilStation.location" ||
path == "oilStation.detail" ||
path == "oilStation.record"
) {
window.vm.$router.replace({ name: window.vm.$store.state.prevPath });
if (sessionStorage.getItem("common") == 1) {
window.vm.$router.replace({ name: "equity.index" });
} else {
window.vm.$router.replace({ name: "common.index" });
}
}
};
},
mapChange(e) { mapChange(e) {
AMap.plugin("AMap.Geocoder", () => { AMap.plugin("AMap.Geocoder", () => {
const geocoder = new AMap.Geocoder(); const geocoder = new AMap.Geocoder();
...@@ -203,7 +182,7 @@ export default { ...@@ -203,7 +182,7 @@ export default {
timeout: 10000, //超过10秒后停止定位,默认:5s timeout: 10000, //超过10秒后停止定位,默认:5s
buttonPosition: "RB", //定位按钮的停靠位置 buttonPosition: "RB", //定位按钮的停靠位置
buttonOffset: new AMap.Pixel(10, 20), //定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20) buttonOffset: new AMap.Pixel(10, 20), //定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
zoomToAccuracy: true, //定位成功后是否自动调整地图视野到定位点 zoomToAccuracy: false, //定位成功后是否自动调整地图视野到定位点
}); });
geolocation.getCurrentPosition(function (status, result) { geolocation.getCurrentPosition(function (status, result) {
if (status == "complete") { if (status == "complete") {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!