Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-SDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
GaoQuYingJiH5-SDT
Commits
8bead5a4
Commit
8bead5a4
authored
Mar 20, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片上传方法添加
parent
2d0fbb0d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
common.css
css/common.css
+1
-1
http.js
js/http.js
+24
-0
yh-list-detail.html
views/yh-list-detail.html
+0
-7
No files found.
css/common.css
View file @
8bead5a4
...
@@ -40,5 +40,5 @@
...
@@ -40,5 +40,5 @@
.list-function-btn-wrapper
{
.list-function-btn-wrapper
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
padding-right
:
0.
02
rem
;
padding-right
:
0.
18
rem
;
}
}
\ No newline at end of file
js/http.js
View file @
8bead5a4
...
@@ -123,6 +123,30 @@ var http = {
...
@@ -123,6 +123,30 @@ var http = {
})
})
})
})
},
},
postFile
:
function
(
url
,
params
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
({
url
,
method
:
'
post
'
,
data
:
params
,
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
// 'multipart/form-data;',
'
Authorization
'
:
localStorage
.
getItem
(
'
Authorization
'
)
},
}).
then
(
res
=>
{
let
response
=
res
.
data
console
.
log
(
'
res.statusCode
'
,
response
)
if
(
response
.
statusCode
>=
300
){
// alert('系统发生错误')
return
}
resolve
(
res
.
data
)
})
.
catch
(
err
=>
{
reject
(
err
.
data
)
})
})
},
downloadFile
:
function
(
url
,
params
)
{
downloadFile
:
function
(
url
,
params
)
{
console
.
log
(
'
downloadfILE
'
,
params
)
console
.
log
(
'
downloadfILE
'
,
params
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
views/yh-list-detail.html
View file @
8bead5a4
...
@@ -11,13 +11,6 @@
...
@@ -11,13 +11,6 @@
html
,
body
{
html
,
body
{
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.content
{
}
.pd-01rem
{
padding-bottom
:
0.1rem
;
}
/* 表单相关 */
/* 表单相关 */
.formValue
{
.formValue
{
float
:
right
;
float
:
right
;
...
...
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