<template>
    <div class="componentWindowBox">
        <!--开发助手-->
        <!-- <div class="testAssistant">
            <div class="testAssistantTitle">
                代码助手：
            </div>
            <div class="testAssistantContent">
                <div class="testAssistantContentItem">
                    <div>当前板块id:</div>
                    <div>{{this.$store.state.template.editSectorId}}</div>
                </div>
                <div class="testAssistantContentItem">
                    <div>当前板块所在的页面:</div>
                    <div v-if="this.$store.state.template.pageStatus == 1">首页</div>
                    <div v-if="this.$store.state.template.pageStatus == 2">分类页</div>
                    <div v-if="this.$store.state.template.pageStatus == 3">列表页</div>
                    <div v-if="this.$store.state.template.pageStatus == 4">详情页</div>
                    <div v-if="this.$store.state.template.pageStatus == 5">搜索页</div>
                    <div v-if="this.$store.state.template.pageStatus == 6">底部列表页</div>
                    <div v-if="this.$store.state.template.pageStatus == 7">底部详情页</div>
                </div>
                <div class="testAssistantContentItem">
                    <div>当前组件在此板块中的位置:</div>
                    <div>{{this.$store.state.template.editComponentSort}}</div>
                </div>
                <div class="testAssistantContentItem">
                    <div>当前板块在Json数据中的位置:</div>
                    <div>{{this.$store.state.template.editDataSort}}</div>
                </div>
                <div class="testAssistantContentItem">
                    <div>当前组件样式:</div>
                    <div>{{this.$store.state.template.editComponentStyle}}</div>
                </div>
            </div>
        </div> -->
        <div class="componentStyleBox">
            <div class="componentStyleBoxContent">
                <!--首页-->
                <!--1.头条组件 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 1 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle1">
                    <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                        <img src="http://img.bjzxtw.org.cn/pre/image/png/20250603/1748914467583559.png"/>
                        <div class="componentScrollBoxItemTitle">大标题带三个子标题</div>
                    </div>
                    <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                        <img src="http://img.bjzxtw.org.cn/pre/image/png/20250603/1748935989462533.png"/>
                        <div class="componentScrollBoxItemTitle">大标题带二个子标题</div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 1 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle1">
                    <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                        <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750834310580793.jpg"/>
                        <div class="componentScrollBoxItemTitle">大标题带三个子标题滚动显示</div>
                    </div>
                    <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                        <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750834351793480.jpg"/>
                        <div class="componentScrollBoxItemTitle">大标题带二个子标题滚动显示</div>
                    </div>
                </div>
                <!--1.头条组件 end---------------------------------------->

                <!--2.焦点图组件 start---------------------------------------->
                <div v-if="this.$store.state.template.editComponentType == 2" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250604/174901939842760.jpg"/>
                            <div class="componentScrollBoxItemTitle">底部显示当前页码</div>
                        </div>
                    </div>
                </div>
                <!--2.焦点图组件 end---------------------------------------->

                <!--3.焦点图组件 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 3 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250604/1749019582186582.jpg"/>
                            <div class="componentScrollBoxItemTitle">主题色每组标题</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250604/1749019602825563.jpg"/>
                            <div class="componentScrollBoxItemTitle">加粗每组标题</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 3 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750835163730008.jpg"/>
                            <div class="componentScrollBoxItemTitle">主题色每组标题</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750835191400507.jpg"/>
                            <div class="componentScrollBoxItemTitle">加粗每组标题</div>
                        </div>
                    </div>
                </div>
                <!--3.焦点图组件 start---------------------------------------->

                <!--4.两列布局新闻组件1 左侧 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 4 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749102223295015.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧大图在上小图在下,右侧标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749102232438519.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧标题加粗,右侧大图在上小图在下</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 4 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750835971380780.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧大图在上小图在下,右侧标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750836006136326.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧标题加粗,右侧大图在上小图在下</div>
                        </div>
                    </div>
                </div>
                <!--4.两列布局新闻组件1 左侧 end---------------------------------------->

                <!--5.两列布局新闻组件1 右侧 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 5 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749112729438904.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片,右侧标题灰色标记</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749113028559940.jpg"/>
                            <div class="componentScrollBoxItemTitle">右侧图片,左侧标题灰色标记</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 5 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750836353320798.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片,右侧标题灰色标记</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750836359627269.jpg"/>
                            <div class="componentScrollBoxItemTitle">右侧图片,左侧标题灰色标记</div>
                        </div>
                    </div>
                </div>
                <!--5.两列布局新闻组件1 右侧 end---------------------------------------->

                <!--6.两列布局新闻组件2 左侧 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 6 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749176134863144.jpg"/>
                            <div class="componentScrollBoxItemTitle">两列图文图片置顶</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749176145666694.jpg"/>
                            <div class="componentScrollBoxItemTitle">两列图文图片置底</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 6 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750836985667437.jpg"/>
                            <div class="componentScrollBoxItemTitle">两列图文图片置顶</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750837005616905.jpg"/>
                            <div class="componentScrollBoxItemTitle">两列图文图片置底</div>
                        </div>
                    </div>
                </div>
                <!--6.两列布局新闻组件2 左侧 end---------------------------------------->

                <!--7.两列布局新闻组件2 右侧 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 7 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749178122927942.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在上，列表在下首标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749178130533785.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在下，列表在上首标题加粗</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 7 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750837510282402.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在上，列表在下首标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750837527816673.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在下，列表在上首标题加粗</div>
                        </div>
                    </div>
                </div>
                <!--7.两列布局新闻组件2 右侧 end---------------------------------------->

                <!--8.两列布局新闻组件3 左侧上半部分 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 8 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749203040403256.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在左，列表灰色标识</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749203054268297.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片与文字混合，列表灰色标识</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 8 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750838079739186.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在左，列表灰色标识</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/175083809079978.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片与文字混合，列表灰色标识</div>
                        </div>
                    </div>
                </div>
                <!--8.两列布局新闻组件3 左侧上半部分 end---------------------------------------->

                <!--9.两列布局新闻组件3 左侧下半部分 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 9 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749429181784621.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在上，列表标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749430114351294.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在下，列表标题加粗</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 9 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750838346979502.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在上，列表标题加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750838355402392.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片在下，列表标题加粗</div>
                        </div>
                    </div>
                </div>
                <!--9.两列布局新闻组件3 左侧下半部分 end---------------------------------------->

                <!--10.两列布局新闻组件3 右侧部分 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 10 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749430470981307.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片角标悬浮在上</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749430717156318.jpg"/>
                            <div class="componentScrollBoxItemTitle">角标与左侧保持间距</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 10 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750838618610373.jpg"/>
                            <div class="componentScrollBoxItemTitle">图片角标悬浮在上</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/175083862410673.jpg"/>
                            <div class="componentScrollBoxItemTitle">角标与左侧保持间距</div>
                        </div>
                    </div>
                </div>
                <!--10.两列布局新闻组件3 右侧部分 end---------------------------------------->

                <!--11.带广告图文组合 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 11 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749451127220319.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片新闻在上，右侧广告在下，加粗标题</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749453960887626.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片新闻在下，右侧广告在下，加粗标题</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 11 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle2">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750839094199784.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片新闻在上，右侧广告在下，加粗标题</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750839116948230.jpg"/>
                            <div class="componentScrollBoxItemTitle">左侧图片新闻在下，右侧广告在下，加粗标题</div>
                        </div>
                    </div>
                </div>
                <!--11.带广告图文组合 end---------------------------------------->

                <!--频道页-->
                <!--12.频道菜单 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 12 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750322353282870.jpg"/>
                            <div class="componentScrollBoxItemTitle">居中标题，带分割线</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750322363602937.jpg"/>
                            <div class="componentScrollBoxItemTitle">居中标题，不带分割线</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 12 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250626/1750915171966815.jpg"/>
                            <div class="componentScrollBoxItemTitle">底部分割线，选中高亮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250626/1750915202120258.jpg"/>
                            <div class="componentScrollBoxItemTitle">选中加亮不带分割线</div>
                        </div>
                    </div>
                </div>
                <!--12.频道菜单 end---------------------------------------->

                <!--13.滚动图文组合 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 13 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750323726771115.jpg"/>
                            <div class="componentScrollBoxItemTitle">标题不加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750323764774081.jpg"/>
                            <div class="componentScrollBoxItemTitle">黑色标题加粗</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 13 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750840674639304.jpg"/>
                            <div class="componentScrollBoxItemTitle">首行不加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750840681143856.jpg"/>
                            <div class="componentScrollBoxItemTitle">列表带前缀</div>
                        </div>
                    </div>
                </div>
                <!--13.滚动图文组合 end---------------------------------------->

                <!--列表页-->
                <!--14.主列表 start---------------------------------------->
                <!--样式1 样式2 一样-->
                <div v-if="this.$store.state.template.editComponentType == 14" class="componentScrollBoxStyle3">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750656483238477.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，每栏首行加粗</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750656506203472.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，首行不加粗</div>
                        </div>
                    </div>
                </div>
                <!--14.主列表 end---------------------------------------->

                <!--15.最新资讯 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 15 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750656919885412.jpg"/>
                            <div class="componentScrollBoxItemTitle">上左图片，下方文字</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750656926318156.jpg"/>
                            <div class="componentScrollBoxItemTitle">上右图片，下方文字</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 15 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750841517342507.jpg"/>
                            <div class="componentScrollBoxItemTitle">上左图片，下方文字</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750841553329686.jpg"/>
                            <div class="componentScrollBoxItemTitle">上右图片，下方文字</div>
                        </div>
                    </div>
                </div>
                <!--15.最新资讯 end---------------------------------------->

                <!--15.热点精选 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 16 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750657338556788.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，前三条高亮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250623/1750657346490293.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，全部高亮</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 16 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750841811939508.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，前三条高亮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750841826309013.jpg"/>
                            <div class="componentScrollBoxItemTitle">实线分割，全部高亮</div>
                        </div>
                    </div>
                </div>
                <!--15.热点精选 end---------------------------------------->

                <!--搜索页-->
                <!--16.搜索框 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 17 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250624/1750728922706490.jpg"/>
                            <div class="componentScrollBoxItemTitle">主题色搜索按钮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250624/1750728937165859.jpg"/>
                            <div class="componentScrollBoxItemTitle">底部投影加白色按钮</div>
                        </div>
                    </div>
                </div>
                <!--样式2-->
                <div v-if="this.$store.state.template.editComponentType == 17 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle1">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750842329479010.jpg"/>
                            <div class="componentScrollBoxItemTitle">主题色搜索按钮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750842336116263.jpg"/>
                            <div class="componentScrollBoxItemTitle">底部投影加白色按钮</div>
                        </div>
                    </div>
                </div>
                <!--16.搜索框 end---------------------------------------->

                <!--单页列表和单页详情 左侧悬浮列表 start---------------------------------------->
                <!--样式1-->
                <div v-if="this.$store.state.template.editComponentType == 18 && this.$store.state.template.editWebsiteClass == 1" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/png/20250624/1750749103943773.png"/>
                            <div class="componentScrollBoxItemTitle">仅文字高亮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250624/1750749121350038.jpg"/>
                            <div class="componentScrollBoxItemTitle">文字加背景色</div>
                        </div>
                    </div>
                </div>
                <div v-if="this.$store.state.template.editComponentType == 18 && this.$store.state.template.editWebsiteClass == 2" class="componentScrollBoxStyle4">
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 1 ? 'active' : '']" @click="selectUseStyleNumber(1)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750842971912654.jpg"/>
                            <div class="componentScrollBoxItemTitle">仅文字高亮</div>
                        </div>
                    </div>
                    <div class="componentScrollbigBog">
                        <div :class="['componentScrollBoxItem', this.$store.state.template.editComponentStyle === 2 ? 'active' : '']" @click="selectUseStyleNumber(2)">
                            <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750842988744725.jpg"/>
                            <div class="componentScrollBoxItemTitle">文字加背景色</div>
                        </div>
                    </div>
                </div>
                <!--单页列表和单页详情 左侧悬浮列表 end---------------------------------------->
            </div>
        </div>
        <div class="componentWindowBoxFooter">
            <el-button type="info" @click="closeEditWindow">取消</el-button>
            <el-button type="primary" @click="submitData">确定</el-button>
        </div>
    </div>
</template>

<script>
export default {
  props: {
    
  },
  data() {
    return {
      //选择的组件样式
      useStyleNumber:0,
    }
  },
  methods: {
    //选择组件样式
    selectUseStyleNumber(number){
      this.$store.commit('template/selectComponentStyleNumber',number);
    },
    //关闭选择组件样式弹出框
    closeEditWindow(){
      this.$store.commit('template/closeComponentStyleStatus');
    },
    //提交编辑的数据
    submitData(){
      //提交修改
      this.$store.commit('template/setComponentStyleNumber');
      //关闭窗口
      this.$store.commit('template/closeComponentStyleStatus');
      //当前保存完了的数据
      //console.log(this.$store.state.template.pageData);
    }
  },
  mounted() {
    
  },
};
</script>

<style scoped lang="less">
.componentWindowBoxFooter {
    text-align: right;
}

//1.头条样式选择
.componentStyleBox {
    .componentStyleBoxContent {
        height: 400px;
        margin-bottom: 30px;
        overflow-y: auto;
        padding-right: 10px;

        //样式 一行一个
        .componentScrollBoxStyle1 {
            .componentScrollBoxItem {
                box-sizing: border-box;
                cursor: pointer;
                border:2px solid #fff;
                padding: 8px;
                background: #fff;
                margin-bottom: 20px;
                .componentScrollBoxItemTitle {
                    text-align: center;
                    font-size: 14px;
                    color: #333;
                    margin-top: 10px;
                    font-weight: bold;
                }
                img {
                    display: block;
                    width: 100%;
                }
            }
            .active {
                border:2px dashed #5570F1;
                padding: 8px;
                background: #e5e5ff;
                transition: all 0.5s;
            }
        }

        //一行两个
        .componentScrollBoxStyle2 {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            .componentScrollbigBog{
                width: 50%;
                box-sizing: border-box;
                margin-bottom: 20px;
                &:nth-child(odd) {
                    padding-right: 10px;
                }
                &:nth-child(even) {
                    padding-left: 10px;
                }
                .componentScrollBoxItem {
                    width: 100%;
                    border:2px solid #FFF;
                    box-sizing: border-box;
                    cursor: pointer;
                    border:2px solid #fff;
                    padding: 8px;
                    background: #fff;
                    .componentScrollBoxItemTitle {
                        text-align: center;
                        font-size: 14px;
                        color: #333;
                        margin-top: 10px;
                        font-weight: bold;
                    }
                    img {
                        display: block;
                        width: 100%;
                    }
                }
                .active {
                    border:2px dashed #5570F1;
                    padding: 8px;
                    background: #e5e5ff;
                    transition: all 0.5s;
                }
            }
        }

        //一行三个
        .componentScrollBoxStyle3 {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 2%;  // 使用gap属性来控制元素之间的间距
            .componentScrollbigBog{
                width: 32%;
                box-sizing: border-box;
                margin-bottom: 20px;
                .componentScrollBoxItem {
                    width: 100%;
                    border:2px solid #FFF;
                    box-sizing: border-box;
                    cursor: pointer;
                    border:2px solid #fff;
                    padding: 8px;
                    background: #fff;
                    .componentScrollBoxItemTitle {
                        text-align: center;
                        font-size: 14px;
                        color: #333;
                        margin-top: 10px;
                        font-weight: bold;
                    }
                    img {
                        display: block;
                        width: 100%;
                    }
                }
                .active {
                    border:2px dashed #5570F1;
                    padding: 8px;
                    background: #e5e5ff;
                    transition: all 0.5s;
                }
            }
        }

        //一行四个
        .componentScrollBoxStyle4 {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 2%;  // 使用gap属性来控制元素之间的间距
            .componentScrollbigBog{
                width: 23%;
                box-sizing: border-box;
                margin-bottom: 20px;
                .componentScrollBoxItem {
                    width: 100%;
                    border:2px solid #FFF;
                    box-sizing: border-box;
                    cursor: pointer;
                    border:2px solid #fff;
                    padding: 8px;
                    background: #fff;
                    .componentScrollBoxItemTitle {
                        text-align: center;
                        font-size: 14px;
                        color: #333;
                        margin-top: 10px;
                        font-weight: bold;
                    }
                    img {
                        display: block;
                        width: 100%;
                    }
                }
                .active {
                    border:2px dashed #5570F1;
                    padding: 8px;
                    background: #e5e5ff;
                    transition: all 0.5s;
                }
            }
        }

        //一行五个
        .componentScrollBoxStyle4 {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5%;  // 使用gap属性来控制元素之间的间距
            .componentScrollbigBog{
                width: 18.5%;
                box-sizing: border-box;
                margin-bottom: 20px;
                .componentScrollBoxItem {
                    width: 100%;
                    border:2px solid #FFF;
                    box-sizing: border-box;
                    cursor: pointer;
                    border:2px solid #fff;
                    padding: 8px;
                    background: #fff;
                    .componentScrollBoxItemTitle {
                        text-align: center;
                        font-size: 14px;
                        color: #333;
                        margin-top: 10px;
                        font-weight: bold;
                    }
                    img {
                        display: block;
                        width: 100%;
                    }
                }
                .active {
                    border:2px dashed #5570F1;
                    padding: 8px;
                    background: #e5e5ff;
                    transition: all 0.5s;
                }
            }
        }
    }
}

</style>
