<template>
  <view :class="['container', extend_class]">

    <!--背景图   -->
    <image src="/static/components/ai_recongize_recipe/pictures/background.png" class="background_image"></image>

    <!--按钮和文字   -->
    <image class="button" src="/static/components/ai_recongize_recipe/pictures/text_and_button.png" @click="go_to_page"></image>


  </view>
</template>

<script>
export default {
  name: "ai_recongize_recipe",
  data() {
    return {};
  },
  props: {
    extend_class: { // 接收外部传入的 class
      type: String,
      default: ''
    }
  },
  methods:{
    go_to_page() {
      uni.navigateTo({
        url: '/pages/homepages/homes/ai_recongize_recipe/ai_recongize_recipe'
      })
    }

  }
}
</script>

<style lang="scss">
.container{
  position: absolute;
  width: 100%;
  height: 28%;

}
.background_image{

  position: absolute;
  width: 100%;
  height: 100%;
}
.button{
  position: absolute;
  width: 40%;
  height: 20%;
  left: 50%;
  top: 62%;

}
</style>
