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
1212bc31
Commit
1212bc31
authored
Dec 29, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片展示页 UI高保真还原
parent
bcbfacff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
23 deletions
+32
-23
pages.json
take-order/pages.json
+14
-12
detail.vue
take-order/pages/photo/detail.vue
+16
-11
list.vue
take-order/pages/photo/list.vue
+2
-0
No files found.
take-order/pages.json
View file @
1212bc31
...
@@ -6,6 +6,19 @@
...
@@ -6,6 +6,19 @@
*/
*/
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/photo/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"图片展示"
}
},
{
"path"
:
"pages/photo/preview"
,
"style"
:
{
"navigationBarTitleText"
:
"照片预览"
}
},
{
{
"path"
:
"pages/photo/list"
,
"path"
:
"pages/photo/list"
,
...
@@ -47,12 +60,7 @@
...
@@ -47,12 +60,7 @@
{
"path"
:
"pages/photo/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"图片展示"
}
},
...
@@ -77,12 +85,6 @@
...
@@ -77,12 +85,6 @@
{
"path"
:
"pages/photo/preview"
,
"style"
:
{
"navigationBarTitleText"
:
"照片预览"
}
},
//
{
//
{
//
"path"
:
"pages/photo/index"
,
//
"path"
:
"pages/photo/index"
,
...
...
take-order/pages/photo/detail.vue
View file @
1212bc31
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<view
class=
"topView"
>
<view
class=
"topView"
>
<
text
class=
"topTitle"
>
示范照片 (
{{
currentNumber
}}
/
{{
totalNumber
}}
)
</text
>
<
!--text class="topTitle">示范照片 (
{{
currentNumber
}}
/
{{
totalNumber
}}
)
</text--
>
</view>
</view>
<scroll-view
scroll-x
class=
"centerBackView"
>
<scroll-view
scroll-x
class=
"centerBackView"
>
<image
class=
"photoImage"
@
click=
"imageClick(item.image)"
:src=
"item.image"
mode=
""
v-for=
"(item,ikey) in photoList"
:key=
"ikey"
></image>
<image
class=
"photoImage"
@
click=
"imageClick(item.image)"
:src=
"item.image"
mode=
""
v-for=
"(item,ikey) in photoList"
:key=
"ikey"
></image>
...
@@ -42,6 +42,10 @@
...
@@ -42,6 +42,10 @@
}
}
]
]
this
.
totalNumber
=
this
.
photoList
.
length
this
.
totalNumber
=
this
.
photoList
.
length
uni
.
setNavigationBarTitle
({
title
:
'走线照片 ('
+
this
.
currentNumber
+
'/'
+
this
.
totalNumber
+
')'
});
},
},
//照片预览
//照片预览
...
@@ -78,9 +82,9 @@
...
@@ -78,9 +82,9 @@
}
}
.topView
{
.topView
{
background-color
:
#
000000
;
background-color
:
#
333333
;
width
:
100%
;
width
:
100%
;
height
:
1
5%
;
height
:
1
46
rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -94,7 +98,7 @@
...
@@ -94,7 +98,7 @@
.centerBackView
{
.centerBackView
{
background-color
:
#007AFF
;
background-color
:
#007AFF
;
height
:
800
rpx
;
height
:
568
rpx
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
}
}
...
@@ -102,26 +106,27 @@
...
@@ -102,26 +106,27 @@
.photoImage
{
.photoImage
{
background-color
:
#4CD964
;
background-color
:
#4CD964
;
width
:
750
rpx
;
width
:
750
rpx
;
height
:
800
rpx
;
height
:
568
rpx
;
}
}
.bottomView
{
.bottomView
{
background-color
:
#
000000
;
background-color
:
#
333333
;
width
:
100%
;
width
:
100%
;
height
:
20%
;
height
:
488
rpx
;
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column-reverse
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
}
.takeView
{
.takeView
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
width
:
160
rpx
;
width
:
146
rpx
;
height
:
160
rpx
;
height
:
102
rpx
;
border-radius
:
80
rpx
;
border-radius
:
16
rpx
;
margin-bottom
:
50
rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
...
take-order/pages/photo/list.vue
View file @
1212bc31
...
@@ -280,6 +280,7 @@
...
@@ -280,6 +280,7 @@
.topItemTitle
{
.topItemTitle
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#999999
;
color
:
#999999
;
padding-left
:
30
rpx
;
}
}
...
@@ -287,6 +288,7 @@
...
@@ -287,6 +288,7 @@
font-size
:
32
rpx
;
font-size
:
32
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
padding-left
:
30
rpx
;
}
}
...
...
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