...
|
...
|
@@ -10,19 +10,11 @@ |
|
|
<i class="icon icon-search-new" @click="searchSliderSwitch"></i>
|
|
|
</span>
|
|
|
</header-box>
|
|
|
<div class="resources" v-for="floor in data.data">
|
|
|
<resource-category :gender="gender" :value="data.sort" v-if="floor.category"></resource-category>
|
|
|
<resource-focus-image v-if="floor.template_name=='focus'" :value="floor.data"></resource-focus-image>
|
|
|
<resource-single-image v-if="floor.template_name =='newSingleImage'"
|
|
|
:value="floor.data.list[0]"></resource-single-image>
|
|
|
<div class="shop-floor" v-if="floor.template_name=='shopFloor'">
|
|
|
<resource-single-image :value="floor.data.list[0]"></resource-single-image>
|
|
|
<resource-product-list :value="products"></resource-product-list>
|
|
|
</div>
|
|
|
<div class="new-arrival-floor" v-if="floor.template_name=='BlkNewProductFloorResource'">
|
|
|
<resource-product-list :value="floor.data.list"></resource-product-list>
|
|
|
</div>
|
|
|
</div>
|
|
|
<component
|
|
|
:is="component.template_name"
|
|
|
v-for="(component, index) in floors.filter(c => ['focus', 'category', 'newSingleImage'].some(k => k === c.template_name) )"
|
|
|
:value="component.data"
|
|
|
:key="index"></component>
|
|
|
</layout-body>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -102,8 +94,8 @@ |
|
|
gender() {
|
|
|
return this.$store.state.channel.gender;
|
|
|
},
|
|
|
data() {
|
|
|
return this.$store.state.channel[this.gender];
|
|
|
floors() {
|
|
|
return this.$store.state.channel[this.gender].floors;
|
|
|
}
|
|
|
},
|
|
|
asyncData({store, router: to}) {
|
...
|
...
|
@@ -111,9 +103,9 @@ |
|
|
return store.dispatch(FETCH_CHANNEL_REQUEST, gender);
|
|
|
},
|
|
|
components: {
|
|
|
ResourceCategory,
|
|
|
ResourceFocusImage,
|
|
|
ResourceSingleImage,
|
|
|
focus: ResourceFocusImage,
|
|
|
newSingleImage: ResourceSingleImage,
|
|
|
category: ResourceCategory,
|
|
|
ResourceProductList,
|
|
|
SearchSlider
|
|
|
}
|
...
|
...
|
|