index.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. <template>
  2. <!-- 头部 -->
  3. <templateHead></templateHead>
  4. <!-- 菜单 -->
  5. <templateMenu></templateMenu>
  6. <!-- 内容 -->
  7. <!-- <div>
  8. <templateHeadline :skinId="skinId" :templateData="testTemplateData"></templateHeadline>
  9. <templateBanner :skinId="skinId" :templateData="testTemplateData"></templateBanner>
  10. <templateAd :adTag="'bbzxw_index_1'" :skinId="skinId" :adData="adData"></templateAd>
  11. <templateStaticLink :skinId="skinId" :templateData="testTemplateData2"></templateStaticLink>
  12. <templateNewSector1 :skinId="skinId" :templateData="testTemplateData"></templateNewSector1>
  13. <templateNewSector2 :skinId="skinId" :templateData="testTemplateData"></templateNewSector2>
  14. <templateNewSector3 :skinId="skinId" :templateData="testTemplateData"></templateNewSector3>
  15. <templateNewAndAd :skinId="skinId" :templateData="testTemplateData" :adData="adData" :adTag="'bbzxw_index_9'"></templateNewAndAd>
  16. </div> -->
  17. <div v-for="(item,index) in templateData" :key="index">
  18. <!--1.广告通栏-->
  19. <div v-if="item.sectorName=='adSector'">
  20. <templateAd :skinId="skinId" :adData="adData" :adTag="item.ad.ad_tag"></templateAd>
  21. </div>
  22. <!--2.头条通栏 data返回值错误 没有依照level字段返回 而是返回了政策法规-->
  23. <!-- <div v-if="item.sectorName=='headLineSector'">
  24. <templateHeadline :skinId="skinId" :templateData="item.componentList"></templateHeadline>
  25. </div> -->
  26. <!--3.轮播图通栏 data返回值错误 没有依照level字段返回 而是返回了政策法规-->
  27. <!-- <div v-if="item.sectorName=='bannerSector'">
  28. <templateHeadline :skinId="skinId" :templateData="item.componentList"></templateHeadline>
  29. </div> -->
  30. <!--4.静态外链通栏-->
  31. <div v-if="item.sectorName=='linkSector'">
  32. <templateStaticLink :skinId="skinId"></templateStaticLink>
  33. </div>
  34. <!--5.图文组合1 标题字段缺少is_url / children_count-->
  35. <div v-if="item.sectorName=='manyPictureSector'">
  36. <templateNewSector1 :skinId="skinId" :templateData="item.componentList"></templateNewSector1>
  37. </div>
  38. <!--6.图文组合2 标题字段缺少is_url / children_count-->
  39. <div v-if="item.sectorName=='commentSector'">
  40. <templateNewSector2 :skinId="skinId" :templateData="item.componentList"></templateNewSector2>
  41. </div>
  42. <!--7.图文组合3 标题字段缺少is_url / children_count-->
  43. <div v-if="item.sectorName=='listSector'">
  44. <templateNewSector3 :skinId="skinId" :templateData="item.componentList"></templateNewSector3>
  45. </div>
  46. <!--8.图文混合模块 标题字段缺少is_url / children_count-->
  47. <div v-if="item.sectorName=='onlyImgSector'">
  48. <templateNewAndAd :skinId="skinId" :templateData="item.componentList" :adData="adData" :adTag="item.ad.ad_tag"></templateNewAndAd>
  49. </div>
  50. </div>
  51. <!-- 底部 -->
  52. <templateFoot></templateFoot>
  53. </template>
  54. <script setup>
  55. //0.加载全局模板组件 start---------------------------------------->
  56. //0.1 全局通栏
  57. import templateHead from '@/components/template/sector/head/1200x200/1.vue'
  58. import templateMenu from '@/components/template/sector/menu/1200x130/1.vue'
  59. import templateFoot from '@/components/template/sector/foot/1200x580/1.vue'
  60. //0.2 局部通栏
  61. //0.2.1 广告组件
  62. import templateAd from '@/components/template/sector/body/ad/1200x90/1.vue'
  63. //0.2.2 网站头条
  64. import templateHeadline from '@/components/template/sector/body/index/headLine/1200x140/1.vue'
  65. //0.2.3 轮播图
  66. import templateBanner from '@/components/template/sector/body/index/banner/1200x410/1.vue'
  67. //0.2.4 静态外链通栏
  68. import templateStaticLink from '@/components/template/sector/body/index/link/1200x230/1.vue'
  69. //0.2.5 图文组合1
  70. import templateNewSector1 from '@/components/template/sector/body/index/list/1200x470/1.vue'
  71. //0.2.6 图文组合2
  72. import templateNewSector2 from '@/components/template/sector/body/index/list/1200x470/2.vue'
  73. //0.2.7 图文组合3
  74. import templateNewSector3 from '@/components/template/sector/body/index/list/1200x980/1.vue'
  75. //0.2.8 图文与广告组合
  76. import templateNewAndAd from '@/components/template/sector/body/index/list/1200x480/1.vue'
  77. //0.加载全局模板组件 end---------------------------------------->
  78. //1.获得基本信息单元 start---------------------------------------->
  79. //1.1获得页面依赖
  80. import { ref, onMounted } from 'vue';
  81. import { ElMessage } from 'element-plus';
  82. //1.2获得pinia源
  83. import { useTemplateBaseStore } from '@/stores/templateBase'
  84. const templateBaseStore = useTemplateBaseStore()
  85. //1.3获得该页的皮肤id - 在每个组件中也是同样的获得方法
  86. const skinId = ref("")
  87. const websiteId = ref("")
  88. //1.4获得站点基本信息
  89. const responseStatus = await requestDataPromise('/web/getWebsiteAllinfo', {
  90. method: 'GET',
  91. query: {
  92. 'link_textnum':24,
  93. 'link_imgnum':18,
  94. 'link_footnum':4
  95. },
  96. });
  97. if (responseStatus.code == 200) {
  98. //0.3.1设置站点基本信息
  99. templateBaseStore.setWebSiteInfo(responseStatus.data)
  100. websiteId.value = responseStatus.data.website_head.id;//获得网站id
  101. //0.3.2设置皮肤id
  102. skinId.value = templateBaseStore.webSiteInfo.website_foot.foot_info.template_id;
  103. console.log("当前的网站id:"+responseStatus.data.website_head.id)
  104. //0.3.3设置seo信息
  105. let seoTitle = templateBaseStore.webSiteInfo.website_head.title;
  106. let seoDescription = templateBaseStore.webSiteInfo.website_head.description;
  107. let seoKeywords = templateBaseStore.webSiteInfo.website_head.keywords;
  108. let seoSuffix = templateBaseStore.webSiteInfo.website_head.suffix;
  109. let seoName = templateBaseStore.webSiteInfo.website_head.website_name;
  110. useSeoMeta({
  111. title: seoTitle + "_" + seoSuffix,
  112. meta: [
  113. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  114. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  115. ]
  116. });
  117. }
  118. //1.5获得广告池
  119. const adData = ref([]);
  120. const adResponseStatus = await requestDataPromise('/web/getWebsiteAdvertisement', {
  121. method: 'GET',
  122. query: {},
  123. });
  124. if (adResponseStatus.code == 200) {
  125. adData.value = adResponseStatus.data;
  126. templateBaseStore.setAdList(adResponseStatus.data)
  127. }
  128. //1.6 获得页面数据 后续优化
  129. // const adData = ref([]);
  130. // onMounted(async() => {
  131. // //当数据在客户端获取时,需要添加v-if判断数据是否已存在
  132. // const { $webUrl, $CwebUrl } = useNuxtApp();
  133. // //广告列表
  134. // let url = `${$webUrl}/web/getWebsiteAdvertisement`
  135. // const response = await fetch(url, {
  136. // headers: {
  137. // 'Content-Type': 'application/json',
  138. // 'Userurl': $CwebUrl,
  139. // 'Origin': $CwebUrl
  140. // }
  141. // });
  142. // const result = await response.json();
  143. // adData.value = result.data;
  144. // templateBaseStore.setAdList(adData.value)
  145. // })
  146. //1.获得基本信息单元 end---------------------------------------->
  147. //2.页面数据 start---------------------------------------->
  148. //2.1获得页面数据
  149. const response = await requestDataPromise('/client/indexData', {
  150. method: 'POST',
  151. body: {
  152. 'website_id':websiteId.value,
  153. 'getpage':'index'
  154. },
  155. });
  156. const templateData = response.data.template.index;
  157. console.log(templateData)
  158. //2.页面数据 end---------------------------------------->
  159. //2.0 测试数据 后期移除
  160. // const testTemplateData = {
  161. // "sectorName": "text",
  162. // "componentList": [
  163. // {
  164. // "component_type": 1,//1=新闻 2=广告
  165. // "component_style": 1,//样式
  166. // "sort": 1,//组件位置
  167. // "data": {
  168. // "alias":"一级导航名称",
  169. // "category_id": 11,
  170. // "pinyin": "nongyeshengchan",
  171. // "children_count": 1,//有多少个子集 用于跳转到频道页
  172. // "text": [
  173. // {
  174. // "id": 2863,
  175. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  176. // "islink": 0,
  177. // "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  178. // },
  179. // {
  180. // "id": 50129,
  181. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  182. // "islink": 0,
  183. // "pinyin": "sannongzixun"
  184. // },
  185. // {
  186. // "id": 50129,
  187. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  188. // "islink": 0,
  189. // "pinyin": "sannongzixun"
  190. // },
  191. // {
  192. // "id": 2862,
  193. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  194. // "islink": 0,
  195. // "pinyin": "sannongzixun/buweidongtai"
  196. // },
  197. // {
  198. // "id": 50126,
  199. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  200. // "islink": 0,
  201. // "pinyin": "sannongzixun"
  202. // },
  203. // {
  204. // "id": 3976,
  205. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  206. // "islink": 0,
  207. // "pinyin": "sannongzixun"
  208. // },
  209. // {
  210. // "id": 50189,
  211. // "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  212. // "islink": 0,
  213. // "pinyin": "nongminhezuoshe"
  214. // },
  215. // {
  216. // "id": 50190,
  217. // "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  218. // "islink": 0,
  219. // "pinyin": "nongminhezuoshe"
  220. // }
  221. // ],
  222. // "img": [
  223. // {
  224. // "id": 50129,
  225. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  226. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  227. // "author": "linyuting123",
  228. // "updated_at": "2025-05-30 13:50:54",
  229. // "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  230. // "islink": 0,
  231. // "linkurl": "",
  232. // "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  233. // "cat_arr_id": "[1,201]",
  234. // "catid": 201,
  235. // "level": "[1,2,3]",
  236. // "pinyin": "sannongzixun"
  237. // },
  238. // {
  239. // "id": 50129,
  240. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  241. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  242. // "author": "佚名",
  243. // "updated_at": "2025-05-30 13:50:46",
  244. // "introduce": "描述",
  245. // "islink": 0,
  246. // "linkurl": "",
  247. // "copyfrom": "本网",
  248. // "cat_arr_id": "[2]",
  249. // "catid": 2,
  250. // "level": "[2,3]",
  251. // "pinyin": "sannongzixun"
  252. // },
  253. // {
  254. // "id": 50129,
  255. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  256. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  257. // "author": "佚名",
  258. // "updated_at": "2025-05-30 13:50:45",
  259. // "introduce": "描述",
  260. // "islink": 0,
  261. // "linkurl": "",
  262. // "copyfrom": "本网",
  263. // "cat_arr_id": "[1]",
  264. // "catid": 1,
  265. // "level": "[2]",
  266. // "pinyin": "sannongzixun"
  267. // },
  268. // {
  269. // "id": 50129,
  270. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  271. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  272. // "author": "佚名",
  273. // "updated_at": "2025-05-30 13:50:44",
  274. // "introduce": "描述",
  275. // "islink": 0,
  276. // "linkurl": "",
  277. // "copyfrom": "本网",
  278. // "cat_arr_id": "[11]",
  279. // "catid": 11,
  280. // "level": "[2]",
  281. // "pinyin": "xinnongcun"
  282. // },
  283. // {
  284. // "id": 50129,
  285. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  286. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  287. // "author": "佚名",
  288. // "updated_at": "2025-05-30 13:50:43",
  289. // "introduce": "描述",
  290. // "islink": 0,
  291. // "linkurl": "",
  292. // "copyfrom": "本网",
  293. // "cat_arr_id": "[14,240]",
  294. // "catid": 240,
  295. // "level": "[2,3]",
  296. // "pinyin": "sannongzixun"
  297. // },
  298. // {
  299. // "id": 50129,
  300. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  301. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  302. // "author": "佚名",
  303. // "updated_at": "2025-04-16 11:04:29",
  304. // "introduce": "描述",
  305. // "islink": 0,
  306. // "linkurl": "",
  307. // "copyfrom": "本网",
  308. // "cat_arr_id": null,
  309. // "catid": 36,
  310. // "level": "[2]",
  311. // "pinyin": "sannongzixun"
  312. // }
  313. // ]
  314. // }
  315. // },
  316. // {
  317. // "component_type": 1,//1=新闻 2=广告
  318. // "component_style": 1,//样式
  319. // "sort": 1,//组件位置
  320. // "data": {
  321. // "alias":"一级导航名称2",
  322. // "category_id": 11,
  323. // "children_count": 0,//有多少个子集 用于跳转到频道页
  324. // "pinyin": "sannongzixun/zhengcefagui",
  325. // "text": [
  326. // {
  327. // "id": 2863,
  328. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  329. // "islink": 0,
  330. // "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  331. // },
  332. // {
  333. // "id": 50129,
  334. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  335. // "islink": 0,
  336. // "pinyin": "sannongzixun"
  337. // },
  338. // {
  339. // "id": 50129,
  340. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  341. // "islink": 0,
  342. // "pinyin": "sannongzixun"
  343. // },
  344. // {
  345. // "id": 2862,
  346. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  347. // "islink": 0,
  348. // "pinyin": "sannongzixun/buweidongtai"
  349. // },
  350. // {
  351. // "id": 50126,
  352. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  353. // "islink": 0,
  354. // "pinyin": "sannongzixun"
  355. // },
  356. // {
  357. // "id": 3976,
  358. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  359. // "islink": 0,
  360. // "pinyin": "sannongzixun"
  361. // },
  362. // {
  363. // "id": 50189,
  364. // "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  365. // "islink": 0,
  366. // "pinyin": "nongminhezuoshe"
  367. // },
  368. // {
  369. // "id": 50190,
  370. // "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  371. // "islink": 0,
  372. // "pinyin": "nongminhezuoshe"
  373. // }
  374. // ],
  375. // "img": [
  376. // {
  377. // "id": 50129,
  378. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  379. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  380. // "author": "linyuting123",
  381. // "updated_at": "2025-05-30 13:50:54",
  382. // "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  383. // "islink": 0,
  384. // "linkurl": "",
  385. // "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  386. // "cat_arr_id": "[1,201]",
  387. // "catid": 201,
  388. // "level": "[1,2,3]",
  389. // "pinyin": "sannongzixun"
  390. // },
  391. // {
  392. // "id": 50129,
  393. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  394. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  395. // "author": "佚名",
  396. // "updated_at": "2025-05-30 13:50:46",
  397. // "introduce": "描述",
  398. // "islink": 0,
  399. // "linkurl": "",
  400. // "copyfrom": "本网",
  401. // "cat_arr_id": "[2]",
  402. // "catid": 2,
  403. // "level": "[2,3]",
  404. // "pinyin": "sannongzixun"
  405. // },
  406. // {
  407. // "id": 50129,
  408. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  409. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  410. // "author": "佚名",
  411. // "updated_at": "2025-05-30 13:50:45",
  412. // "introduce": "描述",
  413. // "islink": 0,
  414. // "linkurl": "",
  415. // "copyfrom": "本网",
  416. // "cat_arr_id": "[1]",
  417. // "catid": 1,
  418. // "level": "[2]",
  419. // "pinyin": "sannongzixun"
  420. // },
  421. // {
  422. // "id": 50129,
  423. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  424. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  425. // "author": "佚名",
  426. // "updated_at": "2025-05-30 13:50:44",
  427. // "introduce": "描述",
  428. // "islink": 0,
  429. // "linkurl": "",
  430. // "copyfrom": "本网",
  431. // "cat_arr_id": "[11]",
  432. // "catid": 11,
  433. // "level": "[2]",
  434. // "pinyin": "xinnongcun"
  435. // },
  436. // {
  437. // "id": 50129,
  438. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  439. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  440. // "author": "佚名",
  441. // "updated_at": "2025-05-30 13:50:43",
  442. // "introduce": "描述",
  443. // "islink": 0,
  444. // "linkurl": "",
  445. // "copyfrom": "本网",
  446. // "cat_arr_id": "[14,240]",
  447. // "catid": 240,
  448. // "level": "[2,3]",
  449. // "pinyin": "sannongzixun"
  450. // },
  451. // {
  452. // "id": 50129,
  453. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  454. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  455. // "author": "佚名",
  456. // "updated_at": "2025-04-16 11:04:29",
  457. // "introduce": "描述",
  458. // "islink": 0,
  459. // "linkurl": "",
  460. // "copyfrom": "本网",
  461. // "cat_arr_id": null,
  462. // "catid": 36,
  463. // "level": "[2]",
  464. // "pinyin": "sannongzixun"
  465. // }
  466. // ]
  467. // }
  468. // },
  469. // {
  470. // "component_type": 1,//1=新闻 2=广告
  471. // "component_style": 1,//样式
  472. // "sort": 3,//组件位置
  473. // "data": {
  474. // "alias":"一级导航名称3",
  475. // "category_id": 11,
  476. // "children_count": 0,//有多少个子集 用于跳转到频道页
  477. // "pinyin": "sannongzixun/zhengcefagui",
  478. // "text": [
  479. // {
  480. // "id": 2863,
  481. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  482. // "islink": 0,
  483. // "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  484. // },
  485. // {
  486. // "id": 50129,
  487. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  488. // "islink": 0,
  489. // "pinyin": "sannongzixun"
  490. // },
  491. // {
  492. // "id": 50129,
  493. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  494. // "islink": 0,
  495. // "pinyin": "sannongzixun"
  496. // },
  497. // {
  498. // "id": 2862,
  499. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  500. // "islink": 0,
  501. // "pinyin": "sannongzixun/buweidongtai"
  502. // },
  503. // {
  504. // "id": 50126,
  505. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  506. // "islink": 0,
  507. // "pinyin": "sannongzixun"
  508. // },
  509. // {
  510. // "id": 3976,
  511. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  512. // "islink": 0,
  513. // "pinyin": "sannongzixun"
  514. // },
  515. // {
  516. // "id": 50189,
  517. // "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  518. // "islink": 0,
  519. // "pinyin": "nongminhezuoshe"
  520. // },
  521. // {
  522. // "id": 50190,
  523. // "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  524. // "islink": 0,
  525. // "pinyin": "nongminhezuoshe"
  526. // }
  527. // ],
  528. // "img": [
  529. // {
  530. // "id": 50129,
  531. // "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  532. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  533. // "author": "linyuting123",
  534. // "updated_at": "2025-05-30 13:50:54",
  535. // "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  536. // "islink": 0,
  537. // "linkurl": "",
  538. // "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  539. // "cat_arr_id": "[1,201]",
  540. // "catid": 201,
  541. // "level": "[1,2,3]",
  542. // "pinyin": "sannongzixun"
  543. // },
  544. // {
  545. // "id": 50129,
  546. // "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  547. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  548. // "author": "佚名",
  549. // "updated_at": "2025-05-30 13:50:46",
  550. // "introduce": "描述",
  551. // "islink": 0,
  552. // "linkurl": "",
  553. // "copyfrom": "本网",
  554. // "cat_arr_id": "[2]",
  555. // "catid": 2,
  556. // "level": "[2,3]",
  557. // "pinyin": "sannongzixun"
  558. // },
  559. // {
  560. // "id": 50129,
  561. // "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  562. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  563. // "author": "佚名",
  564. // "updated_at": "2025-05-30 13:50:45",
  565. // "introduce": "描述",
  566. // "islink": 0,
  567. // "linkurl": "",
  568. // "copyfrom": "本网",
  569. // "cat_arr_id": "[1]",
  570. // "catid": 1,
  571. // "level": "[2]",
  572. // "pinyin": "sannongzixun"
  573. // },
  574. // {
  575. // "id": 50129,
  576. // "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  577. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  578. // "author": "佚名",
  579. // "updated_at": "2025-05-30 13:50:44",
  580. // "introduce": "描述",
  581. // "islink": 0,
  582. // "linkurl": "",
  583. // "copyfrom": "本网",
  584. // "cat_arr_id": "[11]",
  585. // "catid": 11,
  586. // "level": "[2]",
  587. // "pinyin": "xinnongcun"
  588. // },
  589. // {
  590. // "id": 50129,
  591. // "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  592. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  593. // "author": "佚名",
  594. // "updated_at": "2025-05-30 13:50:43",
  595. // "introduce": "描述",
  596. // "islink": 0,
  597. // "linkurl": "",
  598. // "copyfrom": "本网",
  599. // "cat_arr_id": "[14,240]",
  600. // "catid": 240,
  601. // "level": "[2,3]",
  602. // "pinyin": "sannongzixun"
  603. // },
  604. // {
  605. // "id": 50129,
  606. // "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  607. // "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  608. // "author": "佚名",
  609. // "updated_at": "2025-04-16 11:04:29",
  610. // "introduce": "描述",
  611. // "islink": 0,
  612. // "linkurl": "",
  613. // "copyfrom": "本网",
  614. // "cat_arr_id": null,
  615. // "catid": 36,
  616. // "level": "[2]",
  617. // "pinyin": "sannongzixun"
  618. // }
  619. // ]
  620. // }
  621. // },
  622. // ],
  623. // "ad": {
  624. // "ad_tag": "nmw_index_0003"
  625. // }
  626. // }
  627. // //静态链接测试数据
  628. // const testTemplateData2 = {
  629. // "sectorName": "linkSector",
  630. // "componentList": [
  631. // {
  632. // "component_type": 3,
  633. // "component_style": 1,
  634. // "sort": 1,
  635. // "componentData": {}
  636. // }
  637. // ],
  638. // "sort": 4
  639. // }
  640. //2.页面数据 end---------------------------------------->
  641. </script>
  642. <style lang="less" scoped>
  643. @import url('@/assets/css/index.less');
  644. </style>