72 lines
2.2 KiB
Vue
72 lines
2.2 KiB
Vue
<template>
|
|
<view :class="theme_view">
|
|
<view v-if="(propConfig || null) != null && (propData || null) != null && propData.length > 0">
|
|
<block v-for="(floor, index) in propData" :key="index">
|
|
<block v-if="floor.goods_list.length > 0 && floor.home_data_location == propLocation">
|
|
<component-goods-list
|
|
:propData="floor"
|
|
propMoreUrlKey="url"
|
|
:propLabel="propLabel"
|
|
:propIsAutoPlay="(propConfig.is_home_auto_play || 0) == 1"
|
|
:propCurrencySymbol="propCurrencySymbol"
|
|
:propIsCartParaCurve="propIsCartParaCurve"
|
|
:propSource="propSource"
|
|
:propOpenCart="floor.style_type === '2' ? false : true"
|
|
></component-goods-list>
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
const app = getApp();
|
|
import componentGoodsList from '@/components/goods-list/goods-list';
|
|
export default {
|
|
data() {
|
|
return {
|
|
theme_view: app.globalData.get_theme_value_view(),
|
|
};
|
|
},
|
|
components: {
|
|
componentGoodsList,
|
|
},
|
|
props: {
|
|
propCurrencySymbol: {
|
|
type: String,
|
|
default: app.globalData.currency_symbol(),
|
|
},
|
|
propLocation: {
|
|
type: [String, Number],
|
|
default: 0,
|
|
},
|
|
propConfig: {
|
|
type: [String, Object],
|
|
default: null,
|
|
},
|
|
propData: {
|
|
type: Array,
|
|
default: [],
|
|
},
|
|
propLabel: {
|
|
type: [Array, Object, String],
|
|
default: null,
|
|
},
|
|
propIsCartParaCurve: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
// 来源
|
|
propSource: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
propOpenCart: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
},
|
|
methods: {},
|
|
};
|
|
</script>
|
|
<style></style>
|