Commit 1212bc31 authored by 和慭琛's avatar 和慭琛

图片展示页 UI高保真还原

parent bcbfacff
...@@ -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",
......
<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: 15%; height: 146rpx;
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: 800rpx; height: 568rpx;
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: 750rpx; width: 750rpx;
height: 800rpx; height: 568rpx;
} }
.bottomView{ .bottomView{
background-color: #000000; background-color: #333333;
width: 100%; width: 100%;
height: 20%; height: 488rpx;
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: 160rpx; width: 146rpx;
height: 160rpx; height: 102rpx;
border-radius: 80rpx; border-radius: 16rpx;
margin-bottom: 50rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
......
...@@ -280,6 +280,7 @@ ...@@ -280,6 +280,7 @@
.topItemTitle{ .topItemTitle{
font-size: 32rpx; font-size: 32rpx;
color: #999999; color: #999999;
padding-left: 30rpx;
} }
...@@ -287,6 +288,7 @@ ...@@ -287,6 +288,7 @@
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
padding-left: 30rpx;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment