公司小程序
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.

54 lines
702 B

<template>
<view class="top">
<image class="top_banner" :src="background"></image>
</view>
</template>
<script>
export default {
name:"MyNavbar",
props:{
///标题哈
title : {
type : String,
default : ""
},
///背景哈
background : {
type : String,
default : "../../static/images/kehu/bg_2.png"
}
},
data() {
return {
};
3 years ago
},
methods:{
onTouchBack(){
console.log("back !!!")
3 years ago
uni.navigateBack({
})
}
}
}
</script>
<style lang="scss" scoped>
.top{
width: 750rpx;
height: 424rpx;
position: fixed;
}
.top_banner{
position: fixed;
left: 0;
top: 0;
width: 750rpx;
height: 424rpx;
}
</style>