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.
61 lines
1001 B
61 lines
1001 B
2 weeks ago
|
<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>
|