liuminjian 4 роки тому
джерело
коміт
183fa71b93
2 змінених файлів з 92 додано та 42 видалено
  1. +77
    -40
      src/assets/css/base.scss
  2. +15
    -2
      src/views/addressBook/index.vue

+ 77
- 40
src/assets/css/base.scss Переглянути файл

@@ -1,4 +1,33 @@
body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, li, a, p, h1, h2, h3, h4,h5, h6, i, b, textarea, button, input, select, figure, figcaption {
body,
div,
span,
header,
footer,
nav,
section,
aside,
article,
ul,
dl,
dt,
dd,
li,
a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
i,
b,
textarea,
button,
input,
select,
figure,
figcaption {
padding: 0; padding: 0;
margin: 0; margin: 0;
list-style: none; list-style: none;
@@ -6,87 +35,95 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
text-decoration: none; text-decoration: none;
border: none; border: none;
box-sizing: border-box; box-sizing: border-box;
font-family: "Microsoft Yahei",sans-serif;
-webkit-tap-highlight-color:transparent;
font-family: "Microsoft Yahei", sans-serif;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;

&:focus { &:focus {
outline: none; outline: none;
} }
} }


/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar
{
width: 0px;
height: 0px;
background-color: #F5F5F5;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0);
border-radius: 10px;
background-color: #F5F5F5;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #555;
}

input[type="button"], input[type="submit"], input[type="search"], input[type="reset"] {
body {
color: #323233;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
width: 0px;
height: 0px;
background-color: #F5F5F5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
border-radius: 10px;
background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
background-color: #555;
}

input[type="button"],
input[type="submit"],
input[type="search"],
input[type="reset"] {
-webkit-appearance: none; -webkit-appearance: none;
} }


textarea { -webkit-appearance: none;}
textarea {
-webkit-appearance: none;
}


html,body{
html,
body {
height: 100%; height: 100%;
width: 100%; width: 100%;
background-color: #F5F5F5; background-color: #F5F5F5;
} }




.clear:after{
.clear:after {
content: ''; content: '';
display: block; display: block;
clear: both; clear: both;
} }


.clear{
zoom:1;
.clear {
zoom: 1;
} }


.back_img{
.back_img {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }


.margin{
.margin {
margin: 0 auto; margin: 0 auto;
} }


.left{
.left {
float: left; float: left;
} }


.right{
.right {
float: right; float: right;
} }


.hide{
.hide {
display: none; display: none;
} }


.show{
.show {
display: block; display: block;
} }


.ellipsis{
.ellipsis {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

+ 15
- 2
src/views/addressBook/index.vue Переглянути файл

@@ -1,12 +1,25 @@
<template> <template>
<div class="app-container">通讯录</div>
<div class="app-container">
<van-index-bar :index-list="indexList">
<div v-for="(item, index) in indexList" :key="index">
<van-index-anchor :index="item" />
<van-cell title="文本" />
<van-cell title="文本" />
<van-cell title="文本" />
<van-cell title="文本" />
<van-cell title="文本" />
</div>
</van-index-bar>
</div>
</template> </template>


<script> <script>
export default { export default {
name: "addressBook", name: "addressBook",
data() { data() {
return {};
return {
indexList: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "G", "K"],
};
}, },
mounted() {}, mounted() {},
methods: {}, methods: {},


Завантаження…
Відмінити
Зберегти