Commit 76ba291d authored by jyx's avatar jyx

优化样式

parent 9cde95fb
<template> <template>
<uni-popup ref='pop' type="left" maskClick="ture"> <uni-popup ref='pop' type="left" :is-mask-click='false' :safe-area='false'>
<scroll-view scroll-y style="background-color: white;width: 400rpx;max-width: 400rpx;"> <scroll-view scroll-y style="background-color: white;width: 400rpx;max-width: 400rpx;height: 100%;">
<view class="setting-box"> <view class="setting-box">
<block v-for='(item, index) in catalogueList' :key='index' :item='item'> <block v-for='(item, index) in catalogueList' :key='index' :item='item'>
<view @click="changeCatalogue(item.chapterNum)"> <view @click="changeCatalogue(item.chapterNum)">
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
{{limitButtonTitle}} {{limitButtonTitle}}
</view> </view>
<view style="height: 120rpx;"> </view> <view style="height: 150rpx;"> </view>
<view class="safe-placeholder" :style="[safePlacehoderStyle]"> </view>
</template> </template>
</view> </view>
</template> </template>
...@@ -131,7 +131,16 @@ ...@@ -131,7 +131,16 @@
}, },
isHasContent: function() { isHasContent: function() {
return this.contentSources.length > 0 return this.contentSources.length > 0
},
safePlacehoderStyle: function() {
let height = 0;
if (this.bottomSafeHeight) {
height = height + px2rpx(this.bottomSafeHeight)
} }
return {
height: `${height}rpx`
}
},
}, },
methods: { methods: {
// 文章数据刷新 // 文章数据刷新
...@@ -251,7 +260,7 @@ ...@@ -251,7 +260,7 @@
padding: 0 100rpx; padding: 0 100rpx;
text { text {
background-color: #fff; background-color: cornsilk;
color: black; color: black;
border-radius: 10rpx; border-radius: 10rpx;
padding: 16rpx 20rpx; padding: 16rpx 20rpx;
...@@ -261,9 +270,9 @@ ...@@ -261,9 +270,9 @@
.limit-button-box { .limit-button-box {
text-indent: 0; text-indent: 0;
height: 80rpx; height: 50rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
line-height: 80rpx; line-height: 50rpx;
text-align: center; text-align: center;
color: goldenrod; color: goldenrod;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -13,11 +13,13 @@ ...@@ -13,11 +13,13 @@
<view class="ele-empty" v-if='showEmpty'> <view class="ele-empty" v-if='showEmpty'>
{{emptyTitle}} {{emptyTitle}}
</view> </view>
<!-- <scroll-view scroll-x v-else> -->
<view class="ele-box" v-else> <view class="ele-box" v-else>
<view class="ele" v-for='(item, index) in itemSource' :key="index" @click="tapEle(item, index)"> <view class="ele" v-for='(item, index) in itemSource' :key="index" @click="tapEle(item, index)">
{{itemKey?item[itemKey]:item}} {{itemKey?item[itemKey]:item}}
</view> </view>
</view> </view>
<!-- </scroll-view> -->
</slot> </slot>
</view> </view>
</view> </view>
...@@ -117,6 +119,8 @@ ...@@ -117,6 +119,8 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding-left: 15rpx; padding-left: 15rpx;
flex-wrap: wrap;
overflow: auto;
.ele { .ele {
margin: 15rpx 0; margin: 15rpx 0;
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
}) })
}, },
tapItem(e, index) { tapItem(e, index) {
gotoBookContentPage(e.detail.data.id, e.detail.data.id) gotoBookContentPage(e.detail.data.id, e.detail.data.shortis)
}, },
} }
} }
......
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