...
|
...
|
@@ -2,11 +2,14 @@ |
|
|
<div class="resources">
|
|
|
<template v-for="floor in resources">
|
|
|
<div class="focus" v-if="floor.focus" v-bind:style="{height: '182px'}">
|
|
|
<focus v-bind:list="floor.data"></focus>
|
|
|
<focus v-bind:floor="floor.data"></focus>
|
|
|
</div>
|
|
|
<div class="title-image" v-if="floor.titleImage">
|
|
|
<title-image v-bind:floor="floor.data"></title-image>
|
|
|
</div>
|
|
|
<div class="goods" v-if="floor.goods">
|
|
|
<goods v-bind:floor="floor.data"></goods>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -16,6 +19,7 @@ |
|
|
const tip = require('common/tip');
|
|
|
const focus = require('component/resources/focus.vue');
|
|
|
const titleImage = require('component/resources/title-image.vue');
|
|
|
const goods = require('component/resources/goods.vue');
|
|
|
|
|
|
module.exports = {
|
|
|
data() {
|
...
|
...
|
@@ -25,7 +29,8 @@ |
|
|
},
|
|
|
components: {
|
|
|
focus: focus,
|
|
|
titleImage: titleImage
|
|
|
titleImage: titleImage,
|
|
|
goods: goods
|
|
|
},
|
|
|
init() {
|
|
|
$.ajax({
|
...
|
...
|
|