school-circle.vue 21 KB

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