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
27290ee0
Commit
27290ee0
authored
Aug 13, 2021
by
shunx 马
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'disu0811' of gitlab2.dui88.com:wildfirecode13/wfc13 into disu0811
parents
3abecebc
4cd9f191
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
1 deletion
+131
-1
package.json
project/package.json
+1
-0
getUnionid.ts
project/src/getUnionid.ts
+21
-0
share.ts
project/src/share.ts
+12
-0
yarn.lock
project/yarn.lock
+97
-1
No files found.
project/package.json
View file @
27290ee0
...
...
@@ -22,6 +22,7 @@
"readline"
:
"^1.3.0"
},
"dependencies"
:
{
"@spark/share"
:
"^2.0.90"
,
"duiba-utils"
:
"^1.0.9"
},
"scripts"
:
{
...
...
project/src/getUnionid.ts
View file @
27290ee0
import
getQueryParams
from
"./common/getQueryParams"
;
function
getParams
()
{
var
url
=
location
.
href
;
var
array
=
url
.
split
(
"?"
);
if
(
array
.
length
==
2
)
{
var
str
=
url
.
split
(
"?"
)[
1
];
var
parms
=
str
.
split
(
"&"
);
var
value
=
''
;
parms
.
map
(
function
(
parm
)
{
var
list
=
parm
.
split
(
'='
);
var
key
=
list
[
0
]
if
(
key
==
'wxaParam'
)
{
value
=
list
[
1
];
}
})
value
=
decodeURIComponent
(
value
);
var
json
=
JSON
.
parse
(
value
);
return
json
;
}
return
{};
}
export
const
getUnionid
=
()
=>
{
return
getQueryParams
().
uid
;
}
\ No newline at end of file
project/src/share.ts
0 → 100644
View file @
27290ee0
import
{
start
,
WeixinMini
,
updateShare
}
from
'@spark/share'
start
([
WeixinMini
],
(
way
,
success
,
payload
)
=>
{
console
.
log
(
'分享'
+
success
?
'成功'
:
'失败'
);
updateShare
({
title
:
'百万体验金等你来拿'
,
//分享标题
content
:
'三湘银行体验金活动'
,
//分享内容
url
:
'http://www.baidu.com'
,
//分享链接
thumbnail
:
'https://yun.duiba.com.cn/db_games/sxbank.png'
,
//分享缩略图
});
});
\ No newline at end of file
project/yarn.lock
View file @
27290ee0
...
...
@@ -23,6 +23,70 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
"@babel/runtime@^7.12.5":
version "7.15.3"
resolved "http://npm.dui88.com:80/@babel%2fruntime/-/runtime-7.15.3.tgz#2e1c2880ca118e5b2f9988322bd8a7656a32502b"
integrity sha1-LhwogMoRjlsvmYgyK9inZWoyUCs=
dependencies:
regenerator-runtime "^0.13.4"
"@spark/api-base@^2.0.2", "@spark/api-base@^2.0.30", "@spark/api-base@^2.0.7", "@spark/api-base@^2.0.9":
version "2.0.30"
resolved "http://npm.dui88.com:80/@spark%2fapi-base/-/api-base-2.0.30.tgz#08ce13031be554fc3de737912ac5dad1aee0c4ab"
integrity sha512-VSCx6Rg4Zn7CJxnyEEC2e6dvgypm2d4vufXtbOgli2xMcS7bUf+3rKB11RnB52ukXFD9J3bTww5gIj2Ymj4B/Q==
dependencies:
"@spark/common-helpers" "^1.0.19"
"@spark/utils" "^2.0.3"
"@spark/api-common@^2.0.3":
version "2.0.15"
resolved "http://npm.dui88.com:80/@spark%2fapi-common/-/api-common-2.0.15.tgz#c1d35a43bd27c093cf7257b56f6478fe39cbd2b6"
integrity sha512-7sAUErpiMS1L27J4V+L3x+cj7iYm4IdkbVtNsRTEVYW312n9775yGEKHF+1SCl+bnOpBGmMiHjzv7AFmd0h80g==
dependencies:
"@spark/api-base" "^2.0.7"
"@spark/common-helpers" "^1.0.16"
"@spark/utils" "^2.0.22"
duiba-utils "^1.0.6"
"@spark/common-helpers@^1.0.1", "@spark/common-helpers@^1.0.16", "@spark/common-helpers@^1.0.19":
version "1.0.21"
resolved "http://npm.dui88.com:80/@spark%2fcommon-helpers/-/common-helpers-1.0.21.tgz#e4a60a9efbd5c76717ee3ac03504c2068a6eee35"
integrity sha512-1TKpt40iX0G4/yA89ju+KU340GwEiJgNSEHPCYO/Wgwi6seHbHlcVHgBD6TiKoNTIuAG+3xPhioS18zszjbbNg==
dependencies:
"@babel/runtime" "^7.12.5"
"@spark/api-base" "^2.0.7"
"@spark/projectx" "^2.0.10"
duiba-utils "^1.0.6"
"@spark/projectx@^2.0.10":
version "2.0.13"
resolved "http://npm.dui88.com:80/@spark%2fprojectx/-/projectx-2.0.13.tgz#a87cb7642a9a5e93e5aee752f04eb5f5814972eb"
integrity sha512-ow8ATHzlq7SXVJveP4LdLpF+k2eGwKpKrDTr2scfp+LMtlxbLQIXZL/D7RQVwTwJnk7zIYw6gKlpaTKmdXqfmg==
dependencies:
"@spark/api-base" "^2.0.9"
"@spark/common-helpers" "^1.0.1"
"@spark/utils" "^2.0.19"
"@spark/share@^2.0.90":
version "2.0.93"
resolved "http://npm.dui88.com:80/@spark%2fshare/-/share-2.0.93.tgz#e3e9c0d7a0267e21c990784688f7c0a81fd3a127"
integrity sha512-uYDxiOij9lXV/JrswgPWZHhuzpcbX8+KQRMgqYiU+fNyUXqixddnBeluLO5ZjvQnhukgxWQCJDh65SdAVR2BxA==
dependencies:
"@spark/api-base" "^2.0.2"
"@spark/api-common" "^2.0.3"
"@spark/utils" "^2.0.4"
"@spark/utils@^2.0.19", "@spark/utils@^2.0.22", "@spark/utils@^2.0.3", "@spark/utils@^2.0.4":
version "2.0.48"
resolved "http://npm.dui88.com:80/@spark%2futils/-/utils-2.0.48.tgz#84dba3adaf5dcf5d6f5b677b34a49c4acd7b97ad"
integrity sha512-MFirVh4Q+ZQCSTDkxTkRWDWQqbEHTbU9gbTh+DLqCwSfVDwZd2jxQ/2tN/836WnBfj47yzcBsbu2aPy6gxyr5g==
dependencies:
"@spark/api-base" "^2.0.30"
crypto-js "^4.0.0"
howler "^2.2.1"
html-observer "^1.0.4"
html-shot "^1.0.13"
"@tootallnate/once@1":
version "1.1.2"
resolved "http://npm.dui88.com:80/@tootallnate%2fonce/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
...
...
@@ -1032,6 +1096,11 @@ crypto-browserify@^3.11.0:
randombytes "^2.0.0"
randomfill "^1.0.3"
crypto-js@^4.0.0:
version "4.1.1"
resolved "http://npm.dui88.com:80/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
integrity sha1-nkhbzwNSEEG9hYRHhrg/t2GXNs8=
cyclist@^1.0.1:
version "1.0.1"
resolved "http://npm.dui88.com:80/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
...
...
@@ -1248,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.9:
duiba-utils@^1.0.
6, duiba-utils@^1.0.
9:
version "1.0.11"
resolved "http://npm.dui88.com:80/duiba-utils/-/duiba-utils-1.0.11.tgz#deead33f0c86bbe0063131b70ff0592da7bcb9dd"
integrity sha512-mEKFgn+ZpaIwMFmZHiCZXJpPTPkoCZSEKKfubjJ+8edti0GbGnfrbZKvHveLu5HbvwpXCNA6xXPQDJcE12VqbA==
...
...
@@ -1936,6 +2005,11 @@ homedir-polyfill@^1.0.1:
dependencies:
parse-passwd "^1.0.0"
howler@^2.2.1:
version "2.2.3"
resolved "http://npm.dui88.com:80/howler/-/howler-2.2.3.tgz#a2eff9b08b586798e7a2ee17a602a90df28715da"
integrity sha1-ou/5sItYZ5jnou4XpgKpDfKHFdo=
hpack.js@^2.1.6:
version "2.1.6"
resolved "http://npm.dui88.com:80/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2"
...
...
@@ -1951,6 +2025,18 @@ html-entities@^1.3.1:
resolved "http://npm.dui88.com:80/html-entities/-/html-entities-1.4.0.tgz#cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc"
integrity sha1-z70bAdKvr5rcobEK59/6uYxx0tw=
html-observer@^1.0.4:
version "1.0.5"
resolved "http://npm.dui88.com:80/html-observer/-/html-observer-1.0.5.tgz#8fda1f005e6fdaa2da638d5d646b6f3a977a0701"
integrity sha512-mAEB5Pu/AxJl0cRrK2HB37h7U98FHy7vungNJSFvczNjx6Rd81YUkDLT6aAGLaX37+ulDwwLqJmY1r01A22aQQ==
dependencies:
tslib "^2.3.0"
html-shot@^1.0.13:
version "1.0.20"
resolved "http://npm.dui88.com:80/html-shot/-/html-shot-1.0.20.tgz#1dd61b32c6b36ce95bd6b66da5a4c37c26fa4fcd"
integrity sha512-9XJsD7GaUFP6VuThQY2rae+PxLO7ZWUdyfEDnzq2iACB4r5W4BrLNMmfKRefen1hHsd39rdOUzJ9p8Wo1zpuHQ==
http-deceiver@^1.2.7:
version "1.2.7"
resolved "http://npm.dui88.com:80/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87"
...
...
@@ -3391,6 +3477,11 @@ readline@^1.3.0:
resolved "http://npm.dui88.com:80/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c"
integrity sha1-xYDXfvLPyHUrEySYBg3JeTp6wBw=
regenerator-runtime@^0.13.4:
version "0.13.9"
resolved "http://npm.dui88.com:80/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
integrity sha1-iSV0Kpj/2QgUmI11Zq0wyjsmO1I=
regex-not@^1.0.0, regex-not@^1.0.2:
version "1.0.2"
resolved "http://npm.dui88.com:80/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
...
...
@@ -4076,6 +4167,11 @@ tslib@^2.0.1:
resolved "http://npm.dui88.com:80/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
integrity sha1-gDuM2rPhK6WBpMpByIObuw2ssJ4=
tslib@^2.3.0:
version "2.3.1"
resolved "http://npm.dui88.com:80/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
integrity sha1-6KM1rdXOrlGqJh0ypJAVjvBC7wE=
tslint@^5.9.1:
version "5.20.1"
resolved "http://npm.dui88.com:80/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d"
...
...
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