Commit 90c63cd4 by 杨北旺

完成页面构造

1 parent d3bc07cb
......@@ -15,7 +15,7 @@ const pages = {
}]
}
const redirect = ''
const redirect = 'services'
let routes = []
const keepAlives = []
Object.keys(pages).map(parent => {
......
......@@ -9,33 +9,35 @@
<div v-if="currentTabIndex == index" class="tab_line"></div>
</div>
</div>
<div style="height: 40px"></div>
<div style="height: 100px"></div>
<div class="list_widget">
<!-- <scroll-view class="content" @ReachBottom="onReachBottom"> -->
<div v-for="(item, index) in serviceList" :key="index" class="box_wrapper" @click="jumpPage">
<div class="header_pannel flex_scb">
<span class="title text_hide">客户名称</span>
<p class="status" :class="{ other_color: index % 2 == 0 }">
<span class="point" :style="{ background: index % 2 == 0 ? '#3975C6' : '' }"></span>
{{ index % 2 == 0 ? '已完成' : '待上传' }}
</p>
</div>
<div class="main_pannel">
<img v-if="index % 2" class="iconCover" :src="imgBase + 'unActive_v.png'" />
<img v-else class="iconCover" :src="imgBase + 'active_v.png'" />
<div class="info_wrap">
<p>联系方式:1806446816</p>
<p>车辆品牌:奔驰</p>
<p>车辆型号:2022款2022款2022款2022款2022款2022款2022款</p>
<p>车架号码:LASDLSDKLSDLS</p>
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-for="(item, index) in serviceList">
<div :key="index" class="box_wrapper" @click="jumpPage">
<div class="header_pannel flex_scb">
<span class="title text_hide">客户名称</span>
<p class="status" :class="{ other_color: index % 2 == 0 }">
<span class="point" :style="{ background: index % 2 == 0 ? '#3975C6' : '' }"></span>
{{ index % 2 == 0 ? '已完成' : '待上传' }}
</p>
</div>
<div class="main_pannel">
<img v-if="index % 2" class="iconCover" :src="imgBase + 'unActive_v.png'" />
<img v-else class="iconCover" :src="imgBase + 'active_v.png'" />
<div class="info_wrap">
<p>联系方式:1806446816</p>
<p>车辆品牌:奔驰</p>
<p>车辆型号:2022款2022款2022款2022款2022款2022款2022款</p>
<p>车架号码:LASDLSDKLSDLS</p>
</div>
</div>
<div class="footer_pannel flex_scb">
<span>时间:2021/8/21</span>
<span>{{ index % 2 == 0 ? '查看详情' : '去上传' }}>></span>
</div>
</div>
</div>
<div class="footer_pannel flex_scb">
<span>时间:2021/8/21</span>
<span>{{ index % 2 == 0 ? '查看详情' : '去上传' }}>></span>
</div>
</div>
<!-- </scroll-view> -->
</template>
</scroll-view>
</div>
</div>
</template>
......@@ -71,10 +73,10 @@ export default {
serviceList: [1, 2, 3, 4, 5, 6, 7]
}
},
name: 'service',
created() {},
mounted() {},
mounted() {
console.log(new Date());
},
methods: {
search(e) {
console.log(e)
......@@ -117,10 +119,13 @@ export default {
z-index: 2;
background-color: #fff;
box-shadow: 0px 0.5px 0px 0px rgba(233, 233, 233, 1);
position: fixed;
width: 100%;
height: 50px;
}
.tab_widget {
width: 100%;
height: 45px;
height: 50px;
background: white;
display: flex;
align-items: center;
......@@ -131,6 +136,7 @@ export default {
top: 50px;
z-index: 2;
padding-bottom: 2px;
border-top: 1px solid #e9e9e9;
.tab_pannel {
height: 100%;
position: relative;
......@@ -159,6 +165,12 @@ export default {
}
.list_widget {
padding: 17px 16px;
.content{
height: calc(100vh - 134px);
/deep/ .van-list{
background: #F7F7F7;
}
}
.box_wrapper {
width: 100%;
background: #ffffff;
......@@ -180,11 +192,14 @@ export default {
height: 6px;
background: #fe4b00;
border-radius: 50%;
margin-right: 4px;
}
.status {
font-size: 12px;
color: #fe4b00;
font-weight: 500;
display: flex;
align-items: center;
}
.other_color {
color: #3975c6;
......@@ -221,4 +236,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -60,7 +60,7 @@ export default {
mounted() {},
methods: {
afterRread1(file) {
console.log(file)
console.log(file);
},
afterRread2(file) {
console.log(file)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!