school-circle.vue 22 KB

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