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

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

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


  </view>
</template>

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

  }
}
</script>

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

}

.background_image {

  position: absolute;
  width: 100%;
  height: 100%;
}

.button {
  position: absolute;
  width: 40%;
  height: 18%;
  left: 90%;
  top: 80%;

}
</style>
