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
ac926720
Commit
ac926720
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
0a42e623
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
6 deletions
+27
-6
package.json
project/package.json
+3
-3
Main.ts
project/src/Main.ts
+13
-2
getSearch.ts
project/src/getSearch.ts
+10
-0
yarn.lock
project/yarn.lock
+1
-1
No files found.
project/package.json
View file @
ac926720
...
...
@@ -12,18 +12,18 @@
"mock-webpack-plugin"
:
"^2.0.0"
,
"path"
:
"^0.12.7"
,
"progress"
:
"^2.0.0"
,
"readline"
:
"^1.3.0"
,
"ts-loader"
:
"^4.0.0"
,
"tslint"
:
"^5.9.1"
,
"typescript"
:
"^3.5.1"
,
"webpack"
:
"^4.1.0"
,
"webpack-cli"
:
"^3.1.1"
,
"webpack-dev-server"
:
"^3.1.0"
,
"webpack-merge"
:
"^4.1.2"
,
"readline"
:
"^1.3.0"
"webpack-merge"
:
"^4.1.2"
},
"dependencies"
:
{
"@spark/share"
:
"^2.0.90"
,
"duiba-utils"
:
"^1.0.
9
"
"duiba-utils"
:
"^1.0.
11
"
},
"scripts"
:
{
"clearSameImg"
:
"node scripts/clearSameImg && node scripts/flushRes"
,
...
...
project/src/Main.ts
View file @
ac926720
...
...
@@ -6,11 +6,13 @@ import { getUrlParams } from "../module/tools/WebTool";
import
{
destroyLayers
,
layers
}
from
"../module/views/layers"
;
import
{
IndexScene
}
from
"../src/scenes/IndexScene"
;
import
getQueryParams
from
"./common/getQueryParams"
;
import
{
getSearch
}
from
"./getSearch"
;
import
{
ResJson
}
from
"./ResJson"
;
import
{
startShare
}
from
"./share"
;
import
{
SkinJson
}
from
"./SkinJson"
;
import
{
destroyWebNetData
,
sendWebNet
}
from
"./WebNet"
;
import
{
WebNetName
}
from
"./WebNetName"
;
import
{
accessLog
}
from
'duiba-utils'
...
...
@@ -50,16 +52,25 @@ export class Main {
private
async
onAddToStage
()
{
if
(
getQueryParams
().
iscustom
)
{
console
.
log
(
'fuck'
);
sendWebNet
(
WebNetName
.
login
,{
appId
:
getUrlParams
(
"appID"
),
unionid
:
'oIbvOt3D_z7AfHz9lI6VmDEeYDIk'
,
redirectUrl
:
'https://www.baidu.com/'
redirectUrl
:
`http://activity.m.duibatest.com.cn/projectx/pe4f11ce9/index.html?appID=19493&issharepage=
${
getQueryParams
().
issharepage
}
`
}).
then
(
res
=>
{
location
.
href
=
res
.
data
;
});
return
;
}
if
(
getQueryParams
().
issharepage
==
1
)
{
console
.
log
(
'分享进入'
)
}
else
{
console
.
log
(
'主动进入'
)
}
startShare
();
//初始化层级
layers
.
init
(
this
.
stage
);
console
.
log
(
"初始化层级完成"
)
...
...
project/src/getSearch.ts
0 → 100644
View file @
ac926720
export
const
getSearch
=
(
str
)
=>
{
const
arr
=
str
.
split
(
'&'
);
const
res
:
any
=
{};
for
(
const
item
of
arr
)
{
if
(
!
item
)
continue
;
const
[
k
,
v
]
=
item
.
split
(
'='
);
res
[
k
]
=
v
;
}
return
res
}
\ No newline at end of file
project/yarn.lock
View file @
ac926720
...
...
@@ -1317,7 +1317,7 @@ domain-browser@^1.1.1:
resolved "http://npm.dui88.com:80/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
integrity sha1-PTH1AZGmdJ3RN1p/Ui6CPULlTto=
duiba-utils@^1.0.
6, duiba-utils@^1.0.9
:
duiba-utils@^1.0.
11, duiba-utils@^1.0.6
:
version "1.0.11"
resolved "http://npm.dui88.com:80/duiba-utils/-/duiba-utils-1.0.11.tgz#deead33f0c86bbe0063131b70ff0592da7bcb9dd"
integrity sha512-mEKFgn+ZpaIwMFmZHiCZXJpPTPkoCZSEKKfubjJ+8edti0GbGnfrbZKvHveLu5HbvwpXCNA6xXPQDJcE12VqbA==
...
...
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