school-circle.vue 23 KB

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