Commit a8a8842e by ym

pay

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