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

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

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


  </view>
</template>

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

  }
}
</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: 18%;
  left: 50%;
  top: 62%;

}
</style>