44 lines
801 B
Vue
44 lines
801 B
Vue
<template>
|
|
<div class="top-button-large" :class="buttonClass">
|
|
<div class="top-button-large-touch"></div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "LargeTopButton",
|
|
props: {
|
|
drawType: {
|
|
type: String,
|
|
default: "turntable1"
|
|
}
|
|
},
|
|
computed: {
|
|
buttonClass() {
|
|
if (this.drawType === "turntable1") return "top-button-xy";
|
|
return "top-button-hh";
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.top-button-large {
|
|
width: 276px;
|
|
height: 107px;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
&-touch {
|
|
width: 100%;
|
|
height: 96px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.top-button-hh {
|
|
background-image: url(../../assets/images/hh_btn_g.png);
|
|
}
|
|
.top-button-xy {
|
|
background-image: url(../../assets/images/xy_btn.png);
|
|
}
|
|
</style>
|