index.vue 28 KB

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