File tree 1 file changed +51
-0
lines changed
Filter options
1 file changed +51
-0
lines changed
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" book-content" >
3
+ <div id =" __wrapper" >
4
+ <main class =" container" >
5
+ <p class =" dim text-center page-header" v-show =" !this.$store.state.user.isLogin" >已经购买,需要重新下载?点击<router-link to =" /login/" >登录</router-link ></p >
6
+ <p class =" dim text-center page-header" v-show =" this.$store.state.user.isLogin" >欢迎您 {{ this.$store.state.user.email}},您可以下载已购内容或进行新的购买</p >
7
+ <div class =" row" >
8
+ <book-card v-for =" item in bookInfo" :key =" item.id" :book-cover-image =item.bookCoverImage :book-price =" item.bookPrice" :book-detail-info =item.bookDetailInfo ></book-card >
9
+ </div >
10
+ </main >
11
+ </div >
12
+ </div >
13
+ </template >
14
+
15
+ <script >
16
+ import BookCard from ' @/components/bookCard'
17
+ export default {
18
+ components: {
19
+ BookCard
20
+ },
21
+ data () {
22
+ return {
23
+ bookInfo: [{
24
+ bookCoverImage: require (' ../assets/swifter-tips-cover.png' ),
25
+ bookPrice: ' 49.00' ,
26
+ bookDetailInfo: ' /products/swifter-tips'
27
+ },
28
+ {
29
+ bookCoverImage: require (' ../assets/functional-swift-cover.png' ),
30
+ bookPrice: ' 69.00' ,
31
+ bookDetailInfo: ' /products/functional-swift'
32
+ },
33
+ {
34
+ bookCoverImage: require (' ../assets/core-data-cover.png' ),
35
+ bookPrice: ' 69.00' ,
36
+ bookDetailInfo: ' /products/core-data'
37
+ },
38
+ {
39
+ bookCoverImage: require (' ../assets/advanced-swift-cover.png' ),
40
+ bookPrice: ' 69.00' ,
41
+ bookDetailInfo: ' /products/advanced-swift'
42
+ }]
43
+ }
44
+ }
45
+ }
46
+ </script >
47
+
48
+ <style scoped>
49
+ @import ' ../style/style.css' ;
50
+ @import ' ../style/bootstrap-flat.min.css' ;
51
+ </style >
You can’t perform that action at this time.
0 commit comments