Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
930e8cca
Commit
930e8cca
authored
Jun 08, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件页面微调
parent
592f2a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
+15
-24
document.vue
src/pages/order/document.vue
+15
-24
No files found.
src/pages/order/document.vue
View file @
930e8cca
...
...
@@ -34,22 +34,6 @@
<u-button
:custom-style=
"shareStyle"
shape=
"circle"
@
click=
"handleShare(item)"
>
分享
</u-button>
<u-button
:custom-style=
"previewStyle"
shape=
"circle"
@
click=
"handlePreview(item)"
>
查看
</u-button>
</view>
<view
class=
"file-left"
>
<view
class=
"file-name"
>
<image
class=
"file-image"
:src=
"wenjianImage"
></image>
<view
class=
"file-format-text"
>
{{formatText(item.name)}}
</view>
</view>
<text>
{{item.name}}
</text>
</view>
<view
class=
"file-right"
>
<u-button
:custom-style=
"shareStyle"
shape=
'circle'
size=
"mini"
@
click=
"handleShare(item)"
>
分享
</u-button>
<u-button
:custom-style=
"previewStyle"
shape=
'circle'
size=
"mini"
class=
"button-class"
@
click=
"handlePreview(item)"
>
查看
</u-button>
</view>
</view>
<view
class=
"loading-view"
v-if=
"loading"
>
...
...
@@ -192,7 +176,7 @@
let
res
=
await
this
.
$u
.
api
.
fileLabel
(
param
)
if
(
res
&&
res
.
code
==
200
)
{
this
.
labels
[
type
]
=
res
.
data
||
[]
this
.
labels
[
type
]
=
[...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
]
//
this.labels[type] = [...res.data,...res.data,...res.data,...res.data,...res.data,...res.data,...res.data]
console
.
log
(
this
.
labels
)
if
(
this
.
firstLoad
&&
type
==
'1'
)
{
// 第一次额外加载第一个合作商的品牌标签
this
.
firstLoad
=
false
...
...
@@ -213,13 +197,18 @@
if
(
res
&&
res
.
code
==
200
)
{
console
.
log
(
res
.
data
)
this
.
list
=
res
.
data
||
[]
this
.
list
=
[...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
,...
res
.
data
]
//
this.list = [...res.data,...res.data,...res.data,...res.data,...res.data,...res.data,...res.data]
}
},
formatText
(
name
)
{
let
arr
=
name
.
split
(
'.'
)
let
item
=
arr
.
pop
()
return
item
.
substr
(
0
,
1
)
formatText
(
name
)
{
debugger
let
arr
=
name
.
split
(
'.'
)
if
(
arr
.
length
>
1
)
{
let
item
=
arr
.
pop
()
return
item
.
substr
(
0
,
1
).
toUpperCase
()
}
else
{
return
'P'
}
}
}
};
...
...
@@ -325,9 +314,11 @@
.file-name
{
margin-right
:
20rpx
;
position
:
relative
;
.file-format-text
{
.item-icon
{
position
:
absolute
;
}
.file-format-text
{
position
:
relative
;
width
:
52rpx
;
height
:
52rpx
;
text-align
:
center
;
...
...
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