|
@@ -7,6 +7,7 @@ import { lbsDictionary } from '@/common/js/BaseDictionary';
|
|
|
import uni from './uniHooks';
|
|
|
import {Dialog} from "vant";
|
|
|
import kipTheme from "@/kui/theme/theme";
|
|
|
+import Vue from 'vue';
|
|
|
|
|
|
export function getMobileOperatingSystem() {
|
|
|
// #ifdef H5
|
|
@@ -162,7 +163,7 @@ export function wxToLoginCallback( path,callback ) {
|
|
|
});
|
|
|
window.subscribe('callback',( options ) => {
|
|
|
// console.log('登录页面的回调',JSON.stringify(options));
|
|
|
- if ( options.isReload || isAlipayClient && options?.options?.isReload) {
|
|
|
+ if ( options.isReload || Vue.prototype.isAlipayClient && options?.options?.isReload) {
|
|
|
// console.log('刷新页面');
|
|
|
window.location.reload();
|
|
|
} else {
|
|
@@ -269,7 +270,7 @@ export function getUrl() {
|
|
|
export function windowSendInit() {
|
|
|
const token = window.token;
|
|
|
window.toWXSendMsg = function ( {type = '',funcName = '',options = {}} ) {
|
|
|
- if(isAlipayClient) {
|
|
|
+ if(Vue.prototype.isAlipayClient) {
|
|
|
my.postMessage({
|
|
|
name:'h5',
|
|
|
body: {
|
|
@@ -306,7 +307,7 @@ export function windowSendInit() {
|
|
|
|
|
|
// 主动订阅事件回调
|
|
|
window.subscribe = function ( type,callback ) {
|
|
|
- if(isAlipayClient) {
|
|
|
+ if(Vue.prototype.isAlipayClient) {
|
|
|
my.onMessage = function (response) {
|
|
|
console.log('293my.onMessage', response)
|
|
|
callback(response.body.data);
|
|
@@ -410,7 +411,7 @@ export function backLbsHome() {
|
|
|
url: source === 'KIP' ? '/pages/tabbar/home/home' : "/pages/package-parkingFee/parkingFeeWebViewLogin?needLogin=1" // 去 login 页面
|
|
|
})
|
|
|
}
|
|
|
- if (isAlipayClient) {
|
|
|
+ if (Vue.prototype.isAlipayClient) {
|
|
|
my?.reLaunch({
|
|
|
url: "/pages/package-parkingFee/parkingFeeWebViewLogin?needLogin=1" // 去 login 页面 1 去登录
|
|
|
})
|