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
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
39eaf568d00fb425fcbb57f0074b9eb005e1215f
2 parents
6e1545d4
148b6ed5
Merge branch 'master' of
http://git.yoho.cn/fe/yoho-community-web
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
apps/pages/article/components/article/article.vue
apps/pages/article/components/detail/article-body.vue
apps/pages/article/components/detail/tag-bar.vue
apps/pages/showorder/components/order-slide-item.vue
apps/store/article/guangProcess.js
apps/pages/article/components/article/article.vue
View file @
39eaf56
...
...
@@ -3,8 +3,10 @@
<Layout class="article">
<LayoutHeader theme="white" slot='header' :title="title" :share="shareData" :opacity="currentAuthor.opacity">
<template v-if="showHeader">
<WidgetAvatar class="widget-avatar" :src="currentAuthor.authorHeadIco" :width="70" :height="70"></WidgetAvatar>
<span class="user-name">{{currentAuthor.authorName}}</span>
<router-link class="avatar-wrapper" :to="`/grass/author/${currentAuthor.authorType}/${currentAuthor.authorUid}`">
<WidgetAvatar class="widget-avatar" :src="currentAuthor.authorHeadIco" :width="70" :height="70"></WidgetAvatar>
<span class="user-name">{{currentAuthor.authorName}}</span>
</router-link>
</template>
<template v-if="showHeader" v-slot:opts>
<WidgetFollow class="widget-follow" :author-uid="currentAuthor.authorUid" :follow="currentAuthor.hasAttention === 'Y'" @on-follow="follow => onFollow(currentAuthor, follow)"></WidgetFollow>
...
...
@@ -68,7 +70,8 @@ export default {
authorHeadIco: '',
hasAttention: 'N',
opacity: 1,
isShare: false
isShare: false,
authorType: 1
}
};
},
...
...
@@ -102,10 +105,13 @@ export default {
this.currentId = item.data.articleId;
this.$emit('on-scroll-change', {articleId: item.data.articleId});
}
this.currentAuthor.authorUid = item.data.authorUid;
this.currentAuthor.authorName = item.data.authorName;
this.currentAuthor.authorHeadIco = item.data.authorHeadIco;
this.currentAuthor.hasAttention = item.data.hasAttention;
this.currentAuthor.authorType = item.data.authorType;
this.showHeader = true;
const offsetTop = scrollTop - item.top;
...
...
@@ -176,6 +182,12 @@ export default {
background-color: #f0f0f0;
}
.avatar-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
.widget-avatar {
width: 52px;
height: 52px;
...
...
apps/pages/article/components/detail/article-body.vue
View file @
39eaf56
...
...
@@ -119,6 +119,7 @@ export default {
}
.zanbar {
margin-top: 40px;
margin-bottom: 40px;
padding-left: 30px;
padding-right: 30px;
...
...
apps/pages/article/components/detail/tag-bar.vue
View file @
39eaf56
...
...
@@ -16,7 +16,7 @@ export default {
<style :lang="scss" scoped>
.item {
margin-bottom: 20px;
margin-
lef
t: 20px;
margin-
righ
t: 20px;
}
</style>
...
...
apps/pages/showorder/components/order-slide-item.vue
View file @
39eaf56
...
...
@@ -63,7 +63,6 @@ export default {
},
onclick(e) {
console.log('huangtao12=>',e);
},
slideChangeHandler(currentPageIndex) {
this.currentPageIndex = currentPageIndex;
...
...
apps/store/article/guangProcess.js
View file @
39eaf56
...
...
@@ -350,12 +350,9 @@ export function pushGoodsInfo(finalDetail, goodsList, favsList) {
finalDetail
[
key
].
relatedReco
.
goods
=
[];
forEach
(
goodsSkn
,
(
item
,
subKey
)
=>
{
console
.
log
(
goodsObj
,
item
)
if
(
goodsObj
[
item
])
{
console
.
log
(
goodsObj
[
item
])
finalDetail
[
key
].
relatedReco
.
goods
[
subKey
]
=
goodsObj
[
item
];
}
else
{
console
.
log
(
'delete'
);
delete
finalDetail
[
key
].
relatedReco
.
goods
[
subKey
];
}
});
...
...
Please
register
or
login
to post a comment