Commit c4a1a1a0 authored by wildfirecode13's avatar wildfirecode13

update

parent 2c92e520
......@@ -15,8 +15,13 @@ import { ShareScene } from "./template/ShareScene";
import { ShareFailPanel } from "./panels/share_fail";
import { ShareSuccessPanel } from "./panels/share_success";
import { isFromShare } from "duiba-utils";
import getQueryParams from "./getQueryParams";
const isShare = () => { return !!1 };
const isShare = () => {
const query = getQueryParams();
console.log('query',query);
return query && query.sxbankIsSharePage==1;
};
/**
* 全局事件,为了和小程序交互
......
export default () => {
const str = location.search.slice(1);
const arr = str.split('&');
const result:any = {};
for (const item of arr) {
const arr2 = item.split('=');
result[arr2[0]]=arr2[1];
}
return result;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment