Commit ef966af2 authored by yun's avatar yun

细节修改

parent 467aabf8
......@@ -74,7 +74,7 @@ export default {
components: {
pdf: pdf,
Loading,
[Toast.name]: Toast,
[Toast.name]: Toast
},
data() {
return {
......@@ -103,11 +103,13 @@ export default {
} else if (!isNaN(newPage)) {
this.page = this.numPages
}
if (this.realPages > 100 && this.page === 100) {
if (this.realPages > 4 && this.page === 5) {
Toast.setDefaultOptions({className: 'action_toast'})
Toast({
message: '已超过最大预览页数,更多内容请在PC端下载后查看',
icon: require('@assets/images/success.png')
})
setTimeout(Toast.setDefaultOptions({className: ''}), 3000)
}
}
},
......@@ -428,3 +430,8 @@ export default {
background: #f1f1f1;
}
</style>
<style>
.action_toast{
width: auto;
}
</style>
......@@ -156,7 +156,9 @@ export default {
.num{
font-size: 30px;
color: #ffffff;
padding-top: 7px;
padding-top: 10px;
font-family: Microsoft YaHei;
line-height: 30px;
}
}
.list-box{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment