<template>
  <uni-nav-bar left-icon="left" title="AI对话" @clickLeft="clickLeft" @clickRight="onSettingTap">
    <template v-slot:left>
      <view class="hamburger">
        <view class="line" />
        <view class="line" />
        <view class="line" />
      </view>
    </template>
    <template v-slot:right>
      <view class="nav-right">
        <image
          src="@/static/set.png"
          mode="widthFix"
          style="width: 18px"
        ></image>
      </view>
    </template>
  </uni-nav-bar>
</template>

<script>
export default {
	methods : {
		clickLeft(){
			this.$emit('clickLeft')
		},
		onSettingTap() {
		  uni.navigateTo({
		    url: "/pages/setting/index",
		  });
		}
	}
};
</script>

<style scoped>
.hamburger {
  width: 18px;
}

.hamburger .line {
  height: 2px;
  background: #333;
  margin: 3px 0;
  border-radius: 2px;
}
</style>
