提交 c3c8e290 编写于 作者: “grape”'s avatar “grape”

首页样式

上级 3d7eda8b
...@@ -77,16 +77,18 @@ export default class Tool extends Vue { ...@@ -77,16 +77,18 @@ export default class Tool extends Vue {
} }
.title { .title {
margin: 4% auto 5% 0%;
font-size: 18px; margin: 1% auto 1% 0;
color: #FFFFFF; font-size: 18px;
border-width: 0px; color: #fff;
white-space: nowrap; border-width: 0;
text-transform: none; white-space: nowrap;
width: 100%; text-transform: none;
height: 100%; width: 100%;
text-align: center; height: 35%;
text-align: center;
} }
.icon{ .icon{
width: 32px; width: 32px;
height: 32px; height: 32px;
......
...@@ -8,12 +8,9 @@ ...@@ -8,12 +8,9 @@
--> -->
<template> <template>
<div class="d-page d-flex flex-column" style="background-color: linear-gradient(to bottom, #0B54E0, #ffffff); padding-bottom:20px;"> <div class="d-page d-flex flex-column" style="background-color: linear-gradient(to bottom, #0B54E0 50px , #ffffff); padding-bottom:20px;">
<div class="rarle">
<scroller-view v-calculate-height pulldown="true" pullup="true" :height="10000" class="product" > <tools-bar :title="tatleName" style="width: 100%; height: calc(16vh)">
<div class="rarle">
<tools-bar :title="tatleName" style="width: 100%; height: calc(25vh)">
</tools-bar> </tools-bar>
</div> </div>
<div class="roolsolt"> <div class="roolsolt">
...@@ -25,19 +22,11 @@ ...@@ -25,19 +22,11 @@
background: #ecf9ff; background: #ecf9ff;
width: 90%; width: 90%;
height: 34px; height: 34px;
margin: 2% auto;
border-radius: 10px;
border-radius: 10px;
position: absolute;
top: 14vh;
left: 5%; left: 5%;
position: absolute;
top: 22vh;
display: flex;
" "
> >
<van-col <van-col
...@@ -349,6 +338,7 @@ ...@@ -349,6 +338,7 @@
</div> </div>
<scroller-view v-calculate-height pulldown="true" pullup="true" :height="10000" class="product" >
<div <div
v-for="(item, index) in productList" v-for="(item, index) in productList"
:key="index" :key="index"
...@@ -368,6 +358,7 @@ ...@@ -368,6 +358,7 @@
</scroller-view> </scroller-view>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Component, Vue } from "vue-property-decorator"; import { Component, Vue } from "vue-property-decorator";
...@@ -447,11 +438,17 @@ export default class Main extends Vue { ...@@ -447,11 +438,17 @@ export default class Main extends Vue {
}; };
// created(){
created(){
document.addEventListener('touchmove', event => { event.preventDefault() }, { passive: false }) // document.addEventListener('touchmove', event => { event.preventDefault() }, { passive: false });
// }
activated(){
document.addEventListener('touchmove', event => { event.preventDefault() }, { passive: false });
} }
//测试 //测试
...@@ -766,20 +763,7 @@ export default class Main extends Vue { ...@@ -766,20 +763,7 @@ export default class Main extends Vue {
} }
onClick(index:any) { onClick(index:any) {
if(index==0){ this.tabsList[index].status=this.tabsList[index].status === 1?0:1
this.tabsList[index].status=this.tabsList[index].status === 1?0:1;
this.tabsList[1].status=0;
this.tabsList[2].status=0;
}else if(index==1) {
this.tabsList[index].status=this.tabsList[index].status === 1?0:1;
this.tabsList[0].status=0;
this.tabsList[2].status=0;
}else {
this.tabsList[index].status=this.tabsList[index].status === 1?0:1;
this.tabsList[1].status=0;
this.tabsList[0].status=0;
}
// Toast(this.tabsList[index].status===1?"升序":"降序"); // Toast(this.tabsList[index].status===1?"升序":"降序");
} }
} }
...@@ -806,9 +790,15 @@ export default class Main extends Vue { ...@@ -806,9 +790,15 @@ export default class Main extends Vue {
} }
.prudect { .prudect {
line-height: 100%; line-height: 100%;
padding-top: 20px; padding-top: 16px;
padding-bottom: 10px;
} }
.van-row--align-center {
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
height: 33px;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册