Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
ba718523acf63a5ba42a9a4985ac65c93ffc198b
1 parent
d7ea9a32
fix
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
apps/components/layouts/layout-header.vue
apps/components/products/product-group-item.vue
apps/pages/userpage/author.vue
apps/pages/userpage/components/fav-tab-block.vue
apps/components/layouts/layout-header.vue
View file @
ba71852
...
...
@@ -7,7 +7,7 @@
</div>
<div class="title flex" :style="{opacity}">
<slot>
{{title}}
<span class="title-inner">{{title}}</span>
</slot>
</div>
<div class="opts flex" :style="{opacity}">
...
...
@@ -120,6 +120,15 @@ export default {
letter-spacing: 0.09PX;
overflow: hidden;
z-index: 1;
.title-inner {
display: inline-block;
max-width: 90%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}
}
.opts {
...
...
apps/components/products/product-group-item.vue
View file @
ba71852
...
...
@@ -100,7 +100,9 @@ export default {
}
},
onClick() {
this.product.product_skn && this.$yoho.goProductDetail(this.product.product_skn);
let skn = this.product.product_skn || this.product.productSkn;
skn && this.$yoho.goProductDetail(skn);
}
}
};
...
...
apps/pages/userpage/author.vue
View file @
ba71852
...
...
@@ -492,10 +492,12 @@
}
.num {
min-width: 30px;
font-size: 28px;
font-weight: 500;
padding-bottom: 6px;
display: block;
text-align: center;
}
.name {
...
...
apps/pages/userpage/components/fav-tab-block.vue
View file @
ba71852
<template>
<div class="tabs-wrap">
<ul class="tabs-list">
<li v-for="(item, index) in tabList" :key="index" :class="{'active': active === index}" @click="changeType(index, true)">
{{item.name}}
<span v-if="item.num" class="t-num">({{item.num}})</span>
<li v-for="(item, index) in tabList" :key="index" @click="changeType(index, true)">
<div class="tabs-item" :class="{'active': active === index}">
{{item.name}}
<span v-if="item.num" class="t-num">({{item.num}})</span>
</div>
</li>
</ul>
</div>
...
...
@@ -68,7 +70,7 @@ export default {
<style>
.tabs-wrap {
padding:
20px 30px
30px;
padding:
0
30px;
background-color: #fff;
display: flex;
justify-content: space-between;
...
...
@@ -81,7 +83,7 @@ export default {
font-size: 32px;
color: #b0b0b0;
font-weight: 300;
margin-right: 40px
;
padding: 20px 40px 30px 0
;
}
.active {
...
...
Please
register
or
login
to post a comment