Skip to content

Commit 521a57d

Browse files
committed
add
1 parent f1898f8 commit 521a57d

File tree

6 files changed

+22
-97
lines changed

6 files changed

+22
-97
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"axios": "^0.18.0",
1212
"core-js": "^2.6.5",
1313
"mint-ui": "^2.2.13",
14+
"normalize.css": "^8.0.1",
1415
"vue": "^2.6.6",
1516
"vue-router": "^3.0.1",
1617
"vuex": "^3.0.1"

src/App.vue

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</template>
1010

1111
<style lang="scss">
12+
@import "./node_modules/normalize.css/normalize";
1213
@import "style/common.scss";
1314
#app {
1415
font-family: "Avenir", Helvetica, Arial, sans-serif;

src/main.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ Vue.use(wechat);
99
Object.keys(filters).forEach(item => {
1010
Vue.filter(item, filters[item])
1111
})
12-
13-
const wx = Vue.wechat;
14-
wx.config({
15-
appId: '',
16-
nonceStr: '',
17-
signature: '',
18-
timestamp: '',
19-
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
20-
})
12+
// const wx = Vue.wechat;
13+
// wx.config({
14+
// appId: '',
15+
// nonceStr: '',
16+
// signature: '',
17+
// timestamp: '',
18+
// jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
19+
// })
2120
Vue.config.productionTip = false
2221
Vue.config.devtools = true
2322
new Vue({

src/style/common.scss

+8-85
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,3 @@
1-
// /reset css
2-
a,
3-
blockquote,
4-
body,
5-
code,
6-
dd,
7-
div,
8-
dl,
9-
dt,
10-
em,
11-
fieldset,
12-
form,
13-
h1,
14-
h2,
15-
h3,
16-
h4,
17-
h5,
18-
h6,
19-
iframe,
20-
img,
21-
input,
22-
label,
23-
li,
24-
object,
25-
ol,
26-
p,
27-
q,
28-
small,
29-
span,
30-
strong,
31-
table,
32-
tbody,
33-
td,
34-
th,
35-
tr,
36-
ul {
37-
margin: 0;
38-
padding: 0;
39-
border: 0
40-
}
41-
42-
body {
43-
font-family: "STHeiti", "Microsoft YaHei", Helvetica, Arial, sans-serif;
44-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
45-
-webkit-text-size-adjust: none
46-
}
47-
48-
a,
49-
a:active,
50-
a:focus,
51-
a:hover,
52-
a:visited {
53-
text-decoration: none
54-
}
55-
56-
a,
57-
img {
58-
-webkit-touch-callout: none
59-
}
60-
61-
li,
62-
ol,
63-
ul {
64-
list-style: none
65-
}
66-
67-
input[type=password],
68-
input[type=text],
69-
textarea {
70-
resize: none;
71-
outline: 0;
72-
-webkit-appearance: none;
73-
white-space: pre-wrap;
74-
word-wrap: break-word;
75-
background: #fff
76-
}
77-
78-
.clearfix:after {
79-
display: block;
80-
clear: both;
81-
content: "";
82-
visibility: hidden;
83-
height: 0
84-
}
85-
861
html {
872
font-size: 13.33333vw
883
}
@@ -180,4 +95,12 @@ html {
18095
width: 768PX;
18196
margin: 0 auto
18297
}
98+
}
99+
100+
.clearfix:after {
101+
display: block;
102+
clear: both;
103+
content: "";
104+
visibility: hidden;
105+
height: 0
183106
}

src/views/About.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ a {
5757
@include ell();
5858
}
5959
h1 {
60-
font-size: 18px;
60+
font-size: 36px;
6161
}
6262
.msg {
63-
font-size: 16px;
63+
font-size: 32px;
6464
}
6565
</style>

src/views/Home.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<router-link to="/">Home</router-link>|
55
<router-link to="/about">About</router-link>
66
</div>
7-
7+
88
<img alt="Vue logo" src="../assets/logo.png">
99
<HelloWorld msg="Welcome to Your Vue.js App"/>
1010
</div>
@@ -21,6 +21,7 @@ export default {
2121
},
2222
created() {
2323
getIndex({ pageSiza: 100, num: 10 });
24+
// console.log(this.$wechat)
2425
},
2526
mounted() {},
2627

0 commit comments

Comments
 (0)