红绿项目
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.
 
 
 
 

65 lines
1.1 KiB

<template>
<view class="nav-head">
<slot></slot>
<slot name="bread"></slot>
<slot name="logo"></slot>
<image src="../../static/color/[email protected]" mode="aspectFit" class="back" @tap="back()"></image>
</view>
</template>
<script>
const COMPONENT_NAME = 'navigation'
export default {
name: COMPONENT_NAME,
data() {
return {
}
},
computed: {
},
mounted() {
},
methods: {
back(){
console.log('back')
history.back()
// uni.navigateBack()
uni.switchTab({
url:'../../pages/menu/promotion/index',
// url:'../../pages/menu/index/index',
// url:'../../pages/menu/My/index',
})
}
},
}
</script>
<style>
.nav-head{
line-height: 108rpx;
background-color: #34026BFF;
text-align: center;
font-size: 36rpx;
color: #fff;
position: relative;
text-transform: capitalize;
padding: 0 36rpx;
display: flex;
justify-content: center;
flex-direction: row-reverse;
align-items: center;
}
.back{
width: 42rpx;
height: 42rpx;
position: absolute;
left:36rpx;
top: 50%;
transform: translateY(-50%) rotate(-180deg) ;
}
</style>