| 12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <view class="img">
- <view class="imgBox"><image class="imgFlex" src="../../static/img/logo.png" mode="heightFix"></image></view>
- </view>
- </template>
- <script>
- export default {
- //定义一个对象
- props: {
- aboutUs: Object
- }
- //(是在用到这个组件时的页面这样做) 如果有data数据,封装,需要在上放html中声明一下 例:data{1,2,3,45} html:<view :data = "data"></view>
- };
- </script>
- <style lang="scss" scoped>
- .img {
- height: 80rpx;
- .imgBox {
- background-color: #FFFFFF;
- padding: 10rpx 10rpx;
- position: fixed;
- width: 100%;
- height: auto;
- top: 0;
- left: 0;
- z-index: 999999;
- border-bottom:1PX solid $border-color-light;
- .imgFlex {
- height: 60rpx;
- }
- }
- }
- </style>
|