school-circle.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. <template>
  2. <view class="school-circle iPhone-bottom flex-common-css box-border-box ">
  3. <image class="circle-add" src="@/static/img/school/add.png" mode="" @click="add()"></image>
  4. <view class="bg-box"></view>
  5. <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
  6. <template>
  7. <view slot="custom" class="align-items-center">
  8. <uni-icons type="left" size="20" @click="toBack()"></uni-icons>
  9. <view class="w-390 text-overflow-ellipsis-one fs-36 fw-400">{{schoolData.school_name}}</view>
  10. </view>
  11. </template>
  12. </Nav>
  13. <view class="ts-box mt-24 align-items-center box-border-box plr-12 mb-20">
  14. <image src="@/static/img/school/ts.png" mode=""></image>
  15. <view class="fs-26 fw-400 fc-FB3D03">警惕骗钱骗色,保护自身安全,不轻信陌生人</view>
  16. </view>
  17. <view class="nav-box display-flex box-border-box mb-20">
  18. <view class="nav-item view-nowrap" @click="selectTopicId(item.id)"
  19. :class="fromData.topic_id == item.id?'h130':''" v-for="(item,i) in classList" :key="i">
  20. <image v-if="item.id == 0" class="nav-icon" src="@/static/img/school/icon.png" mode=""></image>
  21. <image v-else class="nav-icon" :src="item.image" mode=""></image>
  22. <view class="fs-24 plr-24 " :class="fromData.topic_id==item.id?'fw-600 fc-41ABF5':''">{{item.name}}</view>
  23. <image v-if="fromData.topic_id == item.id" class="nav-bg" src="@/static/img/school/bg.png" mode=""></image>
  24. </view>
  25. </view>
  26. <view class="flex-justify-space type-box mb-24">
  27. <view class="display-flex">
  28. <view @click="selectOrderBuy(1)" class="box-1" :class="fromData.orderBy == 1?'box-s':''">最新</view>
  29. <view @click="selectOrderBuy(2)" class="box-1" :class="fromData.orderBy == 2?'box-s':''">最热</view>
  30. <view @click="selectOrderBuy(3)" class="box-1" :class="fromData.orderBy == 3?'box-s':''">评论最多</view>
  31. </view>
  32. <view class="box-2 fs-24 fc-41ABF5" @click="toSelectSchool()">逛其他学校</view>
  33. </view>
  34. <view class="">
  35. {{JSON.stringify(err)}}
  36. </view>
  37. <view v-if="list.length === 0" class="scroll-view-css">
  38. <EnBlank :customSrc='true'>
  39. <template v-slot:blankImg>
  40. <image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
  41. </template>
  42. </EnBlank>
  43. </view>
  44. <scroll-view v-else scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  45. <view class="card-box box-border-box p-24 bgc-f flex-justify-space" v-for="(item,i) in list" :key="i" @click.stop="toDet(item)">
  46. <image class="card-head" :src="item.head_img" mode="scaleToFill"></image>
  47. <view class="flex-1">
  48. <view class="card-1 flex-justify-space mb-16">
  49. <view class="">
  50. <view class="w-400 fs-28 fw-600 mb-8">{{item.nickname}}</view>
  51. <view class="fs-24 fc-9">{{item.created_date}}</view>
  52. </view>
  53. <view class="">
  54. <image @click.stop="openRepot(item)" class="dian-img" src="@/static/img/school/dian.png" mode=""></image>
  55. <view class="align-items-center">
  56. <image class="hot-img" src="@/static/img/school/hot.png" mode=""></image>
  57. <view class="fs-26 fw-400 fc-9">{{item.heat}}</view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="card-2 fs-30 fw-400 mb-16">
  62. {{item.content}}
  63. </view>
  64. <view class="card-3 flex-wrap-wrap mb-32">
  65. <image class="card-3-img" :src="item" v-for="(item,i) in item.image" mode="scaleToFill"></image>
  66. </view>
  67. <view class="card-4 flex-wrap-wrap mb-40">
  68. <view class="">{{item.school_name}}</view>
  69. <view class="">{{item.topic_name}}</view>
  70. </view>
  71. <view class="card-5 flex-justify-around">
  72. <view class="align-items-center" @click.stop="handUp(1,item)">
  73. <uni-icons type="hand-up" size="22" :color="item.is_like==1?'#FD5C02':'#999'"></uni-icons>
  74. <view class="fs-24 " :class="item.is_like==1?'fc-FD5C02':'fc-9'">{{item.like}}</view>
  75. </view>
  76. <view class="align-items-center" @click.stop="openMsg(item,0)">
  77. <image src="@/static/img/school/info.png" mode=""></image>
  78. <view class="fs-24 fc-9">{{item.remark}}</view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </scroll-view>
  84. <uni-popup ref="popshare" type="bottom">
  85. <view class="pop-box pop-h-20 box-border-box p-24">
  86. <view @click.stop="shareSelect(0)" class="b-bottom text-align-center fs-32 fw-600 fc-f mb-20">分享到群聊</view>
  87. <view @click.stop="shareSelect(1)" class="b-bottom text-align-center fs-32 fw-600 fc-f">分享到朋友圈</view>
  88. </view>
  89. </uni-popup>
  90. <uni-popup ref="popup" type="bottom">
  91. <view class="pop-box pop-h-30 box-border-box p-24">
  92. <view class="head-pop flex-justify-space align-items-center mb-24">
  93. <uni-icons @click.stop="closePop(1)" type="closeempty" size="24"></uni-icons>
  94. <view class="fs-36 fc-0 fw-600">请输入举报内容</view>
  95. <view class="fs-28 fw-600 fc-41ABF5">确定</view>
  96. </view>
  97. <view class="scroll-view-css">
  98. <textarea style="height: 100%;" v-model="reportData.content" class=" fs-24" :maxlength='50' placeholder='请输入举报内容'></textarea>
  99. </view>
  100. <view @click.stop="closePop(2)" class="b-bottom text-align-center fs-32 fw-600 fc-f">确认举报</view>
  101. </view>
  102. </uni-popup>
  103. <uni-popup ref="popmsg" type="bottom">
  104. <view class="pop-box pop-msg box-border-box p-24">
  105. <!-- 输入框 -->
  106. <view class="pop-input" v-if="isShowIpnut">
  107. <view class="head-pop flex-justify-space align-items-center mb-24 box-border-box p-24">
  108. <view class="fs-28 fw-600 fc-41ABF5" ></view>
  109. <view class="fs-36 fc-0 fw-600">评论</view>
  110. <uni-icons @click.stop="closeInput()" type="closeempty" size="24"></uni-icons>
  111. </view>
  112. <view class="scroll-view-css">
  113. <view class="bgc-f box-border-box p-32">
  114. <view class="fs-34 fw-600 mb-20">评论</view>
  115. <textarea v-model="msgData.content" maxlength="100" class=" fs-24" placeholder='友善评论,文明发言'></textarea>
  116. </view>
  117. </view>
  118. <view class="box-border-box p-24">
  119. <view class="save-box" @click.stop="save()">评论</view>
  120. </view>
  121. </view>
  122. <!-- ----- -->
  123. <view class="head-pop flex-justify-space align-items-center mb-24">
  124. <view class=""></view>
  125. <view class="fs-36 fc-0 fw-600">评论({{remarkData.total||'0'}})</view>
  126. <uni-icons @click.stop="closeMsg()" type="closeempty" size="24"></uni-icons>
  127. </view>
  128. <view v-if="remarkData.list.length === 0" class="scroll-view-css">
  129. <EnBlank :customSrc='true'>
  130. <template v-slot:blankImg>
  131. <image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
  132. </template>
  133. </EnBlank>
  134. </view>
  135. <view v-else class="scroll-view-css box-border-box plr-24">
  136. <view class="list-box flex-justify-space" v-for="(item,i) in remarkData.list" :key="i">
  137. <image class="list-box-img" :src="item.head_img" mode="scaleToFill"></image>
  138. <view class="flex-1 p-b-20">
  139. <view class=" flex-justify-space">
  140. <view class=" b-b-F9F9F9 mr-20">
  141. <view class="fs-28 fw-400 fc-9 mb-8">
  142. {{item.nickname}} <span v-if="item.is_author == 1" class='only-box text-align-center fs-24 fc-41ABF5 ml-10'>作者</span>
  143. </view>
  144. <view class="fs-30 fw-400 mb-8" @click.stop="openInput(1,item)">
  145. {{item.content}}
  146. </view>
  147. <view class="fs-24 fw-400 fc-9 mb-8">{{item.created_date}}</view>
  148. </view>
  149. <view class="display-flex" @click.stop="handUp(2,item)">
  150. <uni-icons type="hand-up" size="20" :color="item.is_like==1?'#FD5C02':'#999'"></uni-icons>
  151. <view class="fs-24 fw-400 mt-5" :class="item.is_like==1?'fc-FD5C02':'fc-9'">{{item.like}}</view>
  152. </view>
  153. </view>
  154. <view v-if="item.count>0" class="fs-24 fc-6 text-align-center mb-12">展开更多评论</view>
  155. <!-- 回复 -->
  156. <!-- <view class="list-box flex-justify-space" v-for="(info,index) in 1" :key="index">
  157. <image class="list-box-img" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  158. <view class="flex-1">
  159. <view class=" flex-justify-space">
  160. <view class="p-b-20 b-b-F9F9F9 mr-20">
  161. <view class="fs-28 fw-400 fc-9 mb-8">
  162. 最佳损友最佳损友 <span class='only-box text-align-center fs-24 fc-41ABF5 ml-10'>作者</span>
  163. </view>
  164. <view class="fs-30 fw-400 mb-8" @click.stop="openInput(1,info)">
  165. 回关一下啊,这么近这么近这么近这么近这么近这么近
  166. </view>
  167. <view class="fs-24 fw-400 fc-9 mb-8">2021-04-17 15:53</view>
  168. </view>
  169. <view class="display-flex">
  170. <uni-icons type="hand-up" size="20" color="#999"></uni-icons>
  171. <view class="fs-24 fw-400 fc-9 mt-5">11</view>
  172. </view>
  173. </view>
  174. </view>
  175. </view> -->
  176. </view>
  177. </view>
  178. <view v-if="remarkData.list.length < remarkData.total" class="text-align-center fs-26" @click="scrolltolowerList">加载更多评论</view>
  179. </view>
  180. <view class="input-box text-align-left fs-28 fc-9 box-border-box plr-24" @click.stop="openInput(0,'')">友善评论,文明发言</view>
  181. </view>
  182. </uni-popup>
  183. </view>
  184. </template>
  185. <script>
  186. import EnBlank from "@/components/en-utils/en-blank/en-blank";
  187. import {getAlumniList,setAlumniLike,getRemarkList,alumniReport,setCreateRemark,setRemarkLike} from '@/api/alumni.js';
  188. import {getTopic} from '@/api/category.js';
  189. import tools from '@/service/tools';
  190. export default {
  191. components:{EnBlank},
  192. data(){
  193. return{
  194. isShowIpnut:false,
  195. classList:[],
  196. total:0,
  197. list:[],
  198. fromData:{
  199. topic_id:0,
  200. orderBy:1,//1最新 2最热 3最多评论
  201. school_id:'',
  202. page:1,
  203. },
  204. isAJAX:false,
  205. schoolData:{
  206. school_name:'',
  207. },
  208. // 举报
  209. reportData:{
  210. news_id:'',
  211. content:'',
  212. },
  213. remarkData:{
  214. remark_id:'',
  215. news_id:'',
  216. total:0,
  217. list:[],
  218. page:1,
  219. },
  220. // 评论
  221. msgData:{
  222. news_id:'',
  223. remark_id:'',
  224. content:'',
  225. reply_id:'',
  226. },
  227. err:'',
  228. }
  229. },
  230. onShow(){
  231. let circleSchoolId = uni.getStorageSync('circleSchoolId');
  232. let schoolName = uni.getStorageSync('school_name');
  233. let circleSchoolName = uni.getStorageSync('circleSchoolName');
  234. this.schoolData.school_name = circleSchoolId?circleSchoolName:schoolName;
  235. this.classList = [];
  236. this.getTopic();
  237. this.list = [];
  238. this.fromData.page = 1;
  239. this.getList();
  240. },
  241. methods:{
  242. toBack(){
  243. tools.leftClick()
  244. },
  245. toSelectSchool(){
  246. uni.navigateTo({
  247. url:'/pages-address/select-school?type=2'
  248. })
  249. },
  250. getTopic(){
  251. getTopic().then((res)=>{
  252. if(res.code === 1){
  253. this.classList = res.data;
  254. this.classList.unshift({name:'全部贴子',id:0});
  255. }
  256. })
  257. },
  258. selectOrderBuy(type){
  259. if(this.fromData.orderBy != type){
  260. this.fromData.orderBy = type;
  261. this.list = [];
  262. this.fromData.page = 1;
  263. this.getList();
  264. }
  265. },
  266. selectTopicId(id){
  267. if(this.fromData.topic_id != id){
  268. this.fromData.topic_id = id;
  269. this.list = [];
  270. this.fromData.page = 1;
  271. this.getList();
  272. }
  273. },
  274. getList(){
  275. this.fromData.school_id = uni.getStorageSync('school_id');
  276. getAlumniList(this.fromData).then((res)=>{
  277. if(res.code === 1){
  278. this.list = [...this.list,...res.data.items];
  279. this.total = res.data.total;
  280. }
  281. })
  282. },
  283. scrolltolower(){
  284. if(this.list.length < this.total){
  285. this.fromData.page += 1;
  286. this.getList();
  287. }
  288. },
  289. // 点赞
  290. handUp(type,item){
  291. if(this.isAJAX){
  292. return
  293. }
  294. this.isAJAX = true;
  295. let is_like = item.is_like == 1?0:1;
  296. if(type == 1){
  297. // 点赞贴子
  298. setAlumniLike({news_id:item.news_id,is_like:is_like}).then((res)=>{
  299. this.handUpFun(res,item,is_like)
  300. })
  301. }else{
  302. // 点赞评论
  303. setRemarkLike({news_id:item.news_id,is_like:is_like,remark_id:item.id}).then((res)=>{
  304. this.handUpFun(res,item,is_like)
  305. })
  306. }
  307. },
  308. // 点赞
  309. handUpFun(res,item,is_like){
  310. if(res.code === 1){
  311. item.is_like = is_like;
  312. if(is_like == 0){
  313. item.like -= 1
  314. }else{
  315. item.like += 1
  316. }
  317. this.isAJAX = false;
  318. tools.success(res.msg);
  319. }else{
  320. this.isAJAX = false;
  321. tools.error(res.msg);
  322. }
  323. },
  324. // 打开评论
  325. openMsg(item){
  326. this.remarkData.news_id = item.news_id;
  327. this.msgData.news_id = item.news_id;
  328. this.remarkData.remark_id = 0;
  329. this.getMsg();
  330. },
  331. // 获取评论
  332. getMsg(){
  333. if(this.isAJAX){
  334. return
  335. }
  336. this.isAJAX = true;
  337. getRemarkList({news_id:this.remarkData.news_id,remark_id:this.remarkData.remark_id,page:this.remarkData.page}).then((res)=>{
  338. if(res.code === 1){
  339. this.isAJAX = false;
  340. this.remarkData.list = [...this.remarkData.list,...res.data.items];
  341. this.remarkData.total = res.data.total;
  342. this.remarkData.list.forEach((v)=>{
  343. v.isOpne = false;
  344. })
  345. this.$refs.popmsg.open();
  346. }
  347. })
  348. },
  349. // 加载更多评论
  350. scrolltolowerList(){
  351. if(this.remarkData.list.length < this.remarkData.total){
  352. this.remarkData.page += 1;
  353. this.getMsg();
  354. }
  355. },
  356. // 关闭评论
  357. closeMsg(){
  358. this.$refs.popmsg.close();
  359. this.remarkData.list = [];
  360. this.remarkData.page = 1;
  361. this.msgData.news_id = '';
  362. this.remarkData.remark_id = '';
  363. },
  364. openInput(type,item){
  365. if(type == 0){
  366. this.msgData.remark_id = 0;
  367. }else{
  368. this.msgData.remark_id = item.id;
  369. this.msgData.reply_id = item.m_id;
  370. }
  371. this.isShowIpnut = true;
  372. },
  373. closeInput(){
  374. this.isShowIpnut = false;
  375. this.msgData.remark_id = '';
  376. this.msgData.content = '';
  377. this.msgData.reply_id = '';
  378. },
  379. save(){
  380. if(this.isAJAX){
  381. return
  382. }
  383. this.isAJAX = true;
  384. setCreateRemark(this.msgData).then((res)=>{
  385. if(res.code == 1){
  386. tools.success('评论成功')
  387. setTimeout(()=>{
  388. this.isAJAX = false;
  389. this.closeInput()
  390. if(this.msgData.remark_id == 0){
  391. this.remarkData.list = [];
  392. this.remarkData.page = 1;
  393. this.getMsg();
  394. this.list = [];
  395. this.fromData.page = 1;
  396. this.getList();
  397. }else{
  398. this.remarkData.list = [];
  399. this.remarkData.page = 1;
  400. this.getMsg();
  401. }
  402. },1500)
  403. }else{
  404. this.isAJAX = false;
  405. tools.success(res.msg)
  406. }
  407. })
  408. },
  409. // 添加贴子
  410. add(){
  411. uni.navigateTo({
  412. url:"/pages-school/add-circle"
  413. })
  414. },
  415. // 打开举报
  416. openRepot(item){
  417. this.reportData.news_id = item.news_id;
  418. this.$refs.popup.open();
  419. },
  420. // 举报
  421. closePop(type){
  422. if(type === 1){
  423. this.reportData.news_id = '';
  424. this.reportData.content = '';
  425. this.$refs.popup.close();
  426. }else{
  427. if(this.isAJAX){
  428. return
  429. }
  430. this.isAJAX = true;
  431. alumniReport(this.reportData).then((res)=>{
  432. if(res.code === 1){
  433. tools.success(res.msg)
  434. setTimeout(()=>{
  435. this.isAJAX = false;
  436. this.closePop(1);
  437. },1000)
  438. }else{
  439. tools.success(res.msg);
  440. this.isAJAX = false;;
  441. }
  442. })
  443. }
  444. },
  445. share(){
  446. this.$refs.popshare.open();
  447. },
  448. toDet(item){
  449. uni.navigateTo({
  450. url:"/pages-school/circle-info?news_id=" + item.news_id
  451. })
  452. },
  453. },
  454. }
  455. </script>
  456. <style scoped lang="scss">
  457. .input-box{
  458. width: 100%;
  459. height: 80rpx;
  460. background: #F2F2F2;
  461. border-radius: 200rpx;
  462. line-height: 80rpx;
  463. }
  464. .b-bottom{
  465. width: 100%;
  466. height: 88rpx;
  467. line-height: 88rpx;
  468. background: linear-gradient( 105deg, #57CAFF 0%, #41ABF5 100%);
  469. border-radius: 200rpx;
  470. }
  471. .school-circle{
  472. padding-left: 24rpx;
  473. padding-right: 24rpx;
  474. position: relative;
  475. .pop-h-20{
  476. height: 18vh !important;
  477. }
  478. .pop-h-30{
  479. height: 30vh !important;
  480. }
  481. .pop-box{
  482. width: 100%;
  483. height: 50vh;
  484. background-color: #fff;
  485. border-radius: 24rpx 24rpx 0rpx 0rpx;
  486. display: flex;
  487. flex-direction: column;
  488. .item-box{
  489. width: 100%;
  490. height: 92rpx;
  491. border-radius: 200rpx;
  492. line-height: 92rpx;
  493. text-align: center;
  494. margin-bottom: 24rpx;
  495. }
  496. }
  497. .pop-msg{
  498. height: 70vh;
  499. position: relative;
  500. .pop-input{
  501. position: absolute;
  502. width: 100%;
  503. height: 70vh;
  504. background-color: #fff;
  505. bottom: 0;
  506. left: 0;
  507. border-top: 1rpx solid #ccc;
  508. border-radius: 20rpx 20rpx 0 0;
  509. display: flex;
  510. flex-direction: column;
  511. .save-box{
  512. text-align: center;
  513. line-height: 88rpx;
  514. font-weight: 600;
  515. font-size: 32rpx;
  516. color: #FFFFFF;
  517. width: 100%;
  518. height: 80rpx;
  519. border-radius: 200rpx;
  520. background: linear-gradient( 105deg, #57CAFF 0%, #41ABF5 100%);
  521. }
  522. }
  523. .head-pop{
  524. padding-bottom: 34rpx !important;
  525. border-bottom: 1rpx solid #F2F2F2;
  526. }
  527. .list-box{
  528. .list-box-img{
  529. width: 80rpx;
  530. height: 80rpx;
  531. border-radius: 50%;
  532. margin-right: 16rpx;
  533. }
  534. .only-box{
  535. padding: 4rpx 16rpx;
  536. background: rgba(65,171,245,0.1);
  537. border-radius: 8rpx 8rpx 8rpx 8rpx;
  538. }
  539. .msg-img{
  540. width: 144rpx;
  541. height: 144rpx;
  542. border-radius: 12rpx;
  543. margin-right:5rpx;
  544. margin-bottom: 5rpx;
  545. }
  546. .msg-img:nth-child(3n){
  547. margin-right: 0rpx;
  548. }
  549. .msg-img-1{
  550. width: 100rpx !important;
  551. height: 100rpx !important;
  552. }
  553. }
  554. }
  555. .circle-add{
  556. width: 88rpx;
  557. height: 88rpx;
  558. position: absolute;
  559. right: 0;
  560. bottom: 20vh;
  561. z-index: 2;
  562. }
  563. .w-400{
  564. width: 400rpx;
  565. }
  566. .bg-box{
  567. width: 100%;
  568. height: 260rpx;
  569. filter: blur(80rpx);
  570. background: linear-gradient(to right,#E1F2FD,#E0F3FA,#DBF8EF);
  571. position: absolute;
  572. top: 0;
  573. left: 0;
  574. z-index: -1;
  575. }
  576. .ts-box{
  577. width: 100%;
  578. height: 72rpx;
  579. background: linear-gradient( 180deg, #FFDBD0 0%, #FFFFFF 100%);
  580. border-radius: 16rpx;
  581. image{
  582. width: 44rpx;
  583. height: 44rpx;
  584. margin-right: 8rpx;
  585. }
  586. }
  587. .nav-box{
  588. width: 100%;
  589. overflow-x: scroll;
  590. .h130{
  591. height: 130rpx !important;
  592. }
  593. .nav-item{
  594. margin-right: 12rpx;
  595. width: 144rpx;
  596. height: 114rpx;
  597. text-align: center;
  598. border-radius: 20rpx;
  599. position: relative;
  600. .nav-icon{
  601. width: 64rpx;
  602. height: 64rpx;
  603. margin: 12rpx auto 0 auto;
  604. }
  605. .nav-bg{
  606. width: 144rpx;
  607. height: 130rpx;
  608. position: absolute;
  609. top: 0;
  610. left: 0;
  611. z-index: -1;
  612. }
  613. }
  614. }
  615. .type-box{
  616. .box-s{
  617. font-weight: 600 !important;
  618. color: #41ABF5;
  619. background: #E0F1FF !important;
  620. box-sizing: border-box;
  621. border: 1rpx solid #70C0F8;
  622. }
  623. .box-1{
  624. padding: 8rpx 32rpx;
  625. margin-right: 20rpx;
  626. background-color: #fff;
  627. border-radius: 12rpx;
  628. font-size: 24rpx;
  629. font-weight: 400;
  630. }
  631. .box-2{
  632. width: 168rpx;
  633. height: 50rpx;
  634. line-height: 50rpx;
  635. text-align: center;
  636. border-radius: 12rpx 12rpx 12rpx 12rpx;
  637. border: 1rpx solid #41ABF5;
  638. }
  639. }
  640. .card-box{
  641. width: 100%;
  642. min-height: 100rpx;
  643. border-radius: 20rpx;
  644. margin-bottom: 20rpx;
  645. .card-head{
  646. width: 80rpx;
  647. height: 80rpx;
  648. border-radius: 50%;
  649. margin-right: 16rpx;
  650. }
  651. .dian-img{
  652. width: 30rpx;
  653. height: 6rpx;
  654. margin-bottom: 24rpx;
  655. margin-left: auto;
  656. }
  657. .hot-img{
  658. width: 40rpx;
  659. height: 40rpx;
  660. margin-left: auto;
  661. }
  662. .card-3{
  663. .card-3-img{
  664. width: 182rpx;
  665. height: 182rpx;
  666. border-radius: 12rpx;
  667. margin-right: 6rpx;
  668. margin-bottom: 6rpx;
  669. }
  670. .card-3-img:nth-child(3n){
  671. margin-right: 0rpx;
  672. }
  673. }
  674. .card-4{
  675. view{
  676. padding: 4rpx 16rpx;
  677. background: #F2F2F2;
  678. border-radius: 200rpx;
  679. font-size: 24rpx;
  680. color: #999;
  681. margin-right: 20rpx;
  682. margin-bottom: 10rpx;
  683. }
  684. }
  685. .card-5{
  686. image{
  687. width: 40rpx;
  688. height: 40rpx;
  689. margin-right: 8rpx;
  690. }
  691. }
  692. }
  693. }
  694. </style>