zssh-h5/components/header.vue

42 lines
756 B
Vue

<template>
<view class="">
<view class="bgwhite plr20 ptb10 flex_between flex_items mt20">
<view v-if="back" @click="goback">
<image :src="back" style="width:50rpx;height:50rpx;"></image>
</view>
<view v-else style="opacity: 0;">站位</view>
<view class="bold f32">{{title}}</view>
<view class="f28" @click="gohere">{{tright}}</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
back: require("@/static/back.png")
}
},
props: ['title', 'tright', 'isback'],
onLoad() {
},
methods: {
goback() {
this.$router.back()
},
gohere(){
uni.navigateTo({
url:"/pages/my/index"
})
}
}
}
</script>
<style>
page {
background: #f5f5f5 !important;
}
</style>