视迹
This commit is contained in:
parent
e61b6091f1
commit
8786fea231
13
src/App.vue
13
src/App.vue
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view class="dark"></router-view>
|
<router-view class="container"></router-view>
|
||||||
<div class="menu-wrapper">
|
<div class="menu-wrapper">
|
||||||
<span class="iconfont icon-settings" :class="{active: menuShow}" @click="menuShow = !menuShow"></span>
|
<span class="iconfont icon-settings" :class="{active: menuShow}" @click="menuShow = !menuShow"></span>
|
||||||
<div class="menu-list" :style="{width: menuShow ? '180px' : '10px'}">
|
<div class="menu-list" :style="{width: menuShow ? '180px' : '10px'}">
|
||||||
@ -46,13 +46,18 @@ export default {
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import url('./assets/css/reset.less');
|
@import url('./assets/css/reset.less');
|
||||||
@import url('./assets/css/iconfont.less');
|
@import url('./assets/css/iconfont.less');
|
||||||
html, body, #app {
|
html, body, #app, .container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
|
font-family: Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "MicrosoftYaHei", "WenQuanYi Micro Hei", sans-serif;
|
||||||
|
}
|
||||||
|
.dark {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
font-family: Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "MicrosoftYaHei", "WenQuanYi Micro Hei", sans-serif;
|
}
|
||||||
|
.light {
|
||||||
|
background-color: #f0eff4;
|
||||||
}
|
}
|
||||||
.btn-wrapper {
|
.btn-wrapper {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -93,6 +98,7 @@ body {
|
|||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
|
color: #FFF;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
transition: transform 0.6s;
|
transition: transform 0.6s;
|
||||||
transition-timing-function: ease-out;
|
transition-timing-function: ease-out;
|
||||||
@ -114,6 +120,7 @@ body {
|
|||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 60%);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="dark">
|
||||||
<div class="text-wrapper center" :class="{hide: hideText}">
|
<div class="text-wrapper center" :class="{hide: hideText}">
|
||||||
<div class="text" v-for="(item,index) in guideText[guideIndex]" :key="index" v-text="item"></div>
|
<div class="text" v-for="(item,index) in guideText[guideIndex]" :key="index" v-text="item"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,13 +1,50 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>这是历史记录页面</div>
|
<div class="light">
|
||||||
|
<div class="title">
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="text">视迹</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
historyCardList: [],
|
||||||
|
dateList: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async created() {
|
||||||
|
const history = JSON.parse(localStorage.getItem('card_history') || '[]')
|
||||||
|
if(history.length) {
|
||||||
|
this.historyCardList = await this.$http.post('/api/rainbow_card/card/list', history.map(item => item.num))
|
||||||
|
this.dateList = history.map(item => item.date)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="less" scoped>
|
||||||
|
.title {
|
||||||
|
position: relative;
|
||||||
|
height: 60px;
|
||||||
|
margin: 0 40px;
|
||||||
|
> .line {
|
||||||
|
background-color: #b5b5b5;
|
||||||
|
height: 2px;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
}
|
||||||
|
> .text {
|
||||||
|
position: absolute;
|
||||||
|
background: #FFF;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
padding: 13px 25px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="dark">
|
||||||
<template v-if="isShowCard">
|
<template v-if="isShowCard">
|
||||||
<div class="card-show" :style="{backgroundColor: currentCard.rgb}">
|
<div class="card-show" :style="{backgroundColor: currentCard.rgb}">
|
||||||
<div class="card-content">{{ currentCard.content }}</div>
|
<div class="card-content">{{ currentCard.content }}</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user