school-circle.vue 23 KB

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