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