You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
991 B

<template>
<view :class="['container', extend_class]">
<!--背景图 -->
<image src="/static/components/ai_recongize_hot/pictures/background.png" class="background_image"></image>
<!--按钮和文字 -->
<image class="button" src="/static/components/ai_recongize_hot/pictures/text_and_button.png" @click="go_to_page"></image>
</view>
</template>
<script>
export default {
name: "ai_recongize_fruit",
data() {
return {};
},
props: {
extend_class: { // 接收外部传入的 class
type: String,
default: ''
}
},
methods:{
go_to_page() {
uni.navigateTo({
url: '/pages/homepages/homes/ai_recongize_hot/ai_recongize_hot'
})
}
}
}
</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>