You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
717 B
52 lines
717 B
3 years ago
|
<template>
|
||
|
<view class="top">
|
||
|
<image class="top_banner" :src="background">
|
||
|
</image>
|
||
|
<u-navbar
|
||
|
:title="title"
|
||
|
:safeAreaInsetTop="true"
|
||
|
:fixed="true"
|
||
|
bgColor="#FFFFFF00"
|
||
|
>
|
||
|
</u-navbar>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name:"MyNavbar",
|
||
|
props:{
|
||
|
///标题哈
|
||
|
title : {
|
||
|
type : String,
|
||
|
default : ""
|
||
|
},
|
||
|
///背景哈
|
||
|
background : {
|
||
|
type : String,
|
||
|
default : "../../static/images/kehu/bg_2.png"
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.top{
|
||
|
width: 750rpx;
|
||
|
height: 424rpx;
|
||
|
position: relative;
|
||
|
}
|
||
|
.top_banner{
|
||
|
position: relative;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 750rpx;
|
||
|
height: 424rpx;
|
||
|
}
|
||
|
</style>
|