uni-app-shopping/src/App.vue

36 lines
693 B
Vue

<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
@import "uview-ui/index.scss";
/* 公共样式 */
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;
}
image{
/* 宽度等于父盒子的宽度, 才不会主动撑开 */
width:100%;
/* 移除图片标签默认的3px 间隙 */
vertical-align: middle;
}
</style>