quanwei
2025-11-03 adf46e209a824f5d206fe549a252fd0184533b3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<template>
    <view>
        <block v-for="(item,index) in diyItems" :key="index">
 
            <!--搜索框-->
            <!--     <template v-if="item.type==='search'">
                <search :itemData="item"></search>
            </template> -->
 
            <!--轮播图-->
            <template v-if="item.type==='banner'&&item.data!=null">
                <banner :itemData="item"></banner>
            </template>
 
            <!--单组图-->
            <template v-if="item.type==='imageSingle'&&item.data!=null">
                <imagesingle :itemData="item"></imagesingle>
            </template>
 
            <!-- 橱窗-->
            <template v-if="item.type == 'window'&&item.data!=null">
                <windows :itemData="item"></windows>
            </template>
 
            <!-- 视频组-->
            <template v-if="item.type == 'video'">
                <videos :itemData="item"></videos>
            </template>
 
            <!--文章-->
            <template v-if="item.type == 'article'&&item.data!=null">
                <articles :itemData="item"></articles>
            </template>
 
            <!--头条快报-->
            <template v-if="item.type == 'special'&&item.data!=null">
                <special :itemData="item"></special>
            </template>
 
            <!--公告组-->
            <template v-if="item.type == 'notice'">
                <notice :itemData="item"></notice>
            </template>
            <!--标题组-->
            <template v-if="item.type == 'title'">
                <titles :itemData="item"></titles>
            </template>
            <!--导航组-->
            <template v-if="item.type==='navBar'&&item.data!=null">
                <navBar :itemData="item"></navBar>
            </template>
 
            <!--商品组-->
            <template v-if="item.type==='product'&&item.data!=null">
                <product :itemData="item" v-if="index_open_city==0"></product>
                <productCity v-if="index_open_city==1" :itemData="item" :city_supplier_ids="city_supplier_ids"></productCity>
            </template>
            <!--优惠券-->
            <template v-if="item.type==='coupon'&&item.data!=null">
                <coupon :itemData="item"></coupon>
            </template>
 
            <!--门店-->
            <template v-if="item.type == 'store'&&item.data!=null">
                <store :itemData="item"></store>
            </template>
 
            <!--客服-->
            <template v-if="item.type == 'service'">
                <service :itemData="item"></service>
            </template>
 
            <!--富文本-->
            <template v-if="item.type==='richText'">
                <richText :itemData="item"></richText>
            </template>
 
            <!--辅助空白-->
            <template v-if="item.type == 'blank'">
                <blank :itemData="item"></blank>
            </template>
 
            <!--辅助线-->
            <template v-if="item.type == 'guide'">
                <guide :itemData="item"></guide>
            </template>
 
            <!--秒杀-->
            <template v-if="item.type == 'seckillProduct'&&item.data!=null">
                <seckillProduct :itemData="item"></seckillProduct>
            </template>
            <!--预告-->
            <template v-if="item.type == 'previewProduct'&&item.data!=null">
                <previewProduct :itemData="item"></previewProduct>
            </template>
            <!--拼团-->
            <template v-if="item.type == 'assembleProduct'&&item.data!=null">
                <assembleProduct :itemData="item"></assembleProduct>
            </template>
 
            <!--砍价-->
            <template v-if="item.type == 'bargainProduct'&&item.data!=null">
                <bargainProduct :itemData="item"></bargainProduct>
            </template>
 
            <!--直播-->
            <template v-if="item.type == 'live'&&item.data!=null">
                <live :itemData="item"></live>
            </template>
            
            <!--导航组-->
            <template v-if="item.type==='button'&&item.data!=null">
                <buttons :itemData="item"></buttons>
            </template>
 
        </block>
    </view>
</template>
 
<script>
    import search from './search/search';
    import banner from './banner/banner';
    import imagesingle from './imagesingle/imagesingle';
    import windows from './window/window';
    import videos from './videos/videos';
    import articles from './article/article';
    import special from './special/special';
    import notice from './notice/notice';
    import titles from './title/title';
    import coupon from './coupon/coupon';
    import richText from './richText/richText';
    import navBar from './navBar/navBar';
    import store from './store/store';
    import service from './service/service';
    import blank from './blank/blank';
    import guide from './guide/guide';
    import product from './product/product';
    import productCity from './product/productCity';
    import seckillProduct from './seckillProduct/seckillProduct';
    import assembleProduct from './assembleProduct/assembleProduct';
    import bargainProduct from './bargainProduct/bargainProduct';
    import previewProduct from './previewProduct/previewProduct';
    import live from './live/live';
    import buttons from './button/button'; // 按钮组 by lyzflash
 
    export default {
        components: {
            search,
            banner,
            imagesingle,
            windows,
            videos,
            articles,
            special,
            notice,
            titles,
            coupon,
            richText,
            navBar,
            store,
            service,
            blank,
            guide,
            product,
            seckillProduct,
            assembleProduct,
            bargainProduct,
            previewProduct,
            live,
            buttons, // 按钮组 by lyzflash
        },
        data() {
            return {
 
            }
        },
        props: ['diyItems','city_supplier_ids','index_open_city'],
        created() {}
    }
</script>
 
<style>
</style>