Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
c4a1a1a0
Commit
c4a1a1a0
authored
Aug 03, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2c92e520
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
Main.ts
project/src/Main.ts
+6
-1
getQueryParams.ts
project/src/getQueryParams.ts
+8
-1
No files found.
project/src/Main.ts
View file @
c4a1a1a0
...
@@ -15,8 +15,13 @@ import { ShareScene } from "./template/ShareScene";
...
@@ -15,8 +15,13 @@ import { ShareScene } from "./template/ShareScene";
import
{
ShareFailPanel
}
from
"./panels/share_fail"
;
import
{
ShareFailPanel
}
from
"./panels/share_fail"
;
import
{
ShareSuccessPanel
}
from
"./panels/share_success"
;
import
{
ShareSuccessPanel
}
from
"./panels/share_success"
;
import
{
isFromShare
}
from
"duiba-utils"
;
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
;
};
/**
/**
* 全局事件,为了和小程序交互
* 全局事件,为了和小程序交互
...
...
project/src/getQueryParams.ts
View file @
c4a1a1a0
export
default
()
=>
{
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment