<template>
  <view class="">
    <view class="header-toper">
      <!-- <view class="start-bar"></view> -->
      <view class="header-toper-title">
        <image
          v-if="leftIcon"
          src="../../static/img/back.png"
          mode=""
          @click="$request.backGo"
        ></image>
        <text>{{ title }}</text>
        <image
          v-if="rightBtn"
          src="../../static/img/add.png"
          mode=""
          @click="$emit('rightBtnClick')"
        ></image>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  props: {
    title: String,
    rightBtn: {
      type: Boolean,
      default: false
    },
    leftIcon: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>
<style>
/* 页面css在static css main.css里面 */
/* @import url(./index.css); */
</style>
