| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582 |
- <template>
- <div class="sectorBox">
- <div
- v-if="this.$store.state.template.sectorList.channelMenu"
- class="sectorItemBox"
- @click="addModule('channelMenu', 13, channelMenu)"
- @drag="drag('channelMenu', 13, channelMenu)"
- @dragend="dragend('channelMenu', 13, channelMenu)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelMenu.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.channelMenu.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelMenu.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.adSector"
- class="sectorItemBox"
- @click="addModule('adSector', 12, adSector)"
- @drag="drag('adSector', 12, adSector)"
- @dragend="dragend('adSector', 12, adSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.adSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.adSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.adSector.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.scrollTextSector"
- class="sectorItemBox"
- @click="addModule('scrollTextSector', 44, scrollTextSector)"
- @drag="drag('scrollTextSector', 44, scrollTextSector)"
- @dragend="dragend('scrollTextSector', 44, scrollTextSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.scrollTextSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.scrollTextSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.scrollTextSector.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.manyPictureSector"
- class="sectorItemBox"
- @click="addModule('manyPictureSector', 47, manyPictureSector)"
- @drag="drag('manyPictureSector', 47, manyPictureSector)"
- @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.manyPictureSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.manyPictureSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.manyPictureSector.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.commentSector"
- class="sectorItemBox"
- @click="addModule('commentSector', 47, commentSector)"
- @drag="drag('commentSector', 47, commentSector)"
- @dragend="dragend('commentSector', 47, commentSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.commentSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.commentSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.commentSector.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.listSector"
- class="sectorItemBox"
- @click="addModule('listSector', 98, listSector)"
- @drag="drag('listSector', 98, listSector)"
- @dragend="dragend('listSector', 98, listSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.listSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.listSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.listSector.sectorName}}</div>
- </div>
- <!-- 带标题新闻图文组合 -->
- <div
- v-if="this.$store.state.template.sectorList.channelNewsSector"
- class="sectorItemBox"
- @click="addModule('channelNewsSector', 63, channelNewsSector)"
- @drag="drag('channelNewsSector', 63, channelNewsSector)"
- @dragend="dragend('channelNewsSector', 63, channelNewsSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelNewsSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.channelNewsSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelNewsSector.sectorName}}</div>
- </div>
- <!-- 新的新闻图文组合1 -->
- <div
- v-if="this.$store.state.template.sectorList.newsPhotoSector"
- class="sectorItemBox"
- @click="addModule('newsPhotoSector', 46, newsPhotoSector)"
- @drag="drag('newsPhotoSector', 46, newsPhotoSector)"
- @dragend="dragend('newsPhotoSector', 46, newsPhotoSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsPhotoSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.newsPhotoSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsPhotoSector.sectorName}}</div>
- </div>
- <!-- 带标题文字新闻通栏 -->
- <div
- v-if="this.$store.state.template.sectorList.channelTextSector"
- class="sectorItemBox"
- @click="addModule('channelTextSector', 53, channelTextSector)"
- @drag="drag('channelTextSector', 53, channelTextSector)"
- @dragend="dragend('channelTextSector', 53, channelTextSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelTextSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.channelTextSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelTextSector.sectorName}}</div>
- </div>
- <!-- 新的新闻图文组合2 -->
- <div
- v-if="this.$store.state.template.sectorList.newListPhotoSector"
- class="sectorItemBox"
- @click="addModule('newListPhotoSector', 53, newListPhotoSector)"
- @drag="drag('newListPhotoSector', 53, newListPhotoSector)"
- @dragend="dragend('newListPhotoSector', 53, newListPhotoSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newListPhotoSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.newListPhotoSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newListPhotoSector.sectorName}}</div>
- </div>
- <!-- 皮肤6 带标题图文组合1 -->
- <div
- v-if="this.$store.state.template.sectorList.ChannelNewsPhotoSector"
- class="sectorItemBox"
- @click="addModule('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
- @drag="drag('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
- @dragend="dragend('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsPhotoSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.ChannelNewsPhotoSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsPhotoSector.sectorName}}</div>
- </div>
- <!-- 皮肤6 不带标题的图文组合1 -->
- <div
- v-if="this.$store.state.template.sectorList.ChannelNewsSector"
- class="sectorItemBox"
- @click="addModule('ChannelNewsSector', 36, ChannelNewsSector)"
- @drag="drag('ChannelNewsSector', 36, ChannelNewsSector)"
- @dragend="dragend('ChannelNewsSector', 36, ChannelNewsSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.ChannelNewsSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsSector.sectorName}}</div>
- </div>
- <!-- 皮肤6 带标题图文组合2 -->
- <div
- v-if="this.$store.state.template.sectorList.ChannelNewsPhoto"
- class="sectorItemBox"
- @click="addModule('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
- @drag="drag('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
- @dragend="dragend('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsPhoto.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.ChannelNewsPhoto.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsPhoto.sectorName}}</div>
- </div>
- <!-- 皮肤6 不带标题的图文组合2 -->
- <div
- v-if="this.$store.state.template.sectorList.ChannelNewsAndPhoto"
- class="sectorItemBox"
- @click="addModule('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
- @drag="drag('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
- @dragend="dragend('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsAndPhoto.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.ChannelNewsAndPhoto.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsAndPhoto.sectorName}}</div>
- </div>
- <!-- <div
- class="sectorItemBox"
- @click="addModule('channelMenu', 13, channelMenu)"
- @drag="drag('channelMenu', 13, channelMenu)"
- @dragend="dragend('channelMenu', 13, channelMenu)"
- >
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750311785239902.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750839704883892.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
- </div>
- <div class="sectorItemTitle">子导航菜单</div>
- </div>
- <div
- class="sectorItemBox"
- @click="addModule('adSector', 12, adSector)"
- @drag="drag('adSector', 12, adSector)"
- @dragend="dragend('adSector', 12, adSector)"
- >
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/png/20250604/1748998088187321.png" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750817753245775.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>/>
- </div>
- <div class="sectorItemTitle">通栏广告</div>
- </div>
- <div
- class="sectorItemBox"
- @click="addModule('scrollTextSector', 44, scrollTextSector)"
- @drag="drag('scrollTextSector', 44, scrollTextSector)"
- @dragend="dragend('scrollTextSector', 44, scrollTextSector)"
- >
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750312139660006.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820773336300.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
- </div>
- <div class="sectorItemTitle">滚动图文组合</div>
- </div>
- <div
- class="sectorItemBox"
- @click="addModule('manyPictureSector', 47, manyPictureSector)"
- @drag="drag('manyPictureSector', 47, manyPictureSector)"
- @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
- >
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749085058737998.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820905439306.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
- </div>
- <div class="sectorItemTitle">新闻图文组合1</div>
- </div>
- <div
- class="sectorItemBox"
- @click="addModule('commentSector', 47, commentSector)"
- @drag="drag('commentSector', 47, commentSector)"
- @dragend="dragend('commentSector', 47, commentSector)">
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749170683104422.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820973808775.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
- </div>
- <div class="sectorItemTitle">新闻图文组合2</div>
- </div>
- <div
- class="sectorItemBox"
- @click="addModule('listSector', 98, listSector)"
- @drag="drag('listSector', 98, listSector)"
- @dragend="dragend('listSector', 98, listSector)"
- >
- <div class="sectorItem">
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749200397579402.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
- <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750822186600939.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
- </div>
- <div class="sectorItemTitle">新闻图文组合3</div>
- </div> -->
- <!-- 频道页-皮肤7-通栏版式-带选项卡图文组合 newsTextTabsImgSectorClass-->
- <div
- v-if="this.$store.state.template.sectorList.newsTextTabsImgSectorClass"
- class="sectorItemBox"
- @click="addModule('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
- @drag="drag('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
- @dragend="dragend('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTextTabsImgSectorClass.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.newsTextTabsImgSectorClass.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTextTabsImgSectorClass.sectorName}}</div>
- </div>
- <!-- 14 皮肤7-----热点关注 -->
- <div
- v-if="this.$store.state.template.sectorList.skinSevenNewsHyjjSector"
- class="sectorItemBox"
- @click="addModule('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
- @drag="drag('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
- @dragend="dragend('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.skinSevenNewsHyjjSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.skinSevenNewsHyjjSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.skinSevenNewsHyjjSector.sectorName}}</div>
- </div>
- <div
- v-if="this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector"
- class="sectorItemBox"
- @click="addModule('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
- @drag="drag('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
- @dragend="dragend('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorName}}</div>
- </div>
- <div
-
- v-if="this.$store.state.template.sectorList.channelNavigationSector"
- class="sectorItemBox"
- @click="addModule('channelNavigationSector', 13, channelNavigationSector)"
- @drag="drag('channelNavigationSector', 13, channelNavigationSector)"
- @dragend="dragend('channelNavigationSector', 13, channelNavigationSector)"
- @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelNavigationSector.sectorImg)"
- @mouseleave="componentPreviewStatus(false,'')"
- >
- <div class="sectorItem">
- <img :src="this.$store.state.template.sectorList.channelNavigationSector.sectorImg"/>
- </div>
- <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelNavigationSector.sectorName}}</div>
- </div>
-
- </div>
- </template>
- <script>
- export default {
- props: {
- type: {
- },
- },
- data() {
- return {
- //模块1频道菜单 start---------------------------------------->
- channelMenu: {
- "sectorName": "channelMenu",//板块名称
- "componentList": [
- {
- "component_type": 3,//组件类型 1=新闻(选择导航池id)2=广告(输入广告位名称) 3=静态组件
- "component_style": 1,//组件选择了哪个版式
- "sort": 1,
- "componentData": {}
- }
- ],
- },
- //模块1频道菜单 end---------------------------------------->
- //模块2通栏广告模块 start---------------------------------------->
- adSector: {
- "sectorName": "adSector",//板块名称
- "componentList": [
- {
- "component_type": 2,//组件类型 1=新闻(选择导航池id)2=广告(输入广告位名称)
- "component_style": 1,//组件选择了哪个版式
- "sort": 1,
- "componentData": {}
- }
- ],
- "ad": {
- "width": 1200, //宽度
- "height": 90, //高度
- "name": "",//广告名称
- "price": 0,//价格
- "introduce":"",//介绍
- "website_id": "",//网站id
- "thumb": "https://img.bjzxtw.org.cn/pre/image/png/20250530/1748588901281358.png",//示例图 - 默认值
- "typeid": 2,//广告类型 - 2 图片
- "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
- }
- },
- //模块2栏广告模块 end---------------------------------------->
- //模块3滚动图文组合 start---------------------------------------->
- scrollTextSector: {
- "sectorName": "scrollTextSector",//板块名称
- "componentList": [
- {
- "component_type": 1,//组件类型 1=新闻 2=广告
- "component_style": 1,//该组件使用哪个展示样式
- "sort": 1,//排序位置
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level": "",
- "imgSize": 5,
- "textSize": 9,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- ]
- },
- //模块3滚动图文组合 end---------------------------------------->
- //模块4两列新闻组合模块1 start---------------------------------------->
- manyPictureSector: {
- sectorName: "manyPictureSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 3,
- "textSize": 9,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 3,
- "textSize": 6,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块4两列新闻组合模块1 end---------------------------------------->
- //模块5两列新闻组合模块2 end---------------------------------------->
- commentSector: {
- sectorName: "commentSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 12,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 1,
- "textSize": 3,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块5两列新闻组合模块2 end---------------------------------------->
- //模块5两列新闻组合模块3 start---------------------------------------->
- listSector: {
- sectorName: "listSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 12,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 1,
- "textSize": 3,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 3,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 1,
- "textSize": 3,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块5两列新闻组合模块3 end---------------------------------------->
- //模块6带标题新闻图文组合 start---------------------------------------->
- channelNewsSector: {
- sectorName: "channelNewsSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 5,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 5,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块6带标题新闻图文组合 end---------------------------------------->
- //模块7新的新闻图文组合1 start---------------------------------------->
- newsPhotoSector: {
- "sectorName": "newsPhotoSector",//板块名称
- "componentList": [
- {
- "component_type": 1,//组件类型 1=新闻 2=广告
- "component_style": 1,//该组件使用哪个展示样式
- "sort": 1,//排序位置
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level": "",
- "imgSize": 1,
- "textSize": 9,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- ]
- },
- //模块7新的新闻图文组合1 end---------------------------------------->
- //模块8带标题文字新闻通栏 start---------------------------------------->
- channelTextSector: {
- sectorName: "channelTextSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 0,
- "textSize": 6,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 0,
- "textSize": 6,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块8带标题文字新闻通栏 end---------------------------------------->
- //模块9新的新闻图文组合2 start---------------------------------------->
- newListPhotoSector: {
- sectorName: "newListPhotoSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块9新的新闻图文组合2 end---------------------------------------->
- //模块10 皮肤6 带标题新闻图文组合1 start---------------------------------------->
- ChannelNewsPhotoSector: {
- sectorName: "ChannelNewsPhotoSector",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 5,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块10 皮肤6 带标题新闻图文组合1 end---------------------------------------->
- //模块11 皮肤6不带标题图文组合1 start---------------------------------------->
- ChannelNewsSector: {
- "sectorName": "ChannelNewsSector",//板块名称
- "componentList": [
- {
- "component_type": 1,//组件类型 1=新闻 2=广告
- "component_style": 1,//该组件使用哪个展示样式
- "sort": 1,//排序位置
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level": "",
- "imgSize": 1,
- "textSize": 9,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- ]
- },
- //模块11 皮肤6不带标题图文组合1 end---------------------------------------->
- //模块12 皮肤6 带标题新闻图文组合1 start---------------------------------------->
- ChannelNewsPhoto: {
- sectorName: "ChannelNewsPhoto",//板块名称
- componentList: [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 0,
- "textSize": 6,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 2,
- "textSize": 3,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 3,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 1,
- "textSize": 0,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- //模块12 皮肤6 带标题新闻图文组合1 end---------------------------------------->
- //模块13 皮肤6不带标题图文组合2 start---------------------------------------->
- ChannelNewsAndPhoto: {
- "sectorName": "ChannelNewsAndPhoto",//板块名称
- "componentList": [
- {
- "component_type": 1,//组件类型 1=新闻 2=广告
- "component_style": 1,//该组件使用哪个展示样式
- "sort": 1,//排序位置
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level": "",
- "imgSize": 5,
- "textSize": 12,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- ]
- },
- //模块13 皮肤6不带标题图文组合2 end---------------------------------------->
-
- //选项卡-新闻图文组合4-皮肤7 start-行业聚焦--------------------------------------->
- newsTextTabsImgSectorClass: {
- "sectorName": "newsTextTabsImgSectorClass",//板块名称
- "componentList": [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 0,
- "textSize": 10,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 3,
- "textSize": 3,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 3,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 3,
- "textSize": 10,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 4,
- "componentData": {
- "category_id":"",
- "category_arr":"",
- "name":"自动生成",
- "level":"",
- "imgSize": 4,
- "textSize": 8,
- "child":{
- "id":"",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- }
- ]
- },
- // 皮肤7-热点关注
- skinSevenNewsHyjjSector: {
- "sectorName": "skinSevenNewsHyjjSector",//板块名称
- "componentList": [
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 1,
- "componentData": {
- "category_id": "",
- "category_arr": "",
- "name": "自动生成",
- "level": "",
- "imgSize": 3,
- "textSize": 6,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- },
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 2,
- "componentData": {
- "category_id": "",
- "category_arr": "",
- "name": "自动生成",
- "level": "",
- "imgSize": 3,
- "textSize": 3,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- },
- },
- {
- "component_type": 1,
- "component_style": 1,
- "sort": 3,
- "componentData": {
- "category_id": "",
- "category_arr": "",
- "name": "自动生成",
- "level": "",
- "imgSize": 10,
- "textSize": 10,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- },
- },
-
- ],
- },
-
- //新banner模块 皮肤7 轮播图 start---------------------------------------->
- scrollTextImgSevenSkinchannelSector: {
- "sectorName": "scrollTextImgSevenSkinchannelSector",//板块名称
- "componentList": [
- {
- "component_type": 1,//组件类型 1=新闻 2=广告
- "component_style": 1,//该组件使用哪个展示样式
- "sort": 1,//排序位置
- "componentData": {
- "name": "自动选择",
- "level": 2,
- "imgSize": 6,
- "textSize": 9,
- "child": {
- "id": "",
- "imgSize": "",
- "textSize": ""
- },
- "listType": [
- "id",
- "title",
- "imgurl",
- "author",
- "updated_at",
- "introduce",
- "islink",
- "linkurl",
- "copyfrom",
- "cat_arr_id",
- "catid",
- "pinyin"
- ],
- }
- },
-
- ]
- },
-
- //皮肤7模块1频道菜单 start----------------------------------------channelMenu>
- channelNavigationSector: {
- "sectorName": "channelNavigationSector",//板块名称
- "componentList": [
- {
- "component_type": 3,// 子导航菜单
- "component_style": 1,//组件选择了哪个版式
- "sort": 1,
- "componentData": {}
- }
- ],
- },
- }
- },
- methods: {
- //添加模块
- addModule(type, h, jsonData) {
- let data = {
- source: "click",//添加方式为点击
- type: type,
- h: h,
- jsonData: jsonData
- }
- console.log(data);
- this.$store.commit('template/addModule', data);
- },
- //拖拽开始
- drag(type, h, jsonData) {
- let data = {
- type: type,
- h: h,
- jsonData: jsonData
- }
- this.$store.commit('template/drag', data);
- },
- //拖拽结束
- dragend(type, h, jsonData) {
- let data = {
- type: type,
- h: h,
- jsonData: jsonData
- }
- this.$store.commit('template/dragend', data);
- },
- //设置组件预览状态
- componentPreviewStatus(status,src) {
- let setData = {
- status: status,
- img: src
- }
- this.$store.commit('template/setComponentPreviewStatus', setData);
- }
- },
- mounted() {
- let data = {
- template_id: this.$route.query.style,
- page_type: 2//1=首页 2=分类页 3=列表页 4=详情页 5=搜索页 6=底部列表页 7=底部详情页
- }
- //获得本页的通栏数据
- this.$store.dispatch('template/getAllSector', data)
- }
- }
- </script>
- <style scoped lang="less">
- .sectorBox {
- height: 100%;
- .sectorItemBox {
- box-sizing: border-box;
- padding: 0 20px 40px 20px;
- cursor: pointer;
- .sectorItem {
- border: 1px solid #333644;
- padding: 10px;
- border-radius: 8px;
- &:hover {
- background: #333644;
- transform: scale(1.1);
- transition: all 0.2s ease-in-out;
- }
- img {
- display: block;
- width: 100%;
- min-height: 20px;
- }
- }
- .sectorItemTitle {
- color: #fff;
- font-size: 14px;
- padding: 10px 0 0 0;
- text-align: center;
- }
- }
- }
- </style>
|