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
fc7522a77c9d9c51a4dbf2827bc1ec47c6ae2f3a
1 parent
dfc622e3
审核未通过
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
apps/pages/userpage/components/author-article-item.vue
apps/pages/userpage/components/author-article-item.vue
View file @
fc7522a
...
...
@@ -4,6 +4,7 @@
<div v-else class="wf-item-mid">
<a v-if="actionUrl" class="action-article" :href="actionUrl" target="_blank"></a>
<div class="layer-image" @click="onClick" :style="`height: ${data.blockWidth * data.scale}px`">
<div v-if="data.authStatus == 2" class="failed-cover">未审核通过</div>
<ImageFormat :mode="1" :src="data.coverImage" :width="imgWidth" :height="Math.floor(data.scale * imgWidth)"></ImageFormat>
</div>
<div v-if="data.content" class="description" @click="onClick('article')">
...
...
@@ -26,7 +27,6 @@
</div>
</template>
<script>
import YAS from 'utils/yas-constants';
export default {
...
...
@@ -62,6 +62,8 @@ export default {
actionUrl() {
if (this.data.sort === 3) {
return this.data.actionUrl;
} else if (+this.data.authStatus === 2) {
return `?openby:yohobuy={"action":"go.editPost","params":{"articleId":"${this.data.articleId}"}}`;
}
return '';
...
...
@@ -115,6 +117,22 @@ export default {
.layer-image {
background-color: #f4f4f4;
min-height: 100px;
position: relative;
.failed-cover {
font-size: 26px;
color: #fff;
font-weight: 300;
background-color: rgba(0, 0, 0, 0.5);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
}
> img {
width: 100%;
...
...
Please
register
or
login
to post a comment