uni-app-shopping/src/App.vue

36 lines
693 B
Vue
Raw Normal View History

2021-02-20 17:07:14 +08:00
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
2021-02-20 17:31:47 +08:00
<style lang="scss">
@import "uview-ui/index.scss";
2021-02-21 09:01:26 +08:00
/* 公共样式 */
page,view,text,button,navigator,image,swiper,swiper-item,input {
padding: 0;
margin: 0;
box-sizing: border-box;
}
page{
/* 14px */
font-size: 28rpx;
color: #666;
}
2021-02-21 21:45:38 +08:00
image{
/* 宽度等于父盒子的宽度, 才不会主动撑开 */
2021-02-25 09:44:26 +08:00
width:100%;
2021-02-21 23:24:52 +08:00
/* 移除图片标签默认的3px 间隙 */
vertical-align: middle;
2021-02-21 21:45:38 +08:00
}
2021-02-20 17:07:14 +08:00
</style>