Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZheShangBank_TaoQuan_20240612
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
SparkProjects
ZheShangBank_TaoQuan_20240612
Commits
bce90e13
Commit
bce90e13
authored
Aug 20, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码1
parent
e91ae97f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
ajax.ts
assets/Scripts/Utils/WebNet/web/ajax.ts
+4
-1
index.html
build/web-mobile/index.html
+5
-5
No files found.
assets/Scripts/Utils/WebNet/web/ajax.ts
View file @
bce90e13
...
@@ -76,13 +76,16 @@ export function ajax(options: ajaxParameterInt) {
...
@@ -76,13 +76,16 @@ export function ajax(options: ajaxParameterInt) {
/**
/**
* POST请求设置请求头
* POST请求设置请求头
*/
*/
xhr
.
setRequestHeader
(
'Content-Type'
,
'application/x-www-form-urlencoded'
);
if
(
options
.
headers
)
{
if
(
options
.
headers
)
{
for
(
let
key
in
options
.
headers
)
{
for
(
let
key
in
options
.
headers
)
{
xhr
.
setRequestHeader
(
key
,
options
.
headers
[
key
]);
xhr
.
setRequestHeader
(
key
,
options
.
headers
[
key
]);
}
}
}
}
if
(
!
options
.
headers
[
"Content-Type"
])
{
xhr
.
setRequestHeader
(
'Content-Type'
,
'application/x-www-form-urlencoded'
);
}
let
params
=
getParams
(
options
.
data
);
let
params
=
getParams
(
options
.
data
);
if
(
options
.
headers
[
"Content-Type"
]
==
"application/json"
)
{
if
(
options
.
headers
[
"Content-Type"
]
==
"application/json"
)
{
params
=
JSON
.
stringify
(
options
.
data
);
params
=
JSON
.
stringify
(
options
.
data
);
...
...
build/web-mobile/index.html
View file @
bce90e13
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
609690
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
900663
/style.css"
/>
<style>
<style>
.sui-captcha
{
.sui-captcha
{
...
@@ -99,16 +99,16 @@
...
@@ -99,16 +99,16 @@
</script>
</script>
<!-- Polyfills bundle. -->
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
609690
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
900663
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
609690
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
900663
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
609690
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
900663
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
609690
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/1724138
900663
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
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