添加退出按钮

This commit is contained in:
2024-08-01 19:33:47 +08:00
parent c3a4b64933
commit 2a774259bc
6 changed files with 18 additions and 31 deletions

View File

@@ -1,9 +1,6 @@
<template>
<header>
<!-- <div class="exit_btn" :style="expand ? {opacity: 1} : {opacity: 0.1}">
<div class="exit_txt" @click="$router.push('/setup')" :style="expand ? {width: '70px'} : {width: '0px'}">退出</div>
<div class="exit_arrow" v-text="!expand ? '&gt;&gt;' : '&lt;&lt;'" @click.stop="expand = !expand"></div>
</div> -->
<div class="exit_btn iconfont" @click="back">&#xe85b;</div>
<p>{{title}}</p>
<div class="data_box clearfix">
<div class="date_item date">{{date}}</div>
@@ -68,6 +65,9 @@ export default {
this.seconds = `${ss}`
this.date = `${year}${month}${date}`
this.week = `${week}`
},
back () {
this.$router.push('/setup')
}
}
}
@@ -116,28 +116,15 @@ header
line-height 26px
color #fff
.exit_btn
position: absolute;
left: 0;
top: 30px;
height 50px;
display: flex;
justify-content: space-between;
.exit_txt
font-size: 20px;
line-height: 50px;
color: #e6e7e1;
position absolute
left 25px
top 4px
z-index 100
height 26px
width 26px
line-height 26px
font-size 14px
color rgba(174, 202, 245, 30%)
text-align: center;
font-weight: bold;
transition width .3s ease
overflow hidden
background-color: rgba(30, 182, 203, 80%);
.exit_arrow
width: 46px;
font-size: 20px;
line-height: 50px;
color: #e6e7e1;
text-align: center;
background-color: rgba(30, 182, 203, 60%);
border-top-right-radius: 30px;
border-bottom-right-radius: 30px
cursor: pointer;
</style>

View File

@@ -19272,8 +19272,8 @@ export const sc = () => {
"productName": "550202636"
}
],
ptnum: '100',
ksnum: '1000'
ptNumber: '100',
ksNumber: '1000'
}
return res
}

View File

@@ -143,9 +143,9 @@ export default {
this.resData = res
this.pt = res.pt
this.ks = res.ks
let ptnum = res.ptnum.split('')
let ptnum = res.ptNumber.split('')
this.ptnum = [...ptnum]
let ksnum = res.ksnum.split('')
let ksnum = res.ksNumber.split('')
this.ksnum = [...ksnum]
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.