indexNew.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  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" :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/pcNav/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. if(opt.id){
  205. this.newDetailID=opt.id;
  206. var item={
  207. categoryName:opt.topName,
  208. comment:opt.comment,
  209. parentCode:'',
  210. twoName:'',
  211. id:opt.id
  212. }
  213. console.log(item)
  214. this.goDetail(item)
  215. }
  216. this.getindexData()
  217. },
  218. created(){
  219. //this.getindexData()
  220. },
  221. methods: {
  222. getIndexList(){
  223. this.indexShow=true;
  224. this.listShow=false;
  225. this.newDetailShow=false;
  226. this.newgroupingListShow=false;
  227. this.newsearchShow=false;
  228. this.indexName='index';
  229. this.topName=''
  230. },
  231. gosearchlist(){
  232. this.indexShow=false;
  233. this.listShow=false;
  234. this.newDetailShow=false;
  235. this.newgroupingListShow=false;
  236. this.newsearchShow=true;
  237. this.indexName='';
  238. this.topName=''
  239. },
  240. getChildList(item){
  241. console.log(item);
  242. this.indexName=''
  243. this.topName=item.name;
  244. this.comment=item.comment;
  245. this.topCode=item.code;
  246. this.parentCode=item.code;
  247. //this.parentCode='';
  248. this.getcategoryPageData();
  249. uni.setNavigationBarTitle({
  250. title: this.topName
  251. });
  252. this.indexShow=false;
  253. this.listShow=true;
  254. this.newDetailShow=false;
  255. this.newgroupingListShow=false;
  256. this.newsearchShow=false;
  257. this.tabIndex=0;
  258. },
  259. goList(item){
  260. console.log(item)
  261. this.getChildList(item)
  262. uni.pageScrollTo({
  263.    scrollTop: 0, duration: 100
  264. });
  265. /* uni.navigateTo({
  266. url:'list?code='+item.code+'&topName='+item.categoryName//+'&comment='+item.comment
  267. }) */
  268. },
  269. goDetail(item){
  270. console.log(item)
  271. this.indexShow=false;
  272. this.listShow=false;
  273. this.newDetailShow=true;
  274. this.newgroupingListShow=false;
  275. this.newsearchShow=false;
  276. this.newDetailID=item.id;
  277. item.categoryName=item.topName;
  278. //item.code=
  279. this.newDetailItem=item;
  280. console.log(this.newDetailItem)
  281. //this.$refs.newDetailV.test()
  282. //this.$refs.newDetailV.newidfn()
  283. /* uni.navigateTo({
  284. url:'detail?id='+item.id+'&topName='+item.categoryName+"&comment="+item.comment+'&parentCode='+item.code
  285. }) */
  286. },
  287. goDetail2(wz,item){
  288. console.log(item)
  289. console.log(wz)
  290. if (wz.type == 1) {
  291. this.newgroupingcode=wz.code;
  292. var newgroupingdata={
  293. parentCode:item.code,
  294. name:wz.name,
  295. title:wz.title,
  296. topName:item.name,
  297. comment:item.comment,
  298. code:item.code
  299. }
  300. console.log(newgroupingdata)
  301. this.indexShow=false;
  302. this.listShow=false;
  303. this.newDetailShow=false;
  304. this.newgroupingListShow=true;
  305. this.newsearchShow=false;
  306. this.newgroupingdata=newgroupingdata
  307. }else{
  308. this.indexShow=false;
  309. this.listShow=false;
  310. this.newDetailShow=true;
  311. this.newgroupingListShow=false;
  312. this.newsearchShow=false;
  313. this.newDetailID=wz.id;
  314. var item={
  315. categoryName:item.name,
  316. twoName:'',
  317. comment:item.comment,
  318. code:item.code
  319. }
  320. this.newDetailItem=item;
  321. }
  322. /* uni.navigateTo({
  323. url:'detail?id='+wz.id+'&topName='+item.name+"&comment="+item.comment+'&parentCode='+item.code
  324. }) */
  325. },
  326. goDetail3(wz){
  327. // 1分类2文章
  328. if (wz.Type == 1) {
  329. /* uni.navigateTo({
  330. url:'groupingList?parentCode='+this.topCode+'&code='+wz.Code+'&name='+wz.Name+'&title='+wz.Title+'&topName='+this.topName+"&comment="+this.comment
  331. }) */
  332. this.newgroupingcode=wz.Code;
  333. var newgroupingdata={
  334. parentCode:this.topCode,
  335. name:wz.Name,
  336. title:wz.Title,
  337. topName:this.topName,
  338. comment:this.comment
  339. }
  340. console.log(newgroupingdata)
  341. this.indexShow=false;
  342. this.listShow=false;
  343. this.newDetailShow=false;
  344. this.newgroupingListShow=true;
  345. this.newsearchShow=false;
  346. this.newgroupingdata=newgroupingdata
  347. }else{
  348. //console.log(wz)
  349. this.indexShow=false;
  350. this.listShow=false;
  351. this.newDetailShow=true;
  352. this.newgroupingListShow=false;
  353. this.newsearchShow=false;
  354. this.newDetailID=wz.ID;
  355. var item={
  356. categoryName:this.topName,
  357. twoName:this.dynamicCol[this.tabIndex].name,
  358. comment:this.comment,
  359. code:wz.Code
  360. }
  361. this.newDetailItem=item;
  362. /* uni.navigateTo({
  363. url:'detail?id='+wz.ID+'&topName='+this.topName+'&twoName='+this.dynamicCol[this.tabIndex].name+"&comment="+this.comment+'&parentCode='+wz.Code
  364. }) */
  365. }
  366. //console.log(wz)
  367. },
  368. goDetail4(item){
  369. this.newgroupingcode=item.Code;
  370. var newgroupingdata={
  371. parentCode:item.parentCode,
  372. name:item.Name,
  373. title:item.Title,
  374. topName:item.topName,
  375. 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. },
  385. goDetailswp(item){
  386. //console.log(itme)
  387. this.indexShow=false;
  388. this.listShow=false;
  389. this.newDetailShow=true;
  390. this.newgroupingListShow=false;
  391. this.newsearchShow=false;
  392. this.newDetailID=item.id;
  393. var item={
  394. categoryName:item.categoryName,
  395. twoName:'',
  396. comment:item.comment,
  397. code:item.code
  398. }
  399. this.newDetailItem=item;
  400. },
  401. gotoTop(){
  402. uni.pageScrollTo({
  403.    scrollTop: 0, duration: 300
  404. });
  405. },
  406. swpBtnRight(){
  407. var length=this.recommendList.length;
  408. var num=Math.ceil(length/4)-1
  409. console.log(num+'---'+this.swpIndex)
  410. if(this.swpIndex<num){
  411. this.swpIndex++
  412. }
  413. },
  414. swpBtnLeft(){
  415. if(this.swpIndex==0){
  416. }else{
  417. this.swpIndex--
  418. }
  419. },
  420. getindexData(){
  421. uni.showLoading({
  422. title: '加载中'
  423. })
  424. this.$http('/trainingOpenApi/indexData', {}, 'GET').then(res => {
  425. uni.hideLoading();
  426. this.indexData = res.data;
  427. this.recommendList=this.indexData.recommendList
  428. })
  429. },
  430. mainMore(item){
  431. console.log(item)
  432. this.getChildList(item)
  433. /* uni.navigateTo({
  434. url:'list?code='+item.code+'&topName='+item.name+'&comment='+item.comment
  435. }) */
  436. },
  437. gotoTop(){
  438. uni.pageScrollTo({
  439.    scrollTop: 0, duration: 300
  440. });
  441. },
  442. tabBtn(index,item){
  443. this.tabIndex=index;
  444. console.log(item)
  445. this.parentCode=item.code;
  446. this.getcategoryPageData()
  447. },
  448. pageChange(e){
  449. console.log(e)
  450. this.page=e;
  451. this.getcategoryPageData()
  452. },
  453. getcategoryPageData(){
  454. console.log(this.parentCode)
  455. if(this.parentCode){
  456. var params={
  457. parentCode:this.parentCode,
  458. topCode:this.topCode,
  459. limit:this.pageSize,
  460. page:this.page,
  461. }
  462. var url='trainingOpenApi/categoryPageDataNew'
  463. this.$http(url, params, 'GET').then(res => {
  464. uni.hideLoading();
  465. this.list=res.data.Items;
  466. this.TotalSize=res.data.TotalSize;
  467. var arr=[
  468. {
  469. 'name':'全部','code':'',
  470. }
  471. ]
  472. this.dynamicCol=arr.concat(res.data.dynamicCol);
  473. })
  474. }else{
  475. var params = {
  476. page: this.page,
  477. limit: 10,
  478. parentCode: this.topCode,
  479. }
  480. var url='trainingOpenApi/groupPageData'
  481. this.$http(url, params, 'GET').then(res => {
  482. uni.hideLoading();
  483. this.list=res.data.Items;
  484. this.TotalSize=res.data.TotalSize;
  485. })
  486. }
  487. uni.showLoading({
  488. title: '加载中'
  489. })
  490. //trainingOpenApi/categoryPageData
  491. }
  492. }
  493. }
  494. </script>
  495. <style scoped>
  496. .content{
  497. background: #F4F5F7;
  498. min-height: 100vh;
  499. font-family: PingFangSC-Regular, PingFang SC;
  500. min-width: 1200px;
  501. }
  502. .swiperBox{
  503. /* height: 280px; */
  504. /* background: #F3F8FF; */
  505. width: 100%;
  506. }
  507. .swiperCont{
  508. width: 1230px;
  509. margin: 0 auto;
  510. position: relative;
  511. }
  512. .tuijImg{
  513. width: 24px;height: 24px;
  514. }
  515. .tuijbox{
  516. display: flex;padding-top: 32px;/* padding-bottom: 20px; */
  517. padding-left: 15px;
  518. }
  519. .tuijTitle{
  520. font-size: 22px;
  521. font-family: PingFangSC-Medium, PingFang SC;
  522. font-weight: 500;
  523. color: #3C3C3C;
  524. padding-left: 7px;
  525. line-height: 24px;
  526. }
  527. .swpImgleft{
  528. width: 44px;
  529. height: 44px;
  530. position: absolute;
  531. top: 170px;
  532. left: -60px;
  533. cursor: pointer;
  534. }
  535. .swpImgright{
  536. width: 44px;
  537. height: 44px;
  538. position: absolute;
  539. top: 170px;
  540. right: -60px;
  541. cursor: pointer;
  542. }
  543. .swiper-item{
  544. width: 590px;
  545. height: 163px;
  546. background: #FFFFFF;
  547. margin-left: 16px;
  548. margin-right: 12px;
  549. border-radius: 6px;
  550. margin-top: 14px;
  551. position: relative;
  552. cursor: pointer;
  553. }
  554. .swiper-item:hover{
  555. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.25);
  556. }
  557. .swpCont{
  558. display: flex;
  559. height: 210px;
  560. justify-content: space-between;
  561. }
  562. .swpimg{
  563. width: 284px;
  564. height: 160px;
  565. }
  566. .swpimgBox{
  567. width: 284px;
  568. height: 160px;
  569. position: absolute;
  570. left: 0;
  571. top: -14px;
  572. }
  573. .swpBr{
  574. width: 284px;
  575. height: 160px;
  576. border-radius: 7px;
  577. overflow: hidden;
  578. }
  579. .swiper{
  580. height: 280px;
  581. }
  582. .swpTitleBox{
  583. padding-left: 304px;
  584. display: flex;
  585. flex-direction: column;
  586. justify-content: space-between;
  587. height: 140px;
  588. padding-top: 10px;
  589. }
  590. .swpTitle{
  591. width: 240px;
  592. height: 44px;
  593. font-size: 16px;
  594. color: #3C3C3C;
  595. line-height: 22px;
  596. text-overflow: -o-ellipsis-lastline;
  597. overflow: hidden;
  598. text-overflow: ellipsis;
  599. display: -webkit-box;
  600. -webkit-line-clamp: 2;
  601. line-clamp: 2;
  602. -webkit-box-orient: vertical;
  603. }
  604. .swpTitleBox:hover .swpTitle{
  605. color: #FF4F00;
  606. }
  607. .categoryName{
  608. line-height: 24px;
  609. width: 84px;
  610. height: 24px;
  611. background: rgba(63, 144, 247, 0.1);
  612. border-radius: 14px;
  613. font-size: 14px;
  614. color: #3F90F7;
  615. text-align: center;
  616. white-space: nowrap;
  617. overflow: hidden;
  618. text-overflow: ellipsis;
  619. }
  620. .mainCont{
  621. width: 1200px;
  622. margin: 0 auto;
  623. padding-bottom: 20px;
  624. }
  625. .mainline{
  626. padding-top: 34px;
  627. }
  628. .mainlineTop{
  629. display: flex;
  630. justify-content: space-between;
  631. }
  632. .mainlineTopleft{
  633. display: flex;
  634. }
  635. .mainlineTitle{
  636. font-size: 22px;
  637. font-weight: 500;
  638. color: #3C3C3C;
  639. line-height: 33px;
  640. font-family: PingFangSC-Medium, PingFang SC;
  641. }
  642. .mainlinecount{
  643. font-size: 14px;
  644. font-weight: 400;
  645. color: #999999;
  646. line-height: 33px;
  647. padding-left: 16px;
  648. }
  649. .mainlineMore{
  650. font-size: 14px;
  651. color: #999999;
  652. }
  653. .mainwzbox{
  654. display: flex;
  655. /* padding-top: 20px; */
  656. }
  657. .mainwzbox2{
  658. display: flex;
  659. padding: 0 15px;
  660. }
  661. .mainwzImg{
  662. width: 284px;
  663. height: 160px;
  664. }
  665. .mainwzImgBox{
  666. border-top-left-radius: 6px;
  667. border-top-right-radius: 6px;
  668. overflow: hidden;
  669. height: 160px;
  670. border: 1px solid #eeeeee;
  671. }
  672. .mainwzline{
  673. width: 284px;
  674. height: 244px;
  675. background: #FFFFFF;
  676. border-radius: 6px;
  677. }
  678. .mainwzlineR{
  679. margin-right: 22px;
  680. }
  681. .wztitle{
  682. width: 256px;
  683. font-size: 16px;
  684. color: #333333;
  685. line-height: 22px;
  686. height: 22px;
  687. text-overflow: -o-ellipsis-lastline;
  688. overflow: hidden;
  689. text-overflow: ellipsis;
  690. display: -webkit-box;
  691. -webkit-line-clamp: 1;
  692. line-clamp: 1;
  693. -webkit-box-orient: vertical;
  694. padding:0 13px ;
  695. padding-top: 16px;
  696. }
  697. .wztime{
  698. font-size: 14px;
  699. color: #999999;
  700. padding-left: 14px;
  701. padding-top: 10px;
  702. }
  703. .mainwzline:hover{
  704. background: #FFFFFF;
  705. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.2);
  706. border-radius: 6px;
  707. cursor: pointer;
  708. }
  709. .mainwzline:hover .wztitle{
  710. color: #FF4F00;
  711. }
  712. .mainlineMore:hover{
  713. color: #FF4F00;
  714. cursor: pointer;
  715. }
  716. .gotopImg{
  717. width: 60px;
  718. height: 60px;
  719. }
  720. .gotop{
  721. position: fixed;
  722. right:5vh ;
  723. bottom: 60px;
  724. cursor: pointer;
  725. }
  726. .linegdImg1{
  727. width: 6px;
  728. height: 10px;
  729. margin-top: 5px;
  730. margin-left: 4px;
  731. }
  732. .linegdImg2{
  733. width: 6px;
  734. height: 10px;
  735. display: none;
  736. margin-top: 5px;
  737. margin-left: 4px;
  738. }
  739. .mainlineMore{
  740. display: flex;
  741. }
  742. .mainlineMore:hover .linegdImg1{
  743. display: none;
  744. }
  745. .mainlineMore:hover .linegdImg2{
  746. display: block;
  747. }
  748. .mainline1{
  749. padding-top: 20px;
  750. }
  751. .content{
  752. background: #F4F5F7;
  753. min-height: 100vh;
  754. font-family: PingFangSC-Regular, PingFang SC;
  755. }
  756. .contBox{
  757. min-height: 58vh;
  758. }
  759. .gotopImg{
  760. width: 60px;
  761. height: 60px;
  762. }
  763. .gotop{
  764. position: fixed;
  765. right:5vh ;
  766. bottom: 60px;
  767. cursor: pointer;
  768. }
  769. .topName{
  770. text-align: center;
  771. font-size: 22px;
  772. font-weight: 500;
  773. color: #3C3C3C;
  774. line-height: 33px;
  775. padding-top: 20px;
  776. font-family: PingFangSC-Medium, PingFang SC;
  777. padding-bottom: 10px;
  778. }
  779. .comment{
  780. text-align: center;
  781. font-size: 14px;
  782. font-weight: 400;
  783. color: #999999;
  784. line-height: 20px;
  785. width: 500px;
  786. margin: 0 auto;
  787. }
  788. .main{
  789. width: 1200px;
  790. margin: 0 auto;
  791. /* padding-top: 30px; */
  792. }
  793. .dynamicColLeft{
  794. display: flex;
  795. }
  796. .dynamicColLIne{
  797. padding-right: 44px;
  798. font-size: 16px;
  799. color: #3C3C3C;
  800. cursor: pointer;
  801. line-height: 32px;
  802. }
  803. .qhImg{
  804. width: 28px;
  805. height: 28px;
  806. margin-left: 8px;
  807. cursor: pointer;
  808. }
  809. .dynamicCol{
  810. display: flex;
  811. justify-content: space-between;
  812. background: #FFFFFF;
  813. padding:15px 20px;
  814. border-radius: 8px;
  815. }
  816. .activeTab{
  817. color: #FF4F00;
  818. }
  819. .mainwzImg{
  820. width: 284px;
  821. height: 160px;
  822. }
  823. .mainwzImgBox{
  824. border-top-left-radius: 6px;
  825. border-top-right-radius: 6px;
  826. overflow: hidden;
  827. height: 160px;
  828. border: 1px solid #eeeeee;
  829. }
  830. .contf{
  831. display: flex;
  832. flex-wrap: wrap;
  833. }
  834. .mainwzline{
  835. width: 284px;
  836. height: 244px;
  837. background: #FFFFFF;
  838. margin-right: 21px;
  839. margin-top: 20px;
  840. cursor: pointer;
  841. border-radius: 6px;
  842. }
  843. .wztime{
  844. font-size: 14px;
  845. color: #999999;
  846. padding-left: 14px;
  847. padding-top: 10px;
  848. }
  849. .mainwzline:hover{
  850. box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.2);
  851. }
  852. .mainwzlineR2{
  853. margin-right: 0px;
  854. }
  855. .wztitle{
  856. width: 256px;
  857. font-size: 16px;
  858. color: #333333;
  859. line-height: 22px;
  860. height: 22px;
  861. text-overflow: -o-ellipsis-lastline;
  862. overflow: hidden;
  863. text-overflow: ellipsis;
  864. display: -webkit-box;
  865. -webkit-line-clamp: 1;
  866. line-clamp: 1;
  867. -webkit-box-orient: vertical;
  868. padding:0 13px ;
  869. padding-top: 16px;
  870. }
  871. .wzLeftIMg{
  872. width: 200px;
  873. height: 112px;
  874. }
  875. .contL{
  876. background: #FFFFFF;
  877. margin-top: 20px;
  878. border-radius: 8px;
  879. padding: 0 20px;
  880. }
  881. .wxLine{
  882. display: flex;
  883. padding: 20px 0px;
  884. cursor: pointer;
  885. border-bottom: 1px solid #EEEEEE;
  886. }
  887. .wzLineLeft{
  888. border-radius: 6px;
  889. overflow: hidden;
  890. width: 200px;
  891. height: 112px;
  892. }
  893. .wzLineRight{
  894. padding-left: 16px;
  895. width: 788px;
  896. }
  897. .wzTitle2{
  898. font-size: 16px;
  899. color: #3C3C3C;
  900. width: 948px;
  901. height: 20px;
  902. line-height: 20px;
  903. text-overflow: -o-ellipsis-lastline;
  904. overflow: hidden;
  905. text-overflow: ellipsis;
  906. display: -webkit-box;
  907. -webkit-line-clamp: 1;
  908. line-clamp: 1;
  909. -webkit-box-orient: vertical;
  910. }
  911. .wzComment{
  912. font-size: 14px;
  913. font-family: PingFangSC-Regular, PingFang SC;
  914. font-weight: 400;
  915. color: #999999;
  916. line-height: 20px;
  917. padding-top: 10px;
  918. width: 948px;
  919. height: 80px;
  920. text-overflow: -o-ellipsis-lastline;
  921. overflow: hidden;
  922. text-overflow: ellipsis;
  923. display: -webkit-box;
  924. -webkit-line-clamp: 4;
  925. line-clamp: 4;
  926. -webkit-box-orient: vertical;
  927. }
  928. .pageView{
  929. margin-top: 20px;
  930. cursor: pointer;
  931. padding-bottom: 20px;
  932. }
  933. .nodataImg{
  934. width: 300px;
  935. height: 203px;
  936. }
  937. .nodata{
  938. text-align: center;
  939. padding-top: 100px;
  940. }
  941. .nodataTitle{
  942. font-size: 16px;
  943. padding-top: 16px;
  944. font-weight: 400;
  945. color: #999999;
  946. }
  947. .listtopC{
  948. padding-bottom: 10px;
  949. }
  950. </style>