class.vue 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224
  1. <template>
  2. <HomePageHead></HomePageHead>
  3. <HomePageNavigation></HomePageNavigation>
  4. <!-- 三农市场网-商城 -->
  5. <main class="index_main">
  6. <div class="shop_head_1 clearfix back100 phone_none">
  7. <span class="shop_head_1_a" href="" title="">{{ categoryName }}</span>
  8. </div>
  9. <!-- 导航 -->
  10. <!-- 二级栏目个数大于等于4 -->
  11. <section class="shop_2 clearfix phone_none" v-if="pageData.length >= 4">
  12. <div class="shop_2_in clearfix">
  13. <div class="shop_2_in_box clearfix shop_2_in_box_even">
  14. <div class="shop_2_box clearfix" v-if="pageData.length > 0">
  15. <NuxtLink class="shop_2_name" :href="`/${pageData[0].aLIas_pinyin}/index.html`"
  16. :title="pageData[0].title">
  17. {{ pageData[0].alias }}
  18. </NuxtLink>
  19. <div class="shop_2_right clearfix">
  20. <a class="shop_2_a" :href="`${pageData[0].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  21. :title="item.alias" v-for="(item, index) in pageData[0].children" :key="index">
  22. {{ item.alias }}</a>
  23. </div>
  24. </div>
  25. <div class="shop_2_box clearfix" v-if="pageData.length > 1">
  26. <NuxtLink class="shop_2_name" :href="`/${pageData[1].aLIas_pinyin}/index.html`"
  27. :title="pageData[1].title">
  28. {{ pageData[1].alias }}
  29. </NuxtLink>
  30. <div class="shop_2_right clearfix">
  31. <a class="shop_2_a" :href="`${pageData[1].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  32. :title="item.alias" v-for="(item, index) in pageData[1].children" :key="index">
  33. {{ item.alias }}</a>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="shop_2_in_box clearfix">
  38. <div class="shop_2_box clearfix" v-if="pageData.length > 2">
  39. <NuxtLink class="shop_2_name" :href="`/${pageData[2].aLIas_pinyin}/index.html`"
  40. :title="pageData[2].title">
  41. {{ pageData[2].alias }}
  42. </NuxtLink>
  43. <div class="shop_2_right clearfix">
  44. <a class="shop_2_a" :href="`${pageData[2].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  45. :title="item.alias" v-for="(item, index) in pageData[2].children" :key="index">
  46. {{ item.alias }}</a>
  47. </div>
  48. </div>
  49. <div class="shop_2_box clearfix" v-if="pageData.length > 3">
  50. <NuxtLink class="shop_2_name" :href="`/${pageData[3].aLIas_pinyin}/index.html`"
  51. :title="pageData[3].title">
  52. {{ pageData[3].alias }}
  53. </NuxtLink>
  54. <div class="shop_2_right clearfix">
  55. <a class="shop_2_a" :href="`${pageData[3].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  56. :title="item.alias" v-for="(item, index) in pageData[3].children" :key="index">
  57. {{ item.alias }}</a>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="shop_2_in_2 clearfix" v-if="pageData.length > 4">
  63. <NuxtLink class="shop_2_name_2" :href="`/${pageData[4].aLIas_pinyin}/index.html`"
  64. :title="pageData[4].title">
  65. {{ pageData[4].alias }}
  66. </NuxtLink>
  67. <div class="shop_2_right_2 clearfix">
  68. <a class="shop_2_a_2" :href="`${pageData[4].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  69. :title="item.alias" v-for="(item, index) in pageData[4].children" :key="index">
  70. {{ item.alias }}</a>
  71. </div>
  72. </div>
  73. </section>
  74. <!-- 二级栏目个数小于等于3 -->
  75. <section class="shop_2 clearfix phone_none" v-if="pageData.length <= 3">
  76. <div class="shop_2_in clearfix">
  77. <div class="shop_2_in_box clearfix shop_2_in_box_even">
  78. <div class="shop_2_box clearfix" v-if="pageData.length > 0">
  79. <NuxtLink class="shop_2_name" :href="`/${pageData[0].aLIas_pinyin}/index.html`"
  80. :title="pageData[0].title">
  81. {{ pageData[0].alias }}
  82. </NuxtLink>
  83. <div class="shop_2_right clearfix">
  84. <a class="shop_2_a" :href="`${pageData[0].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  85. :title="item.alias" v-for="(item, index) in pageData[0].children" :key="index">
  86. {{ item.alias }}</a>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="shop_2_in_box clearfix">
  91. <div class="shop_2_box clearfix" v-if="pageData.length > 1">
  92. <NuxtLink class="shop_2_name" :href="`/${pageData[1].aLIas_pinyin}/index.html`"
  93. :title="pageData[1].title">
  94. {{ pageData[1].alias }}
  95. </NuxtLink>
  96. <div class="shop_2_right clearfix">
  97. <a class="shop_2_a" :href="`${pageData[1].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  98. :title="item.alias" v-for="(item, index) in pageData[1].children" :key="index">
  99. {{ item.alias }}</a>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="shop_2_in_2 clearfix" v-if="pageData.length > 2">
  105. <NuxtLink class="shop_2_name_2" :href="`/${pageData[2].aLIas_pinyin}/index.html`"
  106. :title="pageData[2].title">
  107. {{ pageData[2].alias }}
  108. </NuxtLink>
  109. <div class="shop_2_right_2 clearfix">
  110. <a class="shop_2_a_2" :href="`${pageData[2].pinyin}/${item.aLIas_pinyin}/list-1.html`"
  111. :title="item.alias" v-for="(item, index) in pageData[2].children" :key="index">
  112. {{ item.alias }}</a>
  113. </div>
  114. </div>
  115. </section>
  116. <div class="phone_nav pc_none">
  117. <div class="phone_nav_in">
  118. <NuxtLink class="phone_nav_a"
  119. v-if="pageData.length > 0"
  120. :href="`/${pageData[0].aLIas_pinyin}/index.html`">
  121. {{ pageData[0].alias }}
  122. </NuxtLink>
  123. <NuxtLink class="phone_nav_a"
  124. v-if="pageData.length > 1"
  125. :href="`/${pageData[1].aLIas_pinyin}/index.html`" >
  126. {{ pageData[1].alias }}
  127. </NuxtLink>
  128. <NuxtLink class="phone_nav_a"
  129. v-if="pageData.length > 2"
  130. :href="`/${pageData[2].aLIas_pinyin}/index.html`" >
  131. {{ pageData[2].alias }}
  132. </NuxtLink>
  133. <NuxtLink class="phone_nav_a"
  134. v-if="pageData.length > 3"
  135. :href="`/${pageData[3].aLIas_pinyin}/index.html`" >
  136. {{ pageData[3].alias }}
  137. </NuxtLink>
  138. <NuxtLink class="phone_nav_a"
  139. v-if="pageData.length > 4"
  140. :href="`/${pageData[4].aLIas_pinyin}/index.html`" >
  141. {{ pageData[4].alias }}
  142. </NuxtLink>
  143. </div>
  144. </div>
  145. <section class="shop_3 clearfix phone_none" v-if="goodsData.length > 0">
  146. <!-- 农产批发1 -->
  147. <div class="shop_3_in clearfix">
  148. <div class="shop_head_2 clearfix">
  149. <NuxtLink class="shop_head_2_name" :href="`/${goodsData[0].aLIas_pinyin}/index.html`"
  150. :title="goodsData[0].title">{{ goodsData[0].alias }}</NuxtLink>
  151. </div>
  152. <div class="shop_img_ul_1 clearfix" v-if="goodsData[0].data">
  153. <div class="shop_img_li_1 clearfix" v-for="(item, index) in goodsData[0].data" :key="index">
  154. <a class="shop_img_li_1_a" :href="getLinkPathDetail(item)" :title="item.title">
  155. <div class="shop_img_li_1_img_box clearfix">
  156. <img class="shop_img_li_1_img" :src="item.imgurl" title="" alt="">
  157. </div>
  158. <div class="shop_img_li_1_right clearfix">
  159. <h4 class="shop_img_li_1_h4 dot2">{{ item.name }}</h4>
  160. <div class="shop_img_li_1_tag">
  161. {{ item.type_id == 1 ? '求购' : '供应' }}
  162. </div>
  163. <a class="shop_img_li_1_btn" :href="getLinkPathDetail(item)">查看详情</a>
  164. </div>
  165. </a>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="shop_3_in clearfix">
  170. <div class="shop_head_3 clearfix">
  171. <!-- <a class="shop_head_3_more" :href="`/${goodsData[0].aLIas_pinyin}/index.html`"
  172. :title="goodsData[0].title">栏目简介</a> -->
  173. </div>
  174. <div class="shop_ul_1 clearfix" v-if="goodsData[0].data1.length > 0">
  175. <div class="shop_li_1 clearfix" v-for="(item, index) in goodsData[0].data1" :key="index">
  176. <a class="shop_li_1_a" :href="getLinkPathDetail(item)" :title="item.title">
  177. <div class="shop_li_1_left">
  178. <h4 class="shop_li_1_h4 dot1">{{ item.name }}</h4>
  179. <div class="shop_li_1_text dot1">{{ item.description }}</div>
  180. </div>
  181. <a class="shop_li_1_btn" :href="getLinkPathDetail(item)">查看详情</a>
  182. </a>
  183. </div>
  184. </div>
  185. </div>
  186. <!-- 集贸市场2 -->
  187. </section>
  188. <div class="phone_shop_1 clearfix pc_none" v-if="goodsData.length > 0">
  189. <div class="phone_shop_head">
  190. <NuxtLink class="phone_shop_head_a"
  191. :href="`/${goodsData[0].aLIas_pinyin}/index.html`">
  192. {{ goodsData[0].alias }}
  193. </NuxtLink>
  194. </div>
  195. <div class="phone_shop_img_ul clearfix" v-if="goodsData[0].data">
  196. <div class="phone_shop_img_li" v-for="(item, index) in goodsData[0].data.slice(0, 2)" :key="index">
  197. <a class="phone_shop_img_li_a" :href="getLinkPathDetail(item)" >
  198. <img class="phone_shop_img" :src="item.imgurl" :alt="item.title" >
  199. <div class="phone_shop_img_li_dot2">
  200. {{ item.name }}
  201. </div>
  202. <div class="phone_shop_img_foot">
  203. <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>
  204. <span class="phone_shop_img_foot_2">查看详情</span>
  205. </div>
  206. </a>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="phone_shop_1_text_box clearfix pc_none" v-if="goodsData.length > 0">
  211. <div class="phone_shop_text_ul" v-if="goodsData[0].data1.length > 0">
  212. <div class="phone_shop_text_li" v-for="(item, index) in goodsData[0].data1.slice(0, 6)" :key="index">
  213. <a class="phone_shop_text_li_a" :href="getLinkPathDetail(item)">
  214. <h4 class="phone_shop_text_li_h4"> {{ item.name }}</h4>
  215. <div class="phone_shop_text_li_dot1">{{ item.description }}</div>
  216. </a>
  217. </div>
  218. </div>
  219. </div>
  220. <section class="shop_4 clearfix phone_none" v-if="goodsData.length > 2">
  221. <!-- 名品之窗1 -->
  222. <div class="shop_3_in clearfix" v-if="goodsData.length > 1">
  223. <div class="shop_head_4 clearfix">
  224. <NuxtLink class="shop_head_4_name" :href="`/${goodsData[1].aLIas_pinyin}/index.html`"
  225. :title="goodsData[1].title">{{ goodsData[1].alias }}</NuxtLink>
  226. </div>
  227. <div class="shop_img_ul_2 clearfix">
  228. <div class="shop_img_li_2 clearfix" v-for="(item, index) in goodsData[1].data" :key="index">
  229. <a class="shop_img_li_2_a" href="" title="">
  230. <div class="shop_img_li_2_img_box clearfix">
  231. <img class="shop_img_li_2_img" :src="item.imgurl" title="" alt="">
  232. </div>
  233. <div class="shop_img_li_2_right clearfix">
  234. <h4 class="shop_img_li_2_h4 dot2">{{ item.name }}</h4>
  235. <div class="shop_img_li_2_tag">
  236. {{ item.type_id == 1 ? '求购' : '供应' }}
  237. </div>
  238. <div class="shop_img_li_2_btn">查看详情</div>
  239. </div>
  240. </a>
  241. </div>
  242. </div>
  243. </div>
  244. <!-- 名品之窗2 -->
  245. <!-- 供求信息1 -->
  246. <div class="shop_3_in clearfix" v-if="goodsData.length > 2">
  247. <div class="shop_head_5 clearfix">
  248. <NuxtLink class="shop_head_5_name" :href="`/${goodsData[2].aLIas_pinyin}/index.html`"
  249. :title="goodsData[2].title">{{ goodsData[2].alias }}</NuxtLink>
  250. </div>
  251. <div class="shop_img_ul_3 clearfix">
  252. <div class="shop_img_li_3 clearfix" v-for="(item, index) in goodsData[2].data" :key="index">
  253. <a class="shop_img_li_3_a" href="" title="">
  254. <div class="shop_img_li_3_img_box clearfix">
  255. <img class="shop_img_li_3_img" :src="item.imgurl" title="" alt="">
  256. </div>
  257. <div class="shop_img_li_3_right clearfix">
  258. <h4 class="shop_img_li_3_h4 dot2">{{ item.name }}</h4>
  259. <div class="shop_img_li_3_tag">
  260. {{ item.type_id == 1 ? '求购' : '供应' }}
  261. </div>
  262. <div class="shop_img_li_3_btn">查看详情</div>
  263. </div>
  264. </a>
  265. </div>
  266. </div>
  267. </div>
  268. <!-- 供求信息2 -->
  269. </section>
  270. <div class="phone_shop_2 clearfix pc_none" v-if="goodsData.length > 1">
  271. <div class="phone_shop_head">
  272. <NuxtLink class=""
  273. :href="`/${goodsData[1].aLIas_pinyin}/index.html`"
  274. :title="goodsData[1].title">{{ goodsData[1].alias }}
  275. </NuxtLink>
  276. </div>
  277. <div class="phone_shop_img_ul clearfix">
  278. <div class="phone_shop_img_li" v-for="(item, index) in goodsData[1].data.slice(0, 4)" :key="index">
  279. <a class="phone_shop_img_li_a" href="" >
  280. <img class="phone_shop_img" :src="item.imgurl" alt="" >
  281. <div class="phone_shop_img_li_dot2">
  282. {{ item.name }}
  283. </div>
  284. <div class="phone_shop_img_foot">
  285. <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>
  286. <span class="phone_shop_img_foot_2">查看详情</span>
  287. </div>
  288. </a>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="phone_shop_3 clearfix pc_none" v-if="goodsData.length > 2">
  293. <div class="phone_shop_head">
  294. <NuxtLink class=""
  295. :href="`/${goodsData[2].aLIas_pinyin}/index.html`" >
  296. {{ goodsData[2].alias }}
  297. </NuxtLink>
  298. </div>
  299. <div class="phone_shop_img_ul clearfix" >
  300. <div class="phone_shop_img_li" v-for="(item, index) in goodsData[2].data.slice(0, 4)" :key="index">
  301. <a class="phone_shop_img_li_a" href="" >
  302. <img class="phone_shop_img" :src="item.imgurl" alt="" >
  303. <div class="phone_shop_img_li_dot2">
  304. {{ item.name }}
  305. </div>
  306. <div class="phone_shop_img_foot">
  307. <span class="phone_shop_img_foot_1">{{ item.type_id == 1 ? '求购' : '供应' }}</span>
  308. <span class="phone_shop_img_foot_2">查看详情</span>
  309. </div>
  310. </a>
  311. </div>
  312. </div>
  313. </div>
  314. <div class="ad phone_none" v-if="goodsData.length > 0">
  315. <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
  316. </div>
  317. <!-- 资讯 -->
  318. <section class="shop_5 clearfix phone_none" v-if="newsData.length > 0">
  319. <!-- 农产动态 1-->
  320. <div class="shop_5_left clearfix" v-if="newsData.length > 0">
  321. <div class="shop_head_7 clearfix">
  322. <NuxtLink :href="`/${newsData[0].aLIas_pinyin}/index.html`" class="shop_head_7_name">
  323. {{ newsData[0].alias }}
  324. </NuxtLink>
  325. <!-- <NuxtLink :href="`/${newsData[0].aLIas_pinyin}/index.html`" class="shop_head_7_more"
  326. :title="newsData[0].title">
  327. 栏目简介
  328. </NuxtLink> -->
  329. </div>
  330. <div class="shop_box_1 clearfix">
  331. <div class="shop_img_ul_4 clearfix">
  332. <div class="shop_img_li_4 clearfix">
  333. <NuxtLink class="shop_img_li_4_a" :href="getLinkPathDetail(item)"
  334. v-for="(item, index) in newsData[0].data" :title="item.title" :key="index">
  335. <img class="shop_img_li_4_img" :src="item.imgurl" :title="item.title" alt="">
  336. <div class="shop_img_li_4_rgba clearfix dot1">
  337. {{ item.title }}
  338. </div>
  339. </NuxtLink>
  340. </div>
  341. </div>
  342. <div class="shop_img_ul_5 clearfix">
  343. <div class="shop_img_li_5 clearfix" v-for="(item, index) in newsData[0].data1" :key="index">
  344. <NuxtLink class="shop_img_li_5_a" :href="`/${item.pinyin}/${item.id}.html`"
  345. :title="item.title">
  346. <img class="shop_img_li_5_img" :src="item.imgurl" :title="item.title" alt="">
  347. <div class="shop_img_li_5_rgba clearfix dot1">
  348. {{ item.title }}
  349. </div>
  350. </NuxtLink>
  351. </div>
  352. </div>
  353. </div>
  354. <div class="shop_box_2 clearfix">
  355. <div class="shop_ul_2 clearfix">
  356. <NuxtLink class="shop_li_2 clearfix dot1" :href="`/${item.pinyin}/${item.id}.html`"
  357. :title="item.title" v-for="(item, index) in newsData[0].data2" :key="index">
  358. {{ item.title }}
  359. </NuxtLink>
  360. </div>
  361. </div>
  362. </div>
  363. <!-- 农产动态 2-->
  364. <!-- 农产知识 1-->
  365. <div class="shop_5_right clearfix" v-if="newsData.length > 1">
  366. <div class="shop_head_8 clearfix">
  367. <NuxtLink :href="`/${newsData[1].aLIas_pinyin}/index.html`" class="shop_head_8_name">
  368. {{ newsData[1].alias }}
  369. </NuxtLink>
  370. <!-- <NuxtLink :href="`/${newsData[1].aLIas_pinyin}/index.html`" class="shop_head_8_more"
  371. :title="newsData[1].title">
  372. 栏目简介
  373. </NuxtLink> -->
  374. </div>
  375. <div class="shop_img_ul_6 clearfix">
  376. <div class="shop_img_li_6 clearfix">
  377. <NuxtLink class="shop_img_li_6_a" :href="getLinkPathDetail(item)"
  378. v-for="(item, index) in newsData[1].data" :key="index" :title="item.title">
  379. <img class="shop_img_li_6_img" :src="item.imgurl" title="" alt="">
  380. <div class="shop_img_li_6_rgba clearfix dot1">
  381. {{ item.title }}
  382. </div>
  383. </NuxtLink>
  384. </div>
  385. </div>
  386. <div class="shop_ul_3 clearfix">
  387. <NuxtLink class="shop_li_3 dot1" :href="`/${item.pinyin}/${item.id}.html`" :title="item.title"
  388. v-for="(item, index) in newsData[1].data2" :key="index">
  389. {{ item.title }}
  390. </NuxtLink>
  391. </div>
  392. </div>
  393. <!-- 农产知识 2-->
  394. </section>
  395. <div class="phone_box_1 pc_none" v-if="newsData.length > 0">
  396. <div class="phone_shop_head">
  397. <NuxtLink :href="`/${newsData[0].aLIas_pinyin}/index.html`"
  398. class="phone_shop_head_a">
  399. {{ newsData[0].alias }}
  400. </NuxtLink>
  401. </div>
  402. <div class="phone_box_1_img_ul">
  403. <div class="" >
  404. <NuxtLink class=""
  405. :href="getLinkPathDetail(item)"
  406. v-for="(item, index) in newsData[0].data" :title="item.title" :key="index">
  407. <img class="" :src="item.imgurl" alt="">
  408. <span class="">
  409. {{ item.title }}
  410. </span>
  411. </NuxtLink>
  412. </div>
  413. </div>
  414. <div class="phone_box_1_ul">
  415. <NuxtLink class="" :href="`/${item.pinyin}/${item.id}.html`"
  416. v-for="(item, index) in newsData[0].data2.slice(0, 4)" :key="index">
  417. {{ item.title }}
  418. </NuxtLink>
  419. </div>
  420. </div>
  421. <div class="phone_box_2 pc_none" v-if="newsData.length > 1">
  422. <div class="phone_shop_head" >
  423. <NuxtLink
  424. :href="`/${newsData[1].aLIas_pinyin}/index.html`"
  425. class="phone_shop_head_a">
  426. {{ newsData[1].alias }}
  427. </NuxtLink>
  428. </div>
  429. <div class="phone_box_1_img_ul" >
  430. <div class="" >
  431. <NuxtLink class=""
  432. :href="getLinkPathDetail(item)"
  433. v-for="(item, index) in newsData[1].data"
  434. :key="index">
  435. <img class="" :src="item.imgurl" alt="">
  436. <span class="">
  437. {{ item.title }}
  438. </span>
  439. </NuxtLink>
  440. </div>
  441. </div>
  442. <div class="phone_box_1_ul" >
  443. <NuxtLink class=""
  444. :href="`/${item.pinyin}/${item.id}.html`"
  445. v-for="(item, index) in newsData[1].data2.slice(0, 2)"
  446. :key="index">
  447. {{ item.title }}
  448. </NuxtLink>
  449. </div>
  450. </div>
  451. <section class="shop_6 clearfix phone_none" v-if="newsData.length > 2">
  452. <!-- 农产会展1 -->
  453. <div class="shop_6_left clearfix" v-if="newsData.length > 2">
  454. <div class="shop_head_9 clearfix">
  455. <NuxtLink :href="`/${newsData[2].aLIas_pinyin}/index.html`" class="shop_head_9_name">
  456. {{ newsData[2].alias }}
  457. </NuxtLink>
  458. <!-- <NuxtLink :href="`/${newsData[2].aLIas_pinyin}/index.html`" class="shop_head_9_more"
  459. :title="newsData[2].title">
  460. 栏目简介
  461. </NuxtLink> -->
  462. </div>
  463. <div class="shop_box_3 clearfix">
  464. <div class="shop_img_ul_7 clearfix">
  465. <div class="shop_img_li_7 clearfix">
  466. <NuxtLink class="shop_img_li_7_a" :href="getLinkPathDetail(item)"
  467. v-for="(item, index) in newsData[2].data" :key="index" :title="item.title">
  468. <img class="shop_img_li_7_img" :src="item.imgurl" :title="item.title" alt="">
  469. <div class="shop_img_li_7_rgba clearfix dot1">
  470. {{ item.title }}
  471. </div>
  472. </NuxtLink>
  473. </div>
  474. </div>
  475. </div>
  476. <div class="shop_box_4 clearfix">
  477. <div class="shop_ul_4 clearfix">
  478. <NuxtLink :href="`/${item.pinyin}/${item.id}.html`" :title="item.title"
  479. class="shop_li_4 clearfix dot1" v-for="(item, index) in newsData[2].data2" :key="index">
  480. {{ item.title }}
  481. </NuxtLink>
  482. </div>
  483. </div>
  484. </div>
  485. <!-- 农产会展2 -->
  486. <!-- 农产商机1 -->
  487. <div class="shop_6_right clearfix" v-if="newsData.length > 3">
  488. <div class="shop_head_10 clearfix">
  489. <NuxtLink :href="`/${newsData[3].aLIas_pinyin}/index.html`" class="shop_head_10_name">
  490. {{ newsData[3].alias }}
  491. </NuxtLink>
  492. <!-- <NuxtLink :href="`/${newsData[3].aLIas_pinyin}/index.html`" class="shop_head_10_more"
  493. :title="newsData[3].title">
  494. 栏目简介
  495. </NuxtLink> -->
  496. </div>
  497. <div class="shop_box_5 clearfix" v-if="newsData[3].data">
  498. <div class="shop_img_ul_8 clearfix">
  499. <div class="shop_img_li_8 clearfix" v-for="(item, index) in newsData[3].data" :key="index">
  500. <NuxtLink class="shop_img_li_8_a" :href="`/${item.pinyin}/${item.id}.html`"
  501. :title="item.title">
  502. <img class="shop_img_li_8_img" :src="item.imgurl" title="" alt="">
  503. <div class="shop_img_li_8_rgba clearfix dot1">
  504. {{ item.title }}
  505. </div>
  506. </NuxtLink>
  507. </div>
  508. </div>
  509. </div>
  510. <div class="shop_box_6 clearfix" v-if="newsData[3].data2">
  511. <div class="shop_ul_5 clearfix">
  512. <div class="shop_li_5 clearfix" v-for="(item, index) in newsData[3].data2" :key="index">
  513. <div class="shop_li_5_in clearfix">
  514. <NuxtLink class="shop_li_5_a dot2" :href="`/${item.pinyin}/${item.id}.html`"
  515. :title="item.title">
  516. {{ item.title }}
  517. </NuxtLink>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. <!-- 农产商机2 -->
  524. </section>
  525. <div class="phone_box_3 pc_none" v-if="newsData.length > 2">
  526. <div class="phone_shop_head">
  527. <NuxtLink :href="`/${newsData[2].aLIas_pinyin}/index.html`"
  528. class="phone_shop_head_a">
  529. {{ newsData[2].alias }}
  530. </NuxtLink>
  531. </div>
  532. <div class="phone_box_1_img_ul">
  533. <div class="" >
  534. <NuxtLink class=""
  535. :href="getLinkPathDetail(item)"
  536. v-for="(item, index) in newsData[2].data"
  537. :key="index" :title="item.title">
  538. <img class=" " :src="item.imgurl" alt="">
  539. <span class=" ">
  540. {{ item.title }}
  541. </span>
  542. </NuxtLink>
  543. </div>
  544. </div>
  545. <div class="phone_box_1_ul">
  546. <NuxtLink
  547. :href="`/${item.pinyin}/${item.id}.html`"
  548. class=""
  549. v-for="(item, index) in newsData[2].data2.slice(0, 4)"
  550. :key="index">
  551. {{ item.title }}
  552. </NuxtLink>
  553. </div>
  554. </div>
  555. </main>
  556. <HomeFoot></HomeFoot>
  557. </template>
  558. <script setup>
  559. import { NuxtLink } from '#components';
  560. import { ref } from 'vue'
  561. import { ElRadio, ElRadioGroup, ElMessage } from 'element-plus'
  562. //1.获得路由id start ---------------------------------------->
  563. const targetSegment = getRoutePath(1);
  564. //1.1 获得当前的路由id
  565. let routeId;
  566. let categoryName;
  567. //通过导航路径反向查询导航id
  568. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  569. method: 'GET',
  570. query: {
  571. 'pinyin': targetSegment,
  572. },
  573. });
  574. if (getRouteId.code == 200) {
  575. routeId = getRouteId.data.category_id
  576. categoryName = getRouteId.data.alias
  577. } else {
  578. console.log("获得路由id出错!", getRouteId.message)
  579. }
  580. //1.获得路由id end ---------------------------------------->
  581. //3.广告 start ---------------------------------------->
  582. let adImg1 = ref({})
  583. onMounted(async () => {
  584. //从客户端获取行政职能部门 加快打开速度
  585. const { $webUrl, $CwebUrl } = useNuxtApp();
  586. //广告1
  587. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snscw_category_0001`
  588. const responseAd1 = await fetch(url, {
  589. headers: {
  590. 'Content-Type': 'application/json',
  591. 'Userurl': $CwebUrl,
  592. 'Origin': $CwebUrl
  593. }
  594. });
  595. const resultAd1 = await responseAd1.json();
  596. adImg1.value = resultAd1.data[0];
  597. })
  598. //3.广告 end ---------------------------------------->
  599. //4.页面数据 start ---------------------------------------->
  600. const pageData = ref([
  601. //示例:
  602. // {
  603. // id: 1,
  604. // title: "", //该导航的标题
  605. // data: [], //数据1
  606. // data1: [], //数据2
  607. // data2: [], //数据3
  608. // data3: [], //数据4
  609. // data4: [], //数据5
  610. // category_id1: "", //子导航id1
  611. // category_id2: "",
  612. // category_id3: "",
  613. // category_id4: "",
  614. // title1: "", //子导航标题1
  615. // title2: "",
  616. // title3: "",
  617. // title4: "",
  618. // cid: "" //该导航的id
  619. // },
  620. ])
  621. const goodsData = ref([])
  622. const newsData = ref([])
  623. //4.1 获取所有导航
  624. try {
  625. const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
  626. method: 'GET',
  627. query: {
  628. 'placeid': 1,
  629. 'pid': routeId,
  630. 'num': 8,
  631. 'type': 1
  632. },
  633. });
  634. if (navigateData.code == 200) {
  635. // 遍历可用的导航池放到页面中
  636. for (let index in navigateData.data) {
  637. let data = {
  638. title: navigateData.data[index].name,
  639. cid: navigateData.data[index].category_id,
  640. children_count: navigateData.data[index].children_count,
  641. alias: navigateData.data[index].alias,
  642. aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
  643. children: navigateData.data[index].children,
  644. type: navigateData.data[index].type,
  645. pinyin: navigateData.data[index].aLIas_pinyin,
  646. data: [],
  647. data1: [],
  648. data2: [],
  649. data3: [],
  650. data4: [],
  651. category_id1: "",
  652. category_id2: "",
  653. category_id3: "",
  654. category_id4: "",
  655. title1: "",
  656. title2: "",
  657. title3: "",
  658. title4: ""
  659. };
  660. if (navigateData.data[index].is_url == 1) {
  661. // 处理 URL 的逻辑
  662. } else {
  663. if (navigateData.data[index].type == 2) {
  664. goodsData.value.push(data);
  665. } else if (navigateData.data[index].type == 1) {
  666. newsData.value.push(data);
  667. }
  668. //每个页面最多8个模块
  669. pageData.value.push(data);
  670. // console.log("导航池1111111pageData11111111111111111", pageData.value);
  671. }
  672. }
  673. // console.log("导航池11111goods", goodsData.value);
  674. // console.log("导航池11111newsData", newsData.value);
  675. //导航池加载完毕,开始申请模块数据
  676. let getJson = [
  677. // { "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",5,9" },//模块1
  678. // { "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",1,6" },//模块2
  679. // { "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" },//模块3
  680. // { "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",1,6" },//模块4
  681. ]
  682. for (let i = 0; i < newsData.value.length; i++) {
  683. if (i == 0) {
  684. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",3,9" })
  685. } else if (i == 1) {
  686. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",1,2" })
  687. } else if (i == 2) {
  688. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" })
  689. } else if (i == 3) {
  690. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",2,4" })
  691. }
  692. }
  693. let jsonString = JSON.stringify(getJson);
  694. if (newsData.value.length > 0) {
  695. getPageAllData(jsonString);
  696. }
  697. let goodsJson = [
  698. // { "catid": goodsData.value[0].cid + ",0,12" },//模块1
  699. // { "catid": goodsData.value[1].cid + ",0,4" },//模块2
  700. // { "catid": goodsData.value[2].cid + ",0,4" },//模块3
  701. ]
  702. for (let i = 0; i < goodsData.value.length; i++) {
  703. if (i == 0) {
  704. goodsJson.push({ "catid": goodsData.value[0].cid + ",0,12" });
  705. } else if (i == 1) {
  706. goodsJson.push({ "catid": goodsData.value[1].cid + ",0,4" });
  707. } else if (i == 2) {
  708. goodsJson.push({ "catid": goodsData.value[2].cid + ",0,4" });
  709. }
  710. }
  711. let goodsJsonString = JSON.stringify(goodsJson);
  712. getPageGoodsAllData(goodsJsonString);
  713. } else {
  714. console.log("错误:渲染8个模块环节出错,请检查是否存在没有数据的模块!")
  715. }
  716. } catch (error) {
  717. console.log("错误:导航池渲染执行接口出错!请检查频道页渲染的模块数据是否完整!")
  718. }
  719. // 获取商品数据 start--------------------------------------->
  720. async function getPageGoodsAllData(goodsJsonString) {
  721. const mkdata = await requestDataPromise('/web/getWebsiteCatidshop', {
  722. method: 'GET',
  723. query: {
  724. 'catid': goodsJsonString
  725. },
  726. });
  727. console.log("获取商品数据", mkdata);
  728. if (mkdata.code == 200) {
  729. //模块1
  730. for (let index in mkdata.data[0]) {
  731. // console.log("获取商品数据", index, mkdata.data[0][index]);
  732. if (index < 4) {
  733. goodsData.value[0].data.push(mkdata.data[0][index]);
  734. } else {
  735. goodsData.value[0].data1.push(mkdata.data[0][index]);
  736. }
  737. }
  738. //模块2
  739. if (mkdata.length > 1) {
  740. goodsData.value[1].data = mkdata.data[1];
  741. }
  742. if (mkdata.length > 2) {
  743. goodsData.value[2].data = mkdata.data[2];
  744. }
  745. console.log("获取商品数据111111", goodsData.value);
  746. }
  747. }
  748. // 获取商品数据 end----------------------------------------->
  749. // 获取资讯数据 start----------------------------------------->
  750. async function getPageAllData(jsonString) {
  751. const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
  752. method: 'GET',
  753. query: {
  754. 'id': jsonString
  755. },
  756. });
  757. console.log("获取资讯数据11111111111222222", mkdata);
  758. if (mkdata.code == 200) {
  759. //模块1 顶部大图和列表
  760. for (let index in mkdata.data[0].child.imgnum) {
  761. if (index < 1) {
  762. newsData.value[0].data.push(mkdata.data[0].child.imgnum[index]);
  763. } else {
  764. newsData.value[0].data1.push(mkdata.data[0].child.imgnum[index]);
  765. }
  766. }
  767. newsData.value[0].data2 = mkdata.data[0].child.textnum;
  768. //模块2
  769. newsData.value[1].data = mkdata.data[1].child.imgnum;
  770. newsData.value[1].data2 = mkdata.data[1].child.textnum;
  771. //模块3
  772. newsData.value[2].data = mkdata.data[2].child.imgnum;
  773. newsData.value[2].data2 = mkdata.data[2].child.textnum;
  774. //模块4
  775. newsData.value[3].data = mkdata.data[3].child.imgnum;
  776. newsData.value[3].data2 = mkdata.data[3].child.textnum;
  777. } else {
  778. ElMessage.error(mkdata.message)
  779. }
  780. }
  781. // 获取资讯数据 end----------------------------------------->
  782. //4.页面数据 end ---------------------------------------->
  783. //5.设置seo信息 start---------------------------------------->
  784. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  785. method: 'GET',
  786. query: {
  787. 'catid': routeId
  788. },
  789. });
  790. if (setData.code == 200) {
  791. let seoTitle = setData.data.seo_title;
  792. let seoDescription = setData.data.seo_description;
  793. let seoKeywords = setData.data.seo_keywords;
  794. let seoSuffix = setData.data.suffix;
  795. let seoName = setData.data.website_name;
  796. useSeoMeta({
  797. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  798. meta: [
  799. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  800. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  801. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
  802. ]
  803. });
  804. } else {
  805. console.log("设置频道页SEO出错!", setData.message)
  806. }
  807. //5.设置seo信息 end---------------------------------------->
  808. </script>
  809. <style lang="less" scoped>
  810. @import url("@/assets/css/shop/shopClass.less");
  811. </style>
  812. <style lang="less" scoped>
  813. @media screen and (min-width:801px){/*pc*/
  814. .pc_none{display:none;}
  815. }
  816. @media screen and (max-width:800px){/*ipad_phone*/
  817. .index_main{width:100%;margin:0px auto;}
  818. .phone_nav{
  819. width:100%; box-sizing:border-box;background:#fafafa;
  820. margin:10px auto;height:33px;
  821. .phone_nav_in{ width:92%;margin:0px auto;
  822. overflow-x:auto;overflow-y:hidden;
  823. word-break: keep-all; white-space: nowrap;
  824. line-height:33px;
  825. height:33px;
  826. }
  827. .phone_nav_in::-webkit-scrollbar{height:0px;}
  828. .phone_nav_a{display:inline-block;line-height:33px;height:33px;
  829. color:#333;font-size:14px;margin:0px 10px;
  830. }
  831. .phone_nav_a:nth-of-type(1){margin-left:0px;}
  832. }
  833. .phone_nav_a.active{
  834. color:#255590;
  835. }
  836. .phone_shop_1{width:92%;margin:10px auto 0;
  837. .phone_shop_head{overflow:hidden;}
  838. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  839. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  840. padding-left:18px;
  841. background:url(@/public/shop/01.png) no-repeat left center;
  842. background-size:10px 14px;
  843. }
  844. .phone_shop_img_ul{min-height:252px;}
  845. .phone_shop_img_li{width:48%;margin-bottom:15px;}
  846. .phone_shop_img_li:nth-of-type(odd){float:left; }
  847. .phone_shop_img_li:nth-of-type(even){ float:right;}
  848. .phone_shop_img_li_a{display:block;width:100%; }
  849. .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
  850. .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
  851. overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
  852. .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
  853. .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#255590;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #255590;}
  854. .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#255590; padding:0px 6px;border:solid 1px #255590;}
  855. }
  856. .phone_shop_2{width:92%;margin:10px auto 0;
  857. .phone_shop_head{overflow:hidden;}
  858. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  859. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  860. padding-left:18px;
  861. background:url(@/public/shop/01.png) no-repeat left center;
  862. background-size:10px 14px;
  863. }
  864. .phone_shop_img_ul{min-height:252px;}
  865. .phone_shop_img_li{width:48%;margin-bottom:15px;}
  866. .phone_shop_img_li:nth-of-type(odd){float:left; }
  867. .phone_shop_img_li:nth-of-type(even){ float:right;}
  868. .phone_shop_img_li_a{display:block;width:100%; }
  869. .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
  870. .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
  871. overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
  872. .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
  873. .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#255590;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #255590;}
  874. .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#255590; padding:0px 6px;border:solid 1px #255590;}
  875. }
  876. .phone_shop_3{width:92%;margin:10px auto 0;
  877. .phone_shop_head{overflow:hidden;}
  878. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  879. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  880. padding-left:18px;
  881. background:url(@/public/shop/01.png) no-repeat left center;
  882. background-size:10px 14px;
  883. }
  884. .phone_shop_img_ul{min-height:252px;}
  885. .phone_shop_img_li{width:48%;margin-bottom:15px;}
  886. .phone_shop_img_li:nth-of-type(odd){float:left; }
  887. .phone_shop_img_li:nth-of-type(even){ float:right;}
  888. .phone_shop_img_li_a{display:block;width:100%; }
  889. .phone_shop_img{display:block;width:100%;height:44vw;border-radius:6px;}
  890. .phone_shop_img_li_dot2{height:40px;line-height:20px;color:#333;font-size:16px;margin:4px 0 2px;
  891. overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
  892. .phone_shop_img_foot{overflow:hidden;margin-top:4px;}
  893. .phone_shop_img_foot_1{float:left;height:22px;line-height:22px;color:#255590;font-size:14px;padding:0px 6px;margin-right:4px; border:solid 1px #255590;}
  894. .phone_shop_img_foot_2{float:right;height:22px;line-height:22px;color:#fff;font-size:14px;background:#255590; padding:0px 6px;border:solid 1px #255590;}
  895. }
  896. .phone_shop_1_text_box{
  897. width:92%;margin:15px auto 0px;
  898. .phone_shop_text_head{overflow:hidden;}
  899. .phone_shop_text_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  900. color:#F7812B;font-size:18px; font-weight:bold;box-sizing:border-box;
  901. padding-left:18px;
  902. background:url(@/public/shop/02.png) no-repeat left center;
  903. background-size:10px 14px; }
  904. .phone_shop_text_ul{width:100%;}
  905. .phone_shop_text_li{width:100%;border-bottom:dashed 1px #ddd;padding-bottom:8px;margin-bottom:8px;}
  906. .phone_shop_text_li_a{display:block;width:100%;}
  907. .phone_shop_text_li_h4{display:block;width:100%;height:20px;line-height:20px;color:#333;font-size:16px;text-indent:15px;position:relative;font-weight:normal;
  908. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}
  909. .phone_shop_text_li_h4::after {
  910. content: '';
  911. display: block;
  912. width: 6px;
  913. height: 6px;
  914. background: #F7812B;
  915. position: absolute;
  916. left: 0px;
  917. top: 7px;
  918. }
  919. .phone_shop_text_li_dot1{display:block;width:100%;height:20px;line-height:20px;color:#666;font-size:14px;text-indent:15px;margin-top:2px;
  920. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}
  921. }
  922. .phone_box_1{
  923. width:92%;margin:0px auto 0px;
  924. .phone_shop_head{overflow:hidden;margin-top:15px;}
  925. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  926. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  927. padding-left:18px;
  928. background:url(@/public/shop/01.png) no-repeat left center;
  929. background-size:10px 14px;
  930. }
  931. .phone_box_1_img_ul{
  932. height:55vw;overflow:hidden;
  933. div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
  934. a{display:block;width:100%;height:100%;}
  935. img{display:block;width:100%;height:100%;}
  936. span{
  937. position:absolute;width:100%;height:66px;line-height:90px;color:#fff; font-size:16px;
  938. left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
  939. background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
  940. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  941. }
  942. >div:nth-of-type(n+2){display:none;}
  943. }
  944. .phone_box_1_ul{
  945. overflow:hidden;height:123px;margin:8px auto 0px;
  946. >div{width:100%;height:100%;}
  947. a{
  948. width:100%!important;display:block;height:40px;line-height:40px;
  949. border-bottom:1px solid #E6E6E6;display:block;position:relative;
  950. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  951. font-size:16px;color:#333;text-indent:18px;
  952. }
  953. a::after{
  954. content: '';display: block;
  955. position:absolute;left:0px;top:18px;background:#E6E6E6;
  956. width:6px;height:6px;
  957. }
  958. a:nth-of-type(n+4){display:none;}
  959. }
  960. }
  961. .phone_box_2{
  962. width:92%;margin:0px auto 0px;
  963. .phone_shop_head{overflow:hidden;margin-top:15px;}
  964. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  965. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  966. padding-left:18px;
  967. background:url(@/public/shop/01.png) no-repeat left center;
  968. background-size:10px 14px;
  969. }
  970. .phone_box_1_img_ul{
  971. height:55vw;overflow:hidden;
  972. div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
  973. a{display:block;width:100%;height:100%;}
  974. img{display:block;width:100%;height:100%;}
  975. span{
  976. position:absolute;width:100%;height:66px;line-height:90px;color:#fff; font-size:16px;
  977. left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
  978. background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
  979. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  980. }
  981. >div:nth-of-type(n+2){display:none;}
  982. }
  983. .phone_box_1_ul{
  984. overflow:hidden;height:82px;margin:8px auto 29px;
  985. >div{width:100%;height:100%;}
  986. a{
  987. width:100%!important;display:block;height:40px;line-height:40px;
  988. border-bottom:1px solid #E6E6E6;display:block;position:relative;
  989. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  990. font-size:16px;color:#333;text-indent:18px;
  991. }
  992. a::after{
  993. content: '';display: block;
  994. position:absolute;left:0px;top:18px;background:#E6E6E6;
  995. width:6px;height:6px;
  996. }
  997. a:nth-of-type(n+4){display:none;}
  998. }
  999. }
  1000. .phone_box_3{
  1001. width:92%;margin:0px auto 0px;
  1002. .phone_shop_head{overflow:hidden;margin-top:15px;}
  1003. .phone_shop_head_a{ float:left;height:50px;line-height:50px;margin:0;position:relative;
  1004. color:#255590;font-size:18px; font-weight:bold;box-sizing:border-box;
  1005. padding-left:18px;
  1006. background:url(@/public/shop/01.png) no-repeat left center;
  1007. background-size:10px 14px;
  1008. }
  1009. .phone_box_1_img_ul{
  1010. height:55vw;overflow:hidden;
  1011. div{width:100%;float:none;height:55vw;border-radius:10px;position:relative;overflow:hidden;}
  1012. a{display:block;width:100%;height:100%;}
  1013. img{display:block;width:100%;height:100%;}
  1014. span{
  1015. position:absolute;width:100%;height:66px;line-height:90px;color:#fff; font-size:16px;
  1016. left:0px;bottom:0px;padding:0px 5%;box-sizing:border-box; display:block;
  1017. background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
  1018. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1019. }
  1020. >div:nth-of-type(n+2){display:none;}
  1021. }
  1022. .phone_box_1_ul{
  1023. overflow:hidden;height:82px;margin:8px auto 29px;
  1024. >div{width:100%;height:100%;}
  1025. a{
  1026. width:100%!important;display:block;height:40px;line-height:40px;
  1027. border-bottom:1px solid #E6E6E6;display:block;position:relative;
  1028. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1029. font-size:16px;color:#333;text-indent:18px;
  1030. }
  1031. a::after{
  1032. content: '';display: block;
  1033. position:absolute;left:0px;top:18px;background:#E6E6E6;
  1034. width:6px;height:6px;
  1035. }
  1036. a:nth-of-type(n+4){display:none;}
  1037. }
  1038. }
  1039. .phone_none{display:none;}
  1040. }
  1041. </style>