Commit ca2c1283 authored by zhengke's avatar zhengke

修改

parent 5c994e5a
<template> <template>
<div class="guidecarList" style="height: 100%;"> <div class="guidecarList" style="height: 100vh;">
<div class='g_top'> <view class="guide_ComHead">
<view class="topB" @click=""> <div class='g_top'>
<span class='ztext'>{{STime.month}}{{STime.day}}</span> <view class="topB" @click="">
<span class='titext'>{{STime.week+' '+STime.hour+':'+STime.minute}}</span> <span class='ztext'>{{STime.month}}{{STime.day}}</span>
</view> <span class='titext'>{{STime.week+' '+STime.hour+':'+STime.minute}}</span>
<view class="topB" style="height: 20px;align-items: center;"> </view>
<span style='font-size: 11px;color: #1C1E1F;'>{{intervalDay}}</span> <view class="topB" style="height: 20px;align-items: center;">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sanjiao.png" mode="aspectFill" style="width: 55px;height: 4px;"></image> <span style='font-size: 11px;color: #1C1E1F;'>{{intervalDay}}</span>
</view> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sanjiao.png" mode="aspectFill" style="width: 55px;height: 4px;"></image>
<view class="topB" @click=""> </view>
<span class='ztext'>{{ETime.month}}{{ETime.day}}</span> <view class="topB" @click="">
<span class='titext'>{{ETime.week+' '+ETime.hour+':'+ETime.minute}}</span> <span class='ztext'>{{ETime.month}}{{ETime.day}}</span>
</view> <span class='titext'>{{ETime.week+' '+ETime.hour+':'+ETime.minute}}</span>
</div> </view>
<view style="padding: 10px 0 0;position: relative;background: #fff;width: 100%;height: 55px;"> </div>
<view style=" border-bottom: 1px solid #E2E2E2;"> <view class="g_Second" style="padding: 10px 0 0;position: relative;background: #fff;width: 100%;height: 55px;">
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" :active-color="mainColor"></u-tabs> <view style=" border-bottom: 1px solid #E2E2E2;">
</view> <u-tabs :list="list" :is-scroll="false" :current="current" @change="change" :active-color="mainColor"></u-tabs>
<view v-if="screenshow==true" class="tanchu" > </view>
<scroll-view <view v-if="screenshow==true" class="tanchu" >
:scroll-y="true" <scroll-view
:enable-back-to-top="true" :scroll-y="true"
style="max-height: 283px;"> :enable-back-to-top="true"
<view class="tanchu_item" v-for="(item, index) in screenList" :key="index" @click="onItemSelect(item)"> style="max-height: 283px;">
<span>{{item.Name}}</span> <view class="tanchu_item" v-for="(item, index) in screenList" :key="index" @click="onItemSelect(item)">
<u-icon name="success" :color="mainColor" size="30" v-if='item.ID==msg.OrderBy && current==0'></u-icon> <span>{{item.Name}}</span>
<u-icon name="success" :color="mainColor" size="30" v-if='item.ID==msg.CarBrandId && current==1'></u-icon> <u-icon name="success" :color="mainColor" size="30" v-if='item.ID==msg.OrderBy && current==0'></u-icon>
</view> <u-icon name="success" :color="mainColor" size="30" v-if='item.ID==msg.CarBrandId && current==1'></u-icon>
</scroll-view> </view>
</scroll-view>
</view> </view>
</view> </view>
</view>
<div style='display: flex;width: 100%;overflow: hidden;overflow-y: auto;'> <div style='display: flex;width: 100%;overflow: hidden;overflow-y: auto;'>
<view v-if="screenshow==true" class="Mask" @click="screenshow=false"></view> <view v-if="screenshow==true" class="Mask" @click="screenshow=false"></view>
<div class="left-slider"> <div class="left-slider">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
:enable-flex="true" :enable-flex="true"
@scrolltolower="lower" @scrolltolower="lower"
v-if="g.length > 0" v-if="g.length > 0"
style=" height: calc(100vh - (44px+10px+50px)) ;width: calc(100vw - 85px);" :style="{ 'height': `calc(100vh - ${scrollHeight})`,'width':'calc(100vw - 85px)'}"
> >
<view style="width: 100%;display: flex;flex-direction: column;align-items: center;padding: 10px"> <view style="width: 100%;display: flex;flex-direction: column;align-items: center;padding: 10px">
<view class="c_list_item" v-for="(x, i) in g" :key="i" @click="goDetails(x)"> <view class="c_list_item" v-for="(x, i) in g" :key="i" @click="goDetails(x)">
...@@ -164,13 +164,13 @@ export default { ...@@ -164,13 +164,13 @@ export default {
nomore: "没有更多了", nomore: "没有更多了",
}, },
PagePath:'', PagePath:'',
scrollHeight: 0,
}; };
}, },
onLoad(options) { onLoad(options) {
if(options && options.item){ if(options && options.item){
let item = JSON.parse(decodeURIComponent(options.item)) let item = JSON.parse(decodeURIComponent(options.item))
console.log(item)
this.msg.CarClass = item.CarClass this.msg.CarClass = item.CarClass
this.msg.CarType = item.CarType this.msg.CarType = item.CarType
this.msg.EndTime = item.EndTime this.msg.EndTime = item.EndTime
...@@ -226,9 +226,21 @@ export default { ...@@ -226,9 +226,21 @@ export default {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
setTimeout(() => {
this.getHeadHeight();
}, 500);
}, },
methods: { methods: {
getHeadHeight() {
let that = this;
const query = uni.createSelectorQuery().in(this);
query
.select(".guide_ComHead")
.boundingClientRect((data) => {
that.scrollHeight = data.height + "px";
})
.exec();
},
init(){ init(){
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
...@@ -496,4 +508,15 @@ getGuideCarBrandList(){ ...@@ -496,4 +508,15 @@ getGuideCarBrandList(){
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #E2E2E2; border-bottom: 1px solid #E2E2E2;
} }
.guidecarList .guide_ComHead{
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
width:100%;
}
</style> </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