App.vue
2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<template>
<div id="app">
<router-view class="router-view" />
<van-tabbar route v-model="active" @change="onTabbarChange()">
<van-tabbar-item to="/" icon="wap-home-o">首页</van-tabbar-item>
<van-tabbar-item icon="cluster-o">分类</van-tabbar-item>
<!-- <van-tabbar-item icon="balance-list-o">订单</van-tabbar-item> -->
<van-tabbar-item to="/favorite" icon="manager-o">我的</van-tabbar-item>
</van-tabbar>
</div>
</template>
<script>
import { Toast } from "vant";
export default {
data() {
return {
key: "value",
active: 0
};
},
methods: {
onTabbarChange() {
if (this.active != 0 && this.active != 2) {
Toast("该场景暂未开放,敬请期待");
}
}
}
};
</script>
<style lang="scss">
@import "@/styles/_support";
.van-tabbar-item--active {
// color: #e10f02 !important;
}
#app {
/* font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px; */
border: 0;
margin: 0;
padding: 0;
font-size: 20px;
color: #333333;
}
.router-view {
margin-bottom: 80px;
}
body,
div {
border: 0;
margin: 0;
padding: 0;
}
input {
background: none;
outline: none;
border: none;
}
.app__width {
width: 750px;
}
.app__inner {
margin: 20px;
}
.app__title {
font-size: $fontSize;
line-height: $fontSize + 4px;
font-weight: bold;
padding-bottom: 10px;
margin-bottom: 20px;
border-bottom: 0.5px solid #eeeeee;
}
.app__desc {
font-size: $fontSizeSmaller;
line-height: $fontSizeSmaller + 2px;
margin-bottom: 20px;
color: $colorGray;
}
.app__bgc {
position: fixed;
background-color: #ffffff;
width: 100%;
height: 100%;
}
.app__bg {
position: absolute;
width: 100%;
height: 100%;
}
.app__top-shadow {
position: fixed;
width: 750px;
height: 1px;
box-shadow: 0px 4px 0.9px 0.1px rgba(6, 0, 1, 0.07);
background-color: #ffffff;
}
.app__content {
position: relative;
}
.van-popup {
background-color: transparent !important;
}
// index页面
.page-index {
.van-swipe__indicator {
width: 20px;
height: 20px;
}
}
// 产品详情页面
.page-product-detail {
.van-swipe__indicator {
width: 20px;
height: 20px;
}
[class*="van-hairline"]::after {
border: none;
}
.van-sticky {
border-bottom: 1px solid #ebedf0;
}
}
// 我的收藏
.page-favorite {
.van-tabs__wrap {
}
.van-tab {
}
}
</style>