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.
 
 
 
 
 

61 lines
985 B

<template>
<view class="navbar bx">
<view class="leftClick"
v-if="leftClick"
@click="leftClick();$play()">
<!-- <uni-icons color="#000" type="left" size="30rpx"></uni-icons> -->
<image src="/static/navbar.png"></image>
</view>
<view>{{ title }}</view>
</view>
</template>
<script>
export default {
name:"m-navbar",
props : ['leftClick', 'title'],
data() {
return {
};
},
methods : {
}
}
</script>
<style scoped lang="scss">
.navbar{
position: sticky;
top: 0;
width: 100%;
height: 90rpx;
// background: linear-gradient(to right, #4899a6, #6fc6ad);
background: #fff;
display: flex;
justify-content: center;
align-items: center;
color: #000;
font-size: 26rpx;
z-index: 9999;
.leftClick{
position: absolute;
left: 0px;
top: 0;
width: 80rpx;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
image{
width: 60rpx;
height: 60rpx;
}
}
}
.navbar-b{
height: 90rpx;
}
</style>