Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
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
panyongping
uni-pdtravel
Commits
a2afcd08
Commit
a2afcd08
authored
Dec 17, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片上传优化
parent
be856d06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
24 deletions
+7
-24
complaintCommit.vue
...s/my/suggestComplaint/complaintCommit/complaintCommit.vue
+2
-8
complaintDetail.vue
...s/my/suggestComplaint/complaintDetail/complaintDetail.vue
+2
-8
suggestCommit.vue
pages/my/suggestComplaint/suggestCommit/suggestCommit.vue
+3
-8
No files found.
pages/my/suggestComplaint/complaintCommit/complaintCommit.vue
View file @
a2afcd08
...
...
@@ -134,7 +134,7 @@ export default{
this
[
`fileList
${
event
.
name
}
`
].
splice
(
fileListLen
,
1
,
Object
.
assign
(
item
,
{
status
:
'success'
,
message
:
''
,
url
:
result
url
:
'http://picture.pangdly.com/'
+
result
}))
fileListLen
++
}
...
...
@@ -163,14 +163,8 @@ export default{
//---提交
commit
(){
this
.
imgList
=
this
.
fileList1
.
map
(
item
=>
{
let
baseUrl
=
''
if
(
process
.
env
.
NODE_ENV
===
'development'
){
//开发环境
baseUrl
=
'http://picture.tuyoyoo.com/'
}
else
{
baseUrl
=
'http://picture.pangdly.com/'
}
return
{
imgUrl
:
baseUrl
+
item
.
url
,
imgUrl
:
item
.
url
,
imgCommentType
:
0
//0游客发起图片 1客服回复图片
}
})
...
...
pages/my/suggestComplaint/complaintDetail/complaintDetail.vue
View file @
a2afcd08
...
...
@@ -193,7 +193,7 @@ export default{
this
[
`fileList
${
event
.
name
}
`
].
splice
(
fileListLen
,
1
,
Object
.
assign
(
item
,
{
status
:
'success'
,
message
:
''
,
url
:
result
url
:
'http://picture.pangdly.com/'
+
result
}))
fileListLen
++
}
...
...
@@ -222,14 +222,8 @@ export default{
//---提交
commit
(){
this
.
imgList
=
this
.
fileList1
.
map
(
item
=>
{
let
baseUrl
=
''
if
(
process
.
env
.
NODE_ENV
===
'development'
){
//开发环境
baseUrl
=
'http://picture.tuyoyoo.com/'
}
else
{
baseUrl
=
'http://picture.pangdly.com/'
}
return
{
imgUrl
:
baseUrl
+
item
.
url
,
imgUrl
:
item
.
url
,
imgCommentType
:
0
//0游客发起图片 1客服回复图片
}
})
...
...
pages/my/suggestComplaint/suggestCommit/suggestCommit.vue
View file @
a2afcd08
...
...
@@ -93,10 +93,11 @@ export default{
this
[
`fileList
${
event
.
name
}
`
].
splice
(
fileListLen
,
1
,
Object
.
assign
(
item
,
{
status
:
'success'
,
message
:
''
,
url
:
result
url
:
'http://picture.pangdly.com/'
+
result
}))
fileListLen
++
}
},
uploadFilePromise
(
url
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -122,14 +123,8 @@ export default{
//---提交
commit
(){
this
.
imgList
=
this
.
fileList1
.
map
(
item
=>
{
let
baseUrl
=
''
if
(
process
.
env
.
NODE_ENV
===
'development'
){
//开发环境
baseUrl
=
'http://picture.tuyoyoo.com/'
}
else
{
baseUrl
=
'http://picture.pangdly.com/'
}
return
{
imgUrl
:
baseUrl
+
item
.
url
,
imgUrl
:
item
.
url
,
imgCommentType
:
0
//0游客发起图片 1客服回复图片
}
})
...
...
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