indexNew.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. <template>
  2. <view class="content">
  3. <pcNav :data="indexName" :itemName="topName" @getIndexList="getIndexList"
  4. @gosearchlist="gosearchlist"
  5. @getChildList = "getChildList"></pcNav>
  6. <view v-show="indexShow">
  7. <view style="height: 72px;"></view>
  8. <view class="swiperBox" v-if="recommendList.length>0">
  9. <view class="swiperCont">
  10. <view class="tuijbox">
  11. <image src="../../static/pcimg/icon_tuijian@2x.png" mode="" class="tuijImg"></image>
  12. <span class="tuijTitle">推荐文章</span>
  13. </view>
  14. <swiper class="swiper" :autoplay="false" :circular="true" :current="swpIndex">
  15. <swiper-item v-for="(item,index) in recommendList" v-if="(index+1)%4!=0">
  16. <view class="mainwzbox2" >
  17. <view class="mainwzline" @click="goDetailswp(recommendList[index])" >
  18. <view class="mainwzImgBox">
  19. <img :src="item.logoImg" alt="" class="mainwzImg">
  20. </view>
  21. <view class="wztitle">{{item.name}}</view>
  22. <view class="wztime">{{item.CreateTime.slice(0,10)}}</view>
  23. </view>
  24. <view class="mainwzline" v-if="recommendList[index+1]" @click="goDetailswp(recommendList[index+1])" >
  25. <view class="mainwzImgBox">
  26. <img :src="recommendList[index+1].logoImg" alt="" class="mainwzImg">
  27. </view>
  28. <view class="wztitle">{{recommendList[index+1].name}}</view>
  29. <view class="wztime">{{recommendList[index+1].CreateTime.slice(0,10)}}</view>
  30. </view>
  31. <view class="mainwzline" v-if="recommendList[index+2]" @click="goDetailswp(recommendList[index+2])" >
  32. <view class="mainwzImgBox">
  33. <img :src="recommendList[index+2].logoImg" alt="" class="mainwzImg">
  34. </view>
  35. <view class="wztitle">{{recommendList[index+2].name}}</view>
  36. <view class="wztime">{{recommendList[index+2].CreateTime.slice(0,10)}}</view>
  37. </view>
  38. <view class="mainwzline mainwzlineR" v-if="recommendList[index+3]" @click="goDetailswp(recommendList[index+3])" >
  39. <view class="mainwzImgBox">
  40. <img :src="recommendList[index+3].logoImg" alt="" class="mainwzImg">
  41. </view>
  42. <view class="wztitle">{{recommendList[index+3].name}}</view>
  43. <view class="wztime">{{recommendList[index+3].CreateTime.slice(0,10)}}</view>
  44. </view>
  45. </view>
  46. <!-- <view class="swpCont">
  47. <view class="swiper-item" @click="goDetail(item)">
  48. <view class="swpimgBox swpBr">
  49. <image :src="item.logoImg" mode="" class="swpimg"></image>
  50. </view>
  51. <view class="swpTitleBox">
  52. <view class="swpTitle">{{item.title}}</view>
  53. <view class="categoryName" @click.stop="goList(item)">{{item.categoryName.substring(0,5)}}</view>
  54. </view>
  55. </view>
  56. <view class="swiper-item" v-if="(index+1)<recommendList.length" @click="goDetail(recommendList[index+1])">
  57. <view class="swpimgBox swpBr">
  58. <image :src="recommendList[index+1].logoImg" mode="" class="swpimg"></image>
  59. </view>
  60. <view class="swpTitleBox">
  61. <view class="swpTitle">{{recommendList[index+1].title}}</view>
  62. <view class="categoryName">{{recommendList[index+1].categoryName.substring(0,5)}}</view>
  63. </view>
  64. </view>
  65. </view> -->
  66. </swiper-item>
  67. </swiper>
  68. <image src="../../static/pcimg/icon_arrow_zuo_sel@2x.png" mode="" class="swpImgleft" @click="swpBtnLeft"></image>
  69. <image src="../../static/pcimg/legtspx.png" mode="" class="swpImgright" @click="swpBtnRight"></image>
  70. </view>
  71. </view>
  72. <view class="main">
  73. <view class="mainCont">
  74. <view class="mainline" :class="{'mainline1':index==0}" v-for="(item,index) in indexData.categoryList" v-if="item.children.length>0">
  75. <view class="mainlineTop">
  76. <view class="mainlineTopleft">
  77. <view class="mainlineTitle">{{item.name}}</view>
  78. <view class="mainlinecount">共{{item.count}}篇文章</view>
  79. </view>
  80. <view class="mainlineMore" @click="mainMore(item)">查看更多
  81. <image src="../../static/pcimg/icon_list_arrow_def@2x.png" mode="" class="linegdImg1"></image>
  82. <image src="../../static/pcimg/icon_list_arrow_sel@2x.png" mode="" class="linegdImg2"></image>
  83. </view>
  84. </view>
  85. <view class="mainwzbox" v-if="item.children.length>0">
  86. <view class="mainwzline" v-for="(wz,wzindex) in item.children" @click="goDetail2(wz,item)" v-if="wzindex<4" :class="{'mainwzlineR':wzindex!=3}">
  87. <view class="mainwzImgBox">
  88. <img :src="wz.logoImg" alt="" class="mainwzImg">
  89. </view>
  90. <view class="wztitle">{{wz.title}}</view>
  91. <view class="wztime">{{wz.CreateTime.slice(0,10)}}</view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 列表页 -->
  99. <view v-show="listShow">
  100. <view style="height: 72px;"></view>
  101. <view class="top">
  102. <view class="topName">{{topName}}</view>
  103. <view class="comment listtopC" v-if="comment">{{comment}}</view>
  104. </view>
  105. <view class="main">
  106. <view class="dynamicCol">
  107. <view class="dynamicColLeft">
  108. <view class="dynamicColLIne" :class="{'activeTab':tabIndex==index}" v-for="(item,index) in dynamicCol" @click="tabBtn(index,item)">{{item.name}}</view>
  109. </view>
  110. <view class="dynamicColRight">
  111. <image src="../../static/pcimg/icon_kapian_def@2x.png" v-show="qhIndex==2" class="qhImg" @click="qhIndex=1"></image>
  112. <image src="../../static/pcimg/icon_kapian_sel@2x.png" v-show="qhIndex==2" class="qhImg"></image>
  113. <image src="../../static/pcimg/icon_liebiao_sel@2x.png" v-show="qhIndex==1" class="qhImg" ></image>
  114. <image src="../../static/pcimg/qh2.png" v-show="qhIndex==1" class="qhImg" @click="qhIndex=2"></image>
  115. </view>
  116. </view>
  117. <view class="cont2">
  118. <view class="contBox">
  119. <view class="contf" v-if="qhIndex==2&&list.length>0">
  120. <view class="mainwzline" v-for="(wz,wzindex) in list" :class="{'mainwzlineR2':(wzindex+1)%4==0&&wzindex!=0}" @click="goDetail3(wz)">
  121. <view class="mainwzImgBox">
  122. <img :src="wz.LogoImg" alt="" class="mainwzImg">
  123. </view>
  124. <view class="wztitle">{{wz.Title}}</view>
  125. <view class="wztime">2022-3-30</view>
  126. </view>
  127. </view>
  128. <view class="contL" v-if="qhIndex==1&&list.length>0">
  129. <view class="wxLine" v-for="(wz,wzindex) in list" @click="goDetail3(wz)">
  130. <view class="wzLineLeft">
  131. <image :src="wz.LogoImg" class="wzLeftIMg"></image>
  132. </view>
  133. <view class="wzLineRight">
  134. <view class="wzTitle2">{{wz.Title}}</view>
  135. <view class="wzComment">{{wz.Comment}}</view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="nodata" v-show="list.length==0">
  140. <image src="../../static/pcimg/listnodata.png" mode="" class="nodataImg"></image>
  141. <view class="nodataTitle">暂无数据</view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="pageView" v-show="TotalSize">
  147. <page-pagination :pageSize="pageSize" :currentPage="page" :size="'small'" :total="TotalSize" :numAround="true" @change="pageChange"></page-pagination>
  148. </view>
  149. </view>
  150. <view class="gotop" @click="gotoTop">
  151. <image src="../../static/pcimg/btn_top@2x.png" mode="" class="gotopImg"></image>
  152. </view>
  153. <view>
  154. <newDetail ref="newDetailV" @getChildList="getChildList"
  155. v-show="newDetailShow" :newid='newDetailID' :data="newDetailItem" @getIndexList="getIndexList"></newDetail>
  156. <newgroupingList @getIndexList="getIndexList"
  157. @getChildList="getChildList" @goDetail="goDetail"
  158. v-show="newgroupingListShow" :newcode="newgroupingcode" :data="newgroupingdata"></newgroupingList>
  159. <newsearchlist v-show="newsearchShow" @goDetail="goDetail" @goDetail4="goDetail4"></newsearchlist>
  160. </view>
  161. </view>
  162. </template>
  163. <script>
  164. import pcNav from '../../components/pcNavLh/pcNav.vue'
  165. import newDetail from './newDetail.vue'
  166. import newgroupingList from './newgroupingList.vue'
  167. import newsearchlist from './newsearchlist.vue'
  168. export default {
  169. components: {
  170. pcNav,newDetail,newgroupingList,newsearchlist
  171. },
  172. data() {
  173. return {
  174. title: 'Hello',
  175. allCategory:[],
  176. navMoret:false,
  177. swpIndex:0,
  178. indexData:'',
  179. recommendList:[],
  180. list:[],
  181. comment:'',
  182. topName:'',
  183. parentCode:'',
  184. topCode:'',
  185. page:1,
  186. dynamicCol:[],
  187. qhIndex:1,
  188. tabIndex:0,
  189. TotalSize:0,
  190. pageSize:20,
  191. indexShow:true,
  192. listShow:false,
  193. indexName:'index',
  194. newDetailShow:false,
  195. newgroupingListShow:false,
  196. newsearchShow:false,
  197. newDetailID:'',
  198. newDetailItem:'',
  199. newgroupingcode:'',
  200. newgroupingdata:'',
  201. }
  202. },
  203. onLoad(opt) {
  204. uni.setNavigationBarTitle({
  205. title: '门店学院' // 设定新标题
  206. });
  207. if(opt.id){
  208. this.newDetailID=opt.id;
  209. var item={
  210. categoryName:opt.topName,
  211. comment:opt.comment,
  212. parentCode:'',
  213. twoName:'',
  214. id:opt.id
  215. }
  216. console.log(item)
  217. this.goDetail(item)
  218. }
  219. this.getindexData()
  220. /* var helpToken=opt.helpToken
  221. if(helpToken){
  222. }else{
  223. var that=this
  224. uni.getStorage({
  225. key: "helpToken",
  226. success: function(res) {
  227. const currentTime = Date.now();
  228. const expiration = res.data.expiration;
  229. if (currentTime < expiration) {
  230. // 数据未过期,使用数据
  231. // console.log('数据有效,值为:', res.data.value);
  232. var helpToken=res.data.value
  233. if(helpToken){
  234. }else{
  235. that.login()
  236. }
  237. } else {
  238. that.login()
  239. uni.removeStorageSync('helpToken');
  240. }
  241. },
  242. fail: function() {
  243. console.log('获取数据失败');
  244. that.login()
  245. }
  246. });
  247. } */
  248. },
  249. created(){
  250. //this.getindexData()
  251. },
  252. methods: {
  253. login(){
  254. uni.navigateTo({
  255. url:'../login/login?index=2'
  256. })
  257. },
  258. getIndexList(){
  259. this.indexShow=true;
  260. this.listShow=false;
  261. this.newDetailShow=false;
  262. this.newgroupingListShow=false;
  263. this.newsearchShow=false;
  264. this.indexName='index';
  265. this.topName=''
  266. },
  267. gosearchlist(){
  268. this.indexShow=false;
  269. this.listShow=false;
  270. this.newDetailShow=false;
  271. this.newgroupingListShow=false;
  272. this.newsearchShow=true;
  273. this.indexName='';
  274. this.topName=''
  275. },
  276. getChildList(item){
  277. console.log(item);
  278. this.indexName=''
  279. this.topName=item.name;
  280. this.comment=item.comment;
  281. this.topCode=item.code;
  282. this.parentCode=item.code;
  283. this.page=1;
  284. //this.parentCode='';
  285. this.getcategoryPageData();
  286. uni.setNavigationBarTitle({
  287. title: this.topName
  288. });
  289. this.indexShow=false;
  290. this.listShow=true;
  291. this.newDetailShow=false;
  292. this.newgroupingListShow=false;
  293. this.newsearchShow=false;
  294. this.tabIndex=0;
  295. },
  296. goList(item){
  297. console.log(item)
  298. this.getChildList(item)
  299. uni.pageScrollTo({
  300.    scrollTop: 0, duration: 100
  301. });
  302. /* uni.navigateTo({
  303. url:'list?code='+item.code+'&topName='+item.categoryName//+'&comment='+item.comment
  304. }) */
  305. },
  306. goDetail(item){
  307. console.log(item)
  308. this.indexShow=false;
  309. this.listShow=false;
  310. this.newDetailShow=true;
  311. this.newgroupingListShow=false;
  312. this.newsearchShow=false;
  313. this.newDetailID=item.id;
  314. item.categoryName=item.topName;
  315. //item.code=
  316. this.newDetailItem=item;
  317. console.log(this.newDetailItem)
  318. //this.$refs.newDetailV.test()
  319. //this.$refs.newDetailV.newidfn()
  320. /* uni.navigateTo({
  321. url:'detail?id='+item.id+'&topName='+item.categoryName+"&comment="+item.comment+'&parentCode='+item.code
  322. }) */
  323. },
  324. goDetail2(wz,item){
  325. console.log(item)
  326. console.log(wz)
  327. if (wz.type == 1) {
  328. this.newgroupingcode=wz.code;
  329. var newgroupingdata={
  330. parentCode:item.code,
  331. name:wz.name,
  332. title:wz.title,
  333. topName:item.name,
  334. comment:item.comment,
  335. code:item.code
  336. }
  337. console.log(newgroupingdata)
  338. this.indexShow=false;
  339. this.listShow=false;
  340. this.newDetailShow=false;
  341. this.newgroupingListShow=true;
  342. this.newsearchShow=false;
  343. this.newgroupingdata=newgroupingdata
  344. }else{
  345. this.indexShow=false;
  346. this.listShow=false;
  347. this.newDetailShow=true;
  348. this.newgroupingListShow=false;
  349. this.newsearchShow=false;
  350. this.newDetailID=wz.id;
  351. var item={
  352. categoryName:item.name,
  353. twoName:'',
  354. comment:item.comment,
  355. code:item.code
  356. }
  357. this.newDetailItem=item;
  358. }
  359. /* uni.navigateTo({
  360. url:'detail?id='+wz.id+'&topName='+item.name+"&comment="+item.comment+'&parentCode='+item.code
  361. }) */
  362. },
  363. goDetail3(wz){
  364. // 1分类2文章
  365. if (wz.Type == 1) {
  366. /* uni.navigateTo({
  367. url:'groupingList?parentCode='+this.topCode+'&code='+wz.Code+'&name='+wz.Name+'&title='+wz.Title+'&topName='+this.topName+"&comment="+this.comment
  368. }) */
  369. this.newgroupingcode=wz.Code;
  370. var newgroupingdata={
  371. parentCode:this.topCode,
  372. name:wz.Name,
  373. title:wz.Title,
  374. topName:this.topName,
  375. comment:this.comment
  376. }
  377. console.log(newgroupingdata)
  378. this.indexShow=false;
  379. this.listShow=false;
  380. this.newDetailShow=false;
  381. this.newgroupingListShow=true;
  382. this.newsearchShow=false;
  383. this.newgroupingdata=newgroupingdata
  384. }else{
  385. //console.log(wz)
  386. this.indexShow=false;
  387. this.listShow=false;
  388. this.newDetailShow=true;
  389. this.newgroupingListShow=false;
  390. this.newsearchShow=false;
  391. this.newDetailID=wz.ID;
  392. var item={
  393. categoryName:this.topName,
  394. twoName:this.dynamicCol[this.tabIndex].name,
  395. comment:this.comment,
  396. code:wz.Code
  397. }
  398. this.newDetailItem=item;
  399. /* uni.navigateTo({
  400. url:'detail?id='+wz.ID+'&topName='+this.topName+'&twoName='+this.dynamicCol[this.tabIndex].name+"&comment="+this.comment+'&parentCode='+wz.Code
  401. }) */
  402. }
  403. //console.log(wz)
  404. },
  405. goDetail4(item){
  406. this.newgroupingcode=item.Code;
  407. var newgroupingdata={
  408. parentCode:item.parentCode,
  409. name:item.Name,
  410. title:item.Title,
  411. topName:item.topName,
  412. comment:''
  413. }
  414. console.log(newgroupingdata)
  415. this.indexShow=false;
  416. this.listShow=false;
  417. this.newDetailShow=false;
  418. this.newgroupingListShow=true;
  419. this.newsearchShow=false;
  420. this.newgroupingdata=newgroupingdata
  421. },
  422. goDetailswp(item){
  423. //console.log(itme)
  424. this.indexShow=false;
  425. this.listShow=false;
  426. this.newDetailShow=true;
  427. this.newgroupingListShow=false;
  428. this.newsearchShow=false;
  429. this.newDetailID=item.id;
  430. var item={
  431. categoryName:item.categoryName,
  432. twoName:'',
  433. comment:item.comment,
  434. code:item.code
  435. }
  436. this.newDetailItem=item;
  437. },
  438. gotoTop(){
  439. uni.pageScrollTo({
  440.    scrollTop: 0, duration: 300
  441. });
  442. },
  443. swpBtnRight(){
  444. var length=this.recommendList.length;
  445. var num=Math.ceil(length/4)-1
  446. console.log(num+'---'+this.swpIndex)
  447. if(this.swpIndex<num){
  448. this.swpIndex++
  449. }
  450. },
  451. swpBtnLeft(){
  452. if(this.swpIndex==0){
  453. }else{
  454. this.swpIndex--
  455. }
  456. },
  457. getindexData(){
  458. uni.showLoading({
  459. title: '加载中'
  460. })
  461. this.$http('/trainingOpenApiV2/indexData', {}, 'GET').then(res => {
  462. uni.hideLoading();
  463. this.indexData = res.data;
  464. this.recommendList=this.indexData.recommendList
  465. })
  466. },
  467. mainMore(item){
  468. console.log(item)
  469. this.getChildList(item)
  470. /* uni.navigateTo({
  471. url:'list?code='+item.code+'&topName='+item.name+'&comment='+item.comment
  472. }) */
  473. },
  474. gotoTop(){
  475. uni.pageScrollTo({
  476.    scrollTop: 0, duration: 300
  477. });
  478. },
  479. tabBtn(index,item){
  480. this.tabIndex=index;
  481. console.log(item)
  482. this.page=1;
  483. this.parentCode=item.code;
  484. this.getcategoryPageData()
  485. },
  486. pageChange(e){
  487. console.log(e)
  488. this.page=e;
  489. this.getcategoryPageData()
  490. },
  491. getcategoryPageData(){
  492. console.log(this.parentCode)
  493. if(this.parentCode){
  494. var params={
  495. parentCode:this.parentCode,
  496. topCode:this.topCode,
  497. limit:this.pageSize,
  498. page:this.page,
  499. }
  500. var url='trainingOpenApiV2/categoryPageDataNew'
  501. this.$http(url, params, 'GET').then(res => {
  502. uni.hideLoading();
  503. this.list=res.data.Items;
  504. this.TotalSize=res.data.TotalSize;
  505. var arr=[
  506. {
  507. 'name':'全部','code':'',
  508. }
  509. ]
  510. this.dynamicCol=arr.concat(res.data.dynamicCol);
  511. })
  512. }else{
  513. var params = {
  514. page: this.page,
  515. limit: 10,
  516. parentCode: this.topCode,
  517. }
  518. var url='trainingOpenApiV2/groupPageData'
  519. this.$http(url, params, 'GET').then(res => {
  520. uni.hideLoading();
  521. this.list=res.data.Items;
  522. this.TotalSize=res.data.TotalSize;
  523. })
  524. }
  525. uni.showLoading({
  526. title: '加载中'
  527. })
  528. //trainingOpenApiV2/categoryPageData
  529. }
  530. }
  531. }
  532. </script>
  533. <style scoped>
  534. .content{
  535. background: #F4F5F7;
  536. min-height: 100vh;
  537. font-family: PingFangSC-Regular, PingFang SC;
  538. min-width: 1200px;
  539. }
  540. .swiperBox{
  541. /* height: 280px; */
  542. /* background: #F3F8FF; */
  543. width: 100%;
  544. }
  545. .swiperCont{
  546. width: 1230px;
  547. margin: 0 auto;
  548. position: relative;
  549. }
  550. .tuijImg{
  551. width: 24px;height: 24px;
  552. }
  553. .tuijbox{
  554. display: flex;padding-top: 32px;/* padding-bottom: 20px; */
  555. padding-left: 15px;
  556. }
  557. .tuijTitle{
  558. font-size: 22px;
  559. font-family: PingFangSC-Medium, PingFang SC;
  560. font-weight: 500;
  561. color: #3C3C3C;
  562. padding-left: 7px;
  563. line-height: 24px;
  564. }
  565. .swpImgleft{
  566. width: 44px;
  567. height: 44px;
  568. position: absolute;
  569. top: 170px;
  570. left: -60px;
  571. cursor: pointer;
  572. }
  573. .swpImgright{
  574. width: 44px;
  575. height: 44px;
  576. position: absolute;
  577. top: 170px;
  578. right: -60px;
  579. cursor: pointer;
  580. }
  581. .swiper-item{
  582. width: 590px;
  583. height: 163px;
  584. background: #FFFFFF;
  585. margin-left: 16px;
  586. margin-right: 12px;
  587. border-radius: 6px;
  588. margin-top: 14px;
  589. position: relative;
  590. cursor: pointer;
  591. }
  592. .swiper-item:hover{
  593. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.25);
  594. }
  595. .swpCont{
  596. display: flex;
  597. height: 210px;
  598. justify-content: space-between;
  599. }
  600. .swpimg{
  601. width: 284px;
  602. height: 160px;
  603. }
  604. .swpimgBox{
  605. width: 284px;
  606. height: 160px;
  607. position: absolute;
  608. left: 0;
  609. top: -14px;
  610. }
  611. .swpBr{
  612. width: 284px;
  613. height: 160px;
  614. border-radius: 7px;
  615. overflow: hidden;
  616. }
  617. .swiper{
  618. height: 280px;
  619. }
  620. .swpTitleBox{
  621. padding-left: 304px;
  622. display: flex;
  623. flex-direction: column;
  624. justify-content: space-between;
  625. height: 140px;
  626. padding-top: 10px;
  627. }
  628. .swpTitle{
  629. width: 240px;
  630. height: 44px;
  631. font-size: 16px;
  632. color: #3C3C3C;
  633. line-height: 22px;
  634. text-overflow: -o-ellipsis-lastline;
  635. overflow: hidden;
  636. text-overflow: ellipsis;
  637. display: -webkit-box;
  638. -webkit-line-clamp: 2;
  639. line-clamp: 2;
  640. -webkit-box-orient: vertical;
  641. }
  642. .swpTitleBox:hover .swpTitle{
  643. color: #FF4F00;
  644. }
  645. .categoryName{
  646. line-height: 24px;
  647. width: 84px;
  648. height: 24px;
  649. background: rgba(63, 144, 247, 0.1);
  650. border-radius: 14px;
  651. font-size: 14px;
  652. color: #3F90F7;
  653. text-align: center;
  654. white-space: nowrap;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. }
  658. .mainCont{
  659. width: 1200px;
  660. margin: 0 auto;
  661. padding-bottom: 20px;
  662. }
  663. .mainline{
  664. padding-top: 34px;
  665. }
  666. .mainlineTop{
  667. display: flex;
  668. justify-content: space-between;
  669. }
  670. .mainlineTopleft{
  671. display: flex;
  672. }
  673. .mainlineTitle{
  674. font-size: 22px;
  675. font-weight: 500;
  676. color: #3C3C3C;
  677. line-height: 33px;
  678. font-family: PingFangSC-Medium, PingFang SC;
  679. }
  680. .mainlinecount{
  681. font-size: 14px;
  682. font-weight: 400;
  683. color: #999999;
  684. line-height: 33px;
  685. padding-left: 16px;
  686. }
  687. .mainlineMore{
  688. font-size: 14px;
  689. color: #999999;
  690. }
  691. .mainwzbox{
  692. display: flex;
  693. /* padding-top: 20px; */
  694. }
  695. .mainwzbox2{
  696. display: flex;
  697. padding: 0 15px;
  698. }
  699. .mainwzImg{
  700. width: 284px;
  701. height: 160px;
  702. }
  703. .mainwzImgBox{
  704. border-top-left-radius: 6px;
  705. border-top-right-radius: 6px;
  706. overflow: hidden;
  707. height: 160px;
  708. border: 1px solid #eeeeee;
  709. }
  710. .mainwzline{
  711. width: 284px;
  712. height: 244px;
  713. background: #FFFFFF;
  714. border-radius: 6px;
  715. }
  716. .mainwzlineR{
  717. margin-right: 22px;
  718. }
  719. .wztitle{
  720. width: 256px;
  721. font-size: 16px;
  722. color: #333333;
  723. line-height: 22px;
  724. height: 22px;
  725. text-overflow: -o-ellipsis-lastline;
  726. overflow: hidden;
  727. text-overflow: ellipsis;
  728. display: -webkit-box;
  729. -webkit-line-clamp: 1;
  730. line-clamp: 1;
  731. -webkit-box-orient: vertical;
  732. padding:0 13px ;
  733. padding-top: 16px;
  734. }
  735. .wztime{
  736. font-size: 14px;
  737. color: #999999;
  738. padding-left: 14px;
  739. padding-top: 10px;
  740. }
  741. .mainwzline:hover{
  742. background: #FFFFFF;
  743. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.2);
  744. border-radius: 6px;
  745. cursor: pointer;
  746. }
  747. .mainwzline:hover .wztitle{
  748. color: #FF4F00;
  749. }
  750. .mainlineMore:hover{
  751. color: #FF4F00;
  752. cursor: pointer;
  753. }
  754. .gotopImg{
  755. width: 60px;
  756. height: 60px;
  757. }
  758. .gotop{
  759. position: fixed;
  760. right:5vh ;
  761. bottom: 60px;
  762. cursor: pointer;
  763. }
  764. .linegdImg1{
  765. width: 6px;
  766. height: 10px;
  767. margin-top: 5px;
  768. margin-left: 4px;
  769. }
  770. .linegdImg2{
  771. width: 6px;
  772. height: 10px;
  773. display: none;
  774. margin-top: 5px;
  775. margin-left: 4px;
  776. }
  777. .mainlineMore{
  778. display: flex;
  779. }
  780. .mainlineMore:hover .linegdImg1{
  781. display: none;
  782. }
  783. .mainlineMore:hover .linegdImg2{
  784. display: block;
  785. }
  786. .mainline1{
  787. padding-top: 20px;
  788. }
  789. .content{
  790. background: #F4F5F7;
  791. min-height: 100vh;
  792. font-family: PingFangSC-Regular, PingFang SC;
  793. }
  794. .contBox{
  795. min-height: 58vh;
  796. }
  797. .gotopImg{
  798. width: 60px;
  799. height: 60px;
  800. }
  801. .gotop{
  802. position: fixed;
  803. right:5vh ;
  804. bottom: 60px;
  805. cursor: pointer;
  806. }
  807. .topName{
  808. text-align: center;
  809. font-size: 22px;
  810. font-weight: 500;
  811. color: #3C3C3C;
  812. line-height: 33px;
  813. padding-top: 20px;
  814. font-family: PingFangSC-Medium, PingFang SC;
  815. padding-bottom: 10px;
  816. }
  817. .comment{
  818. text-align: center;
  819. font-size: 14px;
  820. font-weight: 400;
  821. color: #999999;
  822. line-height: 20px;
  823. width: 500px;
  824. margin: 0 auto;
  825. }
  826. .main{
  827. width: 1200px;
  828. margin: 0 auto;
  829. /* padding-top: 30px; */
  830. }
  831. .dynamicColLeft{
  832. display: flex;
  833. }
  834. .dynamicColLIne{
  835. padding-right: 44px;
  836. font-size: 16px;
  837. color: #3C3C3C;
  838. cursor: pointer;
  839. line-height: 32px;
  840. }
  841. .qhImg{
  842. width: 28px;
  843. height: 28px;
  844. margin-left: 8px;
  845. cursor: pointer;
  846. }
  847. .dynamicCol{
  848. display: flex;
  849. justify-content: space-between;
  850. background: #FFFFFF;
  851. padding:15px 20px;
  852. border-radius: 8px;
  853. }
  854. .activeTab{
  855. color: #FF4F00;
  856. }
  857. .mainwzImg{
  858. width: 284px;
  859. height: 160px;
  860. }
  861. .mainwzImgBox{
  862. border-top-left-radius: 6px;
  863. border-top-right-radius: 6px;
  864. overflow: hidden;
  865. height: 160px;
  866. border: 1px solid #eeeeee;
  867. }
  868. .contf{
  869. display: flex;
  870. flex-wrap: wrap;
  871. }
  872. .mainwzline{
  873. width: 284px;
  874. height: 244px;
  875. background: #FFFFFF;
  876. margin-right: 21px;
  877. margin-top: 20px;
  878. cursor: pointer;
  879. border-radius: 6px;
  880. }
  881. .wztime{
  882. font-size: 14px;
  883. color: #999999;
  884. padding-left: 14px;
  885. padding-top: 10px;
  886. }
  887. .mainwzline:hover{
  888. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.2);
  889. }
  890. .mainwzlineR2{
  891. margin-right: 0px;
  892. }
  893. .wztitle{
  894. width: 256px;
  895. font-size: 16px;
  896. color: #333333;
  897. line-height: 22px;
  898. height: 22px;
  899. text-overflow: -o-ellipsis-lastline;
  900. overflow: hidden;
  901. text-overflow: ellipsis;
  902. display: -webkit-box;
  903. -webkit-line-clamp: 1;
  904. line-clamp: 1;
  905. -webkit-box-orient: vertical;
  906. padding:0 13px ;
  907. padding-top: 16px;
  908. }
  909. .wzLeftIMg{
  910. width: 200px;
  911. height: 112px;
  912. }
  913. .contL{
  914. background: #FFFFFF;
  915. margin-top: 20px;
  916. border-radius: 8px;
  917. padding: 0 20px;
  918. }
  919. .wxLine{
  920. display: flex;
  921. padding: 20px 0px;
  922. cursor: pointer;
  923. border-bottom: 1px solid #EEEEEE;
  924. }
  925. .wzLineLeft{
  926. border-radius: 6px;
  927. overflow: hidden;
  928. width: 200px;
  929. height: 112px;
  930. }
  931. .wzLineRight{
  932. padding-left: 16px;
  933. width: 788px;
  934. }
  935. .wzTitle2{
  936. font-size: 16px;
  937. color: #3C3C3C;
  938. width: 948px;
  939. height: 20px;
  940. line-height: 20px;
  941. text-overflow: -o-ellipsis-lastline;
  942. overflow: hidden;
  943. text-overflow: ellipsis;
  944. display: -webkit-box;
  945. -webkit-line-clamp: 1;
  946. line-clamp: 1;
  947. -webkit-box-orient: vertical;
  948. }
  949. .wzComment{
  950. font-size: 14px;
  951. font-family: PingFangSC-Regular, PingFang SC;
  952. font-weight: 400;
  953. color: #999999;
  954. line-height: 20px;
  955. padding-top: 10px;
  956. width: 948px;
  957. height: 80px;
  958. text-overflow: -o-ellipsis-lastline;
  959. overflow: hidden;
  960. text-overflow: ellipsis;
  961. display: -webkit-box;
  962. -webkit-line-clamp: 4;
  963. line-clamp: 4;
  964. -webkit-box-orient: vertical;
  965. }
  966. .pageView{
  967. margin-top: 20px;
  968. cursor: pointer;
  969. padding-bottom: 20px;
  970. }
  971. .nodataImg{
  972. width: 300px;
  973. height: 203px;
  974. }
  975. .nodata{
  976. text-align: center;
  977. padding-top: 100px;
  978. }
  979. .nodataTitle{
  980. font-size: 16px;
  981. padding-top: 16px;
  982. font-weight: 400;
  983. color: #999999;
  984. }
  985. .listtopC{
  986. padding-bottom: 10px;
  987. }
  988. </style>