Commit 9ac510660b169fba52db2b3b3305458e65396e38
1 parent
745bfd2f
init
Showing
2 changed files
with
12 additions
and
2 deletions
src/components/discountZone/discountZone.vue
| 1 | 1 | <template> |
| 2 | 2 | <div> |
| 3 | + <titleBox :titles="titles"></titleBox> | |
| 3 | 4 | <div class="item_box"> |
| 4 | 5 | <div class="left"> |
| 5 | 6 | <img src="/static/img/pic_1.jpg" alt="网家家"/> |
| ... | ... | @@ -15,13 +16,17 @@ |
| 15 | 16 | </template> |
| 16 | 17 | |
| 17 | 18 | <script> |
| 19 | + import titleBox from "@/components/titleBox/titleBox"; | |
| 18 | 20 | export default { |
| 19 | 21 | name: 'discountZone', |
| 20 | 22 | data () { |
| 21 | 23 | return { |
| 22 | - | |
| 24 | + titles:null | |
| 23 | 25 | } |
| 24 | 26 | }, |
| 27 | + components:{ | |
| 28 | + titleBox | |
| 29 | + }, | |
| 25 | 30 | created(){ |
| 26 | 31 | |
| 27 | 32 | }, | ... | ... |
src/components/preferential/preferential.vue
| 1 | 1 | <template> |
| 2 | 2 | <div> |
| 3 | + <titleBox :titles="titles"></titleBox> | |
| 3 | 4 | <div class="item_box"> |
| 4 | 5 | <div class="left"> |
| 5 | 6 | <img src="/static/img/pic_1.jpg" alt="网家家"/> |
| ... | ... | @@ -15,13 +16,17 @@ |
| 15 | 16 | </template> |
| 16 | 17 | |
| 17 | 18 | <script> |
| 19 | + import titleBox from "@/components/titleBox/titleBox"; | |
| 18 | 20 | export default { |
| 19 | 21 | name: 'discountZone', |
| 20 | 22 | data () { |
| 21 | 23 | return { |
| 22 | - | |
| 24 | + titles:null | |
| 23 | 25 | } |
| 24 | 26 | }, |
| 27 | + components:{ | |
| 28 | + titleBox | |
| 29 | + }, | |
| 25 | 30 | created(){ |
| 26 | 31 | |
| 27 | 32 | }, | ... | ... |