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
1004 B
59 lines
1004 B
4 weeks ago
|
<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>
|