-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from xingbofeng/dev
release:bookmark:: 发布1.3.0版本,准备并入主分支
- Loading branch information
Showing
27 changed files
with
698 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
|
||
install: | ||
- npm install | ||
- npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<div class="reviewItem"> | ||
<router-link | ||
:to="`/review/${review.id}`" | ||
> | ||
<h3>{{ review.title }}</h3> | ||
<div class="authorDetail"> | ||
<strong>{{ review.author.name }}</strong> | ||
<star | ||
:average="average" | ||
:length="0.24" | ||
/> | ||
</div> | ||
<p>{{ review.summary }}</p> | ||
</router-link> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Star from './Star'; | ||
export default { | ||
name: 'ReviewItem', | ||
components: { | ||
Star, | ||
}, | ||
props: ['review'], | ||
computed: { | ||
average() { | ||
const { value, max } = this.review.rating; | ||
return (value / max * 10); // eslint-disable-line | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.reviewItem { | ||
padding: 0.2rem 0.36rem 0.3rem; | ||
} | ||
h3 { | ||
color: #494949; | ||
font-weight: 500; | ||
font-size: 0.34rem; | ||
line-height: 1.41; | ||
margin-bottom: 0.12rem; | ||
} | ||
strong { | ||
color: #494949; | ||
font-size: 0.24rem; | ||
margin-right: 0.04rem; | ||
} | ||
.authorDetail { | ||
display: flex; | ||
align-items: center; | ||
} | ||
p { | ||
color: #aaa; | ||
font-size: 0.24rem; | ||
line-height: 1.5; | ||
margin-top: 0.1rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,6 @@ | |
<script> | ||
export default { | ||
name: 'Template', | ||
data() { | ||
return { | ||
msg: 'template', | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
|
Oops, something went wrong.