feat:更新
This commit is contained in:
1 parent
03c799e6a5
commit
04266eb0bb
48 files changed
+865
-196
No files matched your search
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<div class="top-button-large" :class="buttonClass">
|
||||
<div class="top-button-large-touch"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "LargeTopButton",
|
||||
props: {
|
||||
mode: {
|
||||
type: String,
|
||||
default: "blue"
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
buttonClass() {
|
||||
if (this.mode === "blue") return "top-button-xy";
|
||||
return "top-button-hh";
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" 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>
|
||||
Reference in new issue
Block a user