|
|
|
@ -4,53 +4,36 @@ |
|
|
|
|
<div class="layout"> |
|
|
|
|
<navbar></navbar> |
|
|
|
|
<div class="content"> |
|
|
|
|
<transition name="move" |
|
|
|
|
mode="out-in"> |
|
|
|
|
<transition name="move" mode="out-in"> |
|
|
|
|
<router-view class="view"></router-view> |
|
|
|
|
</transition> |
|
|
|
|
<el-backtop target=".content"></el-backtop> |
|
|
|
|
</div> |
|
|
|
|
<v-footer ref="footer"></v-footer> |
|
|
|
|
<div class="log-mask" |
|
|
|
|
v-if="logVisible"></div> |
|
|
|
|
<div class="log-dia" |
|
|
|
|
v-if="logVisible"> |
|
|
|
|
<img class="bg1" |
|
|
|
|
src="@/assets/img/log-bg.png" |
|
|
|
|
alt=""> |
|
|
|
|
<img class="bg2" |
|
|
|
|
src="@/assets/img/log-bg1.png" |
|
|
|
|
alt=""> |
|
|
|
|
<div class="log-mask" v-if="logVisible"></div> |
|
|
|
|
<div class="log-dia" v-if="logVisible"> |
|
|
|
|
<img class="bg1" src="@/assets/img/log-bg.png" alt=""> |
|
|
|
|
<img class="bg2" src="@/assets/img/log-bg1.png" alt=""> |
|
|
|
|
<p class="log-title">更新日志</p> |
|
|
|
|
<div class="log-wrap"> |
|
|
|
|
<div class="logs"> |
|
|
|
|
<div class="item" |
|
|
|
|
v-for="(item, i) in list" |
|
|
|
|
:key="i" |
|
|
|
|
v-show="!i || (i && logAll)"> |
|
|
|
|
<div class="item" v-for="(item, i) in list" :key="i" v-show="!i || (i && logAll)"> |
|
|
|
|
<h6>{{ item.versionName }}</h6> |
|
|
|
|
<img v-if="item.coverUrl" |
|
|
|
|
:src="item.coverUrl" |
|
|
|
|
alt="" |
|
|
|
|
class="cover"> |
|
|
|
|
<img v-if="item.coverUrl" :src="item.coverUrl" alt="" class="cover"> |
|
|
|
|
<ul class="detail"> |
|
|
|
|
<li v-for="(item, i) in item.logContents" |
|
|
|
|
:key="i"> |
|
|
|
|
<p class="name"><img :src="require('@/assets/img/' + funcList.find(e => e.id === item.type).icon + '.png')" |
|
|
|
|
alt=""> {{ funcList.find(e => e.id === item.type).name }}</p> |
|
|
|
|
<li v-for="(item, i) in item.logContents" :key="i"> |
|
|
|
|
<p class="name"><img |
|
|
|
|
:src="require('@/assets/img/' + funcList.find(e => e.id === item.type).icon + '.png')" alt=""> {{ |
|
|
|
|
funcList.find(e => e.id === item.type).name }}</p> |
|
|
|
|
<div class="val"> |
|
|
|
|
<p v-for="(item, i) in item.content" |
|
|
|
|
:key="i">{{ i + 1 }}、{{ item }}</p> |
|
|
|
|
<p v-for="(item, i) in item.content" :key="i">{{ i + 1 }}、{{ item }}</p> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="more-wrap"> |
|
|
|
|
<el-button class="know" |
|
|
|
|
type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="logVisible = false">知道了</el-button> |
|
|
|
|
<el-button class="know" type="primary" size="small" @click="logVisible = false">知道了</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -102,7 +85,7 @@ export default { |
|
|
|
|
]) |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
this.autoLogout(); |
|
|
|
|
this.autoLogout() |
|
|
|
|
this.logView || this.getLogStatus() // logView为false才需要查询接口 |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -154,104 +137,120 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.main { |
|
|
|
|
min-height: 100%; |
|
|
|
|
min-height: 100%; |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
min-height: calc(100vh - 176px); |
|
|
|
|
padding: 24px; |
|
|
|
|
} |
|
|
|
|
.content { |
|
|
|
|
min-height: calc(100vh - 176px); |
|
|
|
|
padding: 24px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.log-mask { |
|
|
|
|
position: fixed; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
bottom: 0; |
|
|
|
|
right: 0; |
|
|
|
|
background-color: rgba(0, 0, 0, 0.4); |
|
|
|
|
position: fixed; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
bottom: 0; |
|
|
|
|
right: 0; |
|
|
|
|
background-color: rgba(0, 0, 0, 0.4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.log-dia { |
|
|
|
|
z-index: 11; |
|
|
|
|
z-index: 11; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 250px; |
|
|
|
|
left: 50%; |
|
|
|
|
width: 550px; |
|
|
|
|
transform: translateX(-50%); |
|
|
|
|
background-color: #fff; |
|
|
|
|
border-radius: 6px; |
|
|
|
|
|
|
|
|
|
.bg1 { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 140px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.bg2 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 250px; |
|
|
|
|
left: 50%; |
|
|
|
|
width: 550px; |
|
|
|
|
transform: translateX(-50%); |
|
|
|
|
background-color: #fff; |
|
|
|
|
border-radius: 6px; |
|
|
|
|
.bg1 { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 140px; |
|
|
|
|
} |
|
|
|
|
.bg2 { |
|
|
|
|
position: absolute; |
|
|
|
|
top: -130px; |
|
|
|
|
left: 48px; |
|
|
|
|
max-width: 100%; |
|
|
|
|
height: 250px; |
|
|
|
|
} |
|
|
|
|
.log-title { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 65px; |
|
|
|
|
left: 0; |
|
|
|
|
width: 100%; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 22px; |
|
|
|
|
color: #fff; |
|
|
|
|
font-weight: 600; |
|
|
|
|
} |
|
|
|
|
.log-wrap { |
|
|
|
|
padding-bottom: 30px; |
|
|
|
|
} |
|
|
|
|
.logs { |
|
|
|
|
max-height: 250px; |
|
|
|
|
padding: 0 100px; |
|
|
|
|
margin: 30px 0; |
|
|
|
|
overflow: auto; |
|
|
|
|
} |
|
|
|
|
h6 { |
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
font-size: 16px; |
|
|
|
|
color: #333; |
|
|
|
|
line-height: 1; |
|
|
|
|
} |
|
|
|
|
.more-wrap { |
|
|
|
|
padding: 0 60px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #333; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
.know { |
|
|
|
|
margin-top: 15px; |
|
|
|
|
top: -130px; |
|
|
|
|
left: 48px; |
|
|
|
|
max-width: 100%; |
|
|
|
|
height: 250px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.log-title { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 65px; |
|
|
|
|
left: 0; |
|
|
|
|
width: 100%; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 22px; |
|
|
|
|
color: #fff; |
|
|
|
|
font-weight: 600; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.log-wrap { |
|
|
|
|
padding-bottom: 30px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.logs { |
|
|
|
|
max-height: 250px; |
|
|
|
|
padding: 0 100px; |
|
|
|
|
margin: 30px 0; |
|
|
|
|
overflow: auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
h6 { |
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
font-size: 16px; |
|
|
|
|
color: #333; |
|
|
|
|
line-height: 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.more-wrap { |
|
|
|
|
padding: 0 60px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #333; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.know { |
|
|
|
|
margin-top: 15px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.cover { |
|
|
|
|
max-width: 250px; |
|
|
|
|
max-height: 160px; |
|
|
|
|
margin: 10px 0 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.detail { |
|
|
|
|
li { |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
} |
|
|
|
|
.cover { |
|
|
|
|
max-width: 250px; |
|
|
|
|
max-height: 160px; |
|
|
|
|
margin: 10px 0 20px; |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 5px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
width: 20px; |
|
|
|
|
margin-right: 8px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.detail { |
|
|
|
|
li { |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
} |
|
|
|
|
.name { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 5px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
img { |
|
|
|
|
width: 20px; |
|
|
|
|
margin-right: 8px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.val { |
|
|
|
|
font-size: 15px; |
|
|
|
|
line-height: 1.8; |
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
p { |
|
|
|
|
position: relative; |
|
|
|
|
font-size: 13px; |
|
|
|
|
color: #727272; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.val { |
|
|
|
|
font-size: 15px; |
|
|
|
|
line-height: 1.8; |
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
|
|
|
|
|
p { |
|
|
|
|
position: relative; |
|
|
|
|
font-size: 13px; |
|
|
|
|
color: #727272; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |