Commit 90c63cd4 by 杨北旺

完成页面构造

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