school-circle.vue 20 KB

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