Skip to content

Commit

Permalink
个人中心页横屏适配
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbeamman7 committed Jul 16, 2022
1 parent 106864b commit 948bc72
Showing 1 changed file with 44 additions and 36 deletions.
80 changes: 44 additions & 36 deletions pages/ucenter/ucenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
</view>


<view v-if="(tabValue == 'release' || tabValue == 'star') && lists.length>0" class='list base-padding base-margin-bottom'>
<view v-if="(tabValue == 'release' || tabValue == 'star') && lists.length>0"
class='list base-padding base-margin-bottom'>
<block v-for="(book, index) in lists" :key='index'>
<view class='row'>
<navigator :url='"/pages/intro/intro?id="+book.book_id' class='col-3'>
Expand All @@ -38,7 +39,8 @@
<text> {{book.star}} 收藏</text>
</view>
</view>
<view class='font-lv3 color-grey ellipsis-2row'>{{book.description ? book.description : book.book_name}}</view>
<view class='font-lv3 color-grey ellipsis-2row'>
{{book.description ? book.description : book.book_name}}</view>
</navigator>
</view>
</block>
Expand Down Expand Up @@ -104,7 +106,7 @@
},
onLoad: function(options) {
util.loading("loading...")
if (config.debug) console.log("params", options)
if (options.tab) this.tabValue = options.tab
Expand Down Expand Up @@ -310,21 +312,21 @@
<style scoped>
.user {
text-align: center;
border-bottom: 10upx solid #f6f6f6;
padding-bottom: 30upx;
border-bottom: 5px solid #f6f6f6;
padding-bottom: 15px;
}
.user .text-muted {
text-align: center;
}
.username {
margin: 15upx auto;
margin: 8px auto;
}
.user image {
width: 200upx;
height: 200upx;
width: 100px;
height: 100px;
border-radius: 50%;
border: 1px solid #ddd;
display: block;
Expand All @@ -341,44 +343,42 @@
}
.base-info image {
height: 40upx;
width: 40upx;
position: relative;
top: 8upx;
margin-right: 30upx;
height: 20px;
width: 20px;
margin-right: 15px;
}
.base-info image.pull-right {
margin-right: 0upx;
margin-right: 0;
}
.base-info {
padding-top: 0upx;
padding-bottom: 0upx;
padding-top: 0;
padding-bottom: 0;
}
.base-info .col-12 {
border-bottom: 1px solid #f6f6f6;
padding-bottom: 30upx;
padding-top: 30upx;
padding-bottom: 15px;
padding-top: 15px;
color: #666;
}
.base-info .col-12:last-of-type {
border-bottom: 0upx;
margin-bottom: 0upx;
border-bottom: 0;
margin-bottom: 0;
}
.list .col-9 {
box-sizing: border-box;
padding-left: 30upx;
padding-left: 15px;
}
.list .row {
margin-bottom: 30upx;
padding-bottom: 30upx;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1upx solid #efefef;
display: flex;
}
Expand All @@ -390,7 +390,7 @@
.breadcrumb {
border-bottom: 1upx solid #ddd;
line-height: 250%;
margin-top: 15upx;
margin-top: 8px;
}
.cover {
Expand All @@ -402,7 +402,7 @@
box-sizing: border-box;
border-bottom: 0 !important;
display: flex;
margin: 20upx 0;
margin: 10px 0;
}
.info .col {
Expand All @@ -413,19 +413,17 @@
}
.info image {
width: 24upx;
height: 24upx;
position: relative;
top: 4upx;
width: 12px;
height: 12px;
}
.info text {
margin-left: 4px;
}
.icon {
width: 64upx;
height: 64upx;
width: 32px;
height: 32px;
margin: 0 auto;
display: block;
}
Expand All @@ -435,12 +433,12 @@
}
.list-users .col-4 {
margin-bottom: 60upx;
margin-bottom: 30px;
}
.list-users image {
width: 160upx;
height: 160upx;
width: 80px;
height: 80px;
border-radius: 50%;
border: 1px solid #ddd;
}
Expand All @@ -449,7 +447,6 @@
.info image {
max-width: 18px;
max-height: 18px;
top: 3px;
margin-right: 6px;
}
Expand All @@ -464,9 +461,20 @@
.list .color-grey {
line-height: 200%;
}
.cover {
width: 170px;
height: 223.5px;
}
.col-4 {
flex: 0 0 25%;
max-width: 25%;
}
}
@media (min-width: 1000px){
.col-4 {
flex: 0 0 20%;
max-width: 20%;
}
}
</style>
</style>

0 comments on commit 948bc72

Please sign in to comment.