Commit 7ffebf85 authored by 和慭琛's avatar 和慭琛

照片规范列表 页面搭建

parent ad5a5354
......@@ -6,6 +6,14 @@
*/
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/photo/list",
"style": {
"navigationBarTitleText": "规范展示"
}
},
{
"path": "pages/photo/product",
"style": {
......@@ -20,6 +28,7 @@
}
},
{
"path": "pages/photo/try",
"style": {
......
......@@ -37,7 +37,9 @@
//选择 点击
itemClick: function (item) {
uni.navigateTo({
url:'/pages/photo/list'
})
},
......
<template>
<view class="backView">
<text class="topTitle">{{topTitle}}</text>
<view class="centerBackView">
<view class="leftView">
<view class="leftItemView" v-for="(item,ikey) in leftList":key="ikey">
<text class="leftItemText">{{item.title}}</text>
</view>
</view>
<view class="rightView">
<view class="rightItemView" v-for="(item,ikey) in rightList":key="ikey">
<view :class=" item.images ? 'rightContentView width_50' : 'rightContentView width_100' ">
<text class="rightTitle u-m-t-30 u-m-l-30">{{item.title}} ({{item.photoNumber}}张)</text>
<text class="rightContent u-m-t-30 u-m-l-30">{{item.content}}</text>
</view>
<view class="rightImageView" v-if="item.images">
<image class="rightImage" src="" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
topTitle:'',
leftList:[],
rightList:[],
}
},
onLoad(e) {
this.topTitle = '充电桩-北汽'
this.getData()
},
methods: {
getData: function (){
this.leftList = [
{'title':'回单','id':0},
{'title':'回单','id':1},
{'title':'回单','id':2}
]
this.rightList = [
{
'title':'电源点照片',
'photoNumber':4,
'content':'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12',
'images':['asdasdasd.png','assdasdad.png','asdsds.png']
},
{
'title':'电源点照片',
'photoNumber':4,
'content':'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12',
'images':null
},
{
'title':'电源点照片',
'photoNumber':4,
'content':'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12',
'images':['asdasdasd.png','assdasdad.png','asdsds.png']
},
]
},
//拨打客服 点击
phoneCallClick: function (phone) {
uni.makePhoneCall({
phoneNumber: phone
});
},
}
}
</script>
<style>
.backView{
background-color: #FAFAFA;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.topTitle{
margin-top: 80rpx;
font-size: 32rpx;
}
.centerBackView{
display: flex;
flex-direction: row;
margin-top: 80rpx;
width: 100%;
}
.leftView{
background-color: #FFFFFF;
width: 20%;
display: flex;
flex-direction: column;
}
.leftItemView{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 80rpx;
border-bottom: 2rpx solid #F3F3F3;
}
.leftItemText{
font-size: 28rpx;
}
.rightView{
background-color: #FFFFFF;
width: 80%;
display: flex;
flex-direction: column;
}
.rightItemView{
width: 100%;
display: flex;
flex-direction: row;
border-bottom: 20rpx solid #F3F3F3;
}
.rightContentView{
display: flex;
flex-direction: column;
border-left: 2rpx solid #F3F3F3;
}
.width_50{
width: 50%;
}
.width_100{
width: 100%;
}
.rightTitle{
font-size: 28rpx;
}
.rightContent{
font-size: 28rpx;
}
.rightImageView{
background-color: #FFFFFF;
width: 50%;
height: 240rpx;
display: flex;
align-items: center;
justify-content: center;
}
.rightImage{
background-color: #F3F3F3;
width: 80%;
height: 80%;
}
</style>
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