school-circle.vue 23 KB

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