Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
c82b832d
Commit
c82b832d
authored
Feb 26, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资料页面t优化
parent
c502a311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
file.vue
take-order/pages/settle/file.vue
+20
-4
No files found.
take-order/pages/settle/file.vue
View file @
c82b832d
...
@@ -111,10 +111,7 @@
...
@@ -111,10 +111,7 @@
},
},
onLoad
(
e
)
{},
onLoad
(
e
)
{},
updated
()
{
updated
()
{
Object
.
keys
(
this
.
imgObj
).
map
(
key
=>
{
this
.
updateImgs
()
const
imgs
=
this
.
imgObj
[
key
]
this
.
fileInfo
[
key
]
=
imgs
.
length
>
0
&&
imgs
[
0
].
key
||
''
})
},
},
watch
:
{
watch
:
{
"fileInfo.id_card_front"
()
{
"fileInfo.id_card_front"
()
{
...
@@ -145,7 +142,26 @@
...
@@ -145,7 +142,26 @@
},
},
methods
:
{
methods
:
{
updateImgs
(){
const
uploadType
=
this
.
uploadType
const
uploadImgs
=
this
.
imgObj
[
uploadType
]
if
(
uploadImgs
.
length
<
1
){
return
}
if
(
uploadType
===
'other_certificates'
){
const
otherImgs
=
this
.
imgObj
[
'other_certificates'
]
let
imgs
=
[]
otherImgs
.
map
(
item
=>
{
const
img
=
item
.
key
||
item
.
src
||
''
imgs
.
push
(
img
)
})
this
.
fileInfo
[
uploadType
]
=
imgs
.
join
(
','
)
return
}
this
.
fileInfo
[
uploadType
]
=
uploadImgs
[
0
].
key
||
uploadImgs
[
0
].
src
||
''
},
toUploadImg
(
item
,
index
)
{
toUploadImg
(
item
,
index
)
{
this
.
uploadType
=
item
.
filedName
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/settle/file-upload?uploadType='
+
item
.
filedName
url
:
'/pages/settle/file-upload?uploadType='
+
item
.
filedName
})
})
...
...
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