Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7adcda2

Browse filesBrowse files
committed
封装 products 作者组件
1 parent 5e91104 commit 7adcda2
Copy full SHA for 7adcda2

File tree

1 file changed

+51
-0
lines changed
Filter options

1 file changed

+51
-0
lines changed
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<template>
2+
<div class="product-info row">
3+
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="authorList.length > 0">
4+
<h4 class="section-title">关于作者</h4>
5+
<ul class="product-authors">
6+
<li class="product-author" v-for="author in authorList">
7+
<figure class="product-media_image product-author-photo">
8+
<img width="200" height="200" :src=author.authorAvatar>
9+
</figure>
10+
<div class="product-author-body">
11+
<h4 class="product-author-name">
12+
<a :href=author.authorLink>{{author.authorName}}</a>
13+
</h4>
14+
<div class="product-author-bio" v-html=author.authorDescribe>
15+
</div>
16+
</div>
17+
</li>
18+
</ul>
19+
</div>
20+
<div class="col-xs-12 col-xs-offset-0 col-sm-6 col-sm-offset-0" v-if="translatorList.length > 0">
21+
<h4 class="section-title">关于译者</h4>
22+
<ul class="product-authors">
23+
<li class="product-author" v-for="translator in translatorList">
24+
<figure class="product-media_image product-author-photo">
25+
<img width="200" height="200" :src=translator.authorAvatar>
26+
</figure>
27+
<div class="product-author-body">
28+
<h4 class="product-author-name">
29+
<a :href=translator.authorLink>{{translator.authorName}}</a>
30+
</h4>
31+
<div class="product-author-bio" v-html=translator.authorDescribe>
32+
</div>
33+
</div>
34+
</li>
35+
</ul>
36+
</div>
37+
</div>
38+
</template>
39+
40+
<script>
41+
export default {
42+
props: [
43+
'author-list',
44+
'translator-list'
45+
]
46+
}
47+
</script>
48+
49+
<style>
50+
51+
</style>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.