school-circle.vue 24 KB

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