| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932 |
- <template>
- <view class="school-circle iPhone-bottom flex-common-css box-border-box ">
- <image class="circle-add" src="@/static/img/school/add.png" mode="" @click="add()"></image>
- <view class="bg-box"></view>
- <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
- <template>
- <view slot="custom" class="align-items-center">
- <uni-icons type="left" size="20" @click="toBack()"></uni-icons>
- <view class="w-390 text-overflow-ellipsis-one fs-36 fw-400">{{schoolData.school_name}}</view>
- </view>
- </template>
- </Nav>
- <view class="ts-box mt-24 align-items-center box-border-box plr-12 mb-20">
- <image src="@/static/img/school/ts.png" mode=""></image>
- <view class="fs-26 fw-400 fc-FB3D03">警惕骗钱骗色,保护自身安全,不轻信陌生人</view>
- </view>
- <view class="nav-box display-flex box-border-box mb-20">
- <view class="nav-item view-nowrap" @click="selectTopicId(item.id)"
- :class="fromData.topic_id == item.id?'h130':'bgc-f'" v-for="(item,i) in classList" :key="i">
- <image v-if="item.id == 0" class="nav-icon" src="@/static/img/school/icon.png" mode=""></image>
- <image v-else class="nav-icon" :src="item.image" mode=""></image>
- <view class="fs-24 plr-24 " :class="fromData.topic_id==item.id?'fw-600 fc-41ABF5':''">{{item.name}}
- </view>
- <image v-if="fromData.topic_id == item.id" class="nav-bg" src="@/static/img/school/bg.png" mode="">
- </image>
- </view>
- </view>
- <view class="flex-justify-space type-box mb-24">
- <view class="display-flex">
- <view @click="selectOrderBuy(1)" class="box-1" :class="fromData.orderBy == 1?'box-s':''">最新</view>
- <view @click="selectOrderBuy(2)" class="box-1" :class="fromData.orderBy == 2?'box-s':''">最热</view>
- <view @click="selectOrderBuy(3)" class="box-1" :class="fromData.orderBy == 3?'box-s':''">评论最多</view>
- </view>
- <view class="box-2 fs-24 fc-41ABF5" @click="toSelectSchool()">逛其他学校</view>
- </view>
- <view v-if="list.length === 0" class="scroll-view-css">
- <EnBlank :customSrc='true'>
- <template v-slot:blankImg>
- <image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
- </template>
- </EnBlank>
- </view>
- <scroll-view v-else scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
- <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)">
- <image class="card-head" :src="item.head_img" mode="scaleToFill"></image>
- <view class="flex-1">
- <view class="card-1 flex-justify-space mb-16">
- <view class="">
- <view class="w-400 fs-28 fw-600 mb-8">{{item.nickname}}</view>
- <view class="fs-24 fc-9">{{item.created_date}}</view>
- </view>
- <view class="">
- <view class="align-items-center">
- <image class="hot-img" src="@/static/img/school/hot.png" mode=""></image>
- <view class="fs-26 fw-400 fc-9">{{item.heat}}</view>
- </view>
- </view>
- </view>
- <view class="card-2 fs-30 fw-400 mb-16 view-word-wrap" style="width: 560rpx;">
- {{item.content}}
- </view>
- <view class="card-3 flex-wrap-wrap mb-32" style="width: 560rpx;">
- <image class="card-3-img" :src="item" v-for="(item,i) in item.image" mode="scaleToFill"></image>
- </view>
- <view class="align-items-center mb-40">
- <view class="label-box align-items-center mr-20 b-rad-200 bgc-F2F2F2">
- <image class="wz mr-8" src="@/static/img/my/wz-two.png" mode=""></image>
- <view class="fs-24 fc-9">
- {{item.school_name}}
- </view>
- </view>
- <view class="label-box align-items-center b-rad-200 bgc-F2F2F2">
- <image class="wz mr-8" src="@/static/img/my/ht.png" mode=""></image>
- <view class="fs-24 fc-9">
- {{item.topic_name}}
- </view>
- </view>
- </view>
- <view class="card-5 align-items-center flex-justify-space">
- <!-- <view class="align-items-center"></view> -->
- <view class="align-items-center" @click.stop="handUp(1,item)">
- <uni-icons type="hand-up" size="22" :color="item.is_like==1?'#FD5C02':'#999'"></uni-icons>
- <view class="fs-24 " :class="item.is_like==1?'fc-FD5C02':'fc-9'">{{item.like}}</view>
- </view>
- <view class="align-items-center" @click.stop="openMsg(item,0)">
- <image class="info-img" src="@/static/img/school/info.png" mode=""></image>
- <view class="fs-24 fc-9">{{item.remark}}</view>
- </view>
- <image @click.stop="openRepot(item)" class="dian-img" src="@/static/img/school/dian.png"
- mode=""></image>
- </view>
- </view>
- </view>
- </scroll-view>
- <uni-popup ref="popup" type="bottom">
- <view class="pop-box pop-h-30 box-border-box p-24">
- <view class="head-pop flex-justify-space align-items-center mb-24">
- <uni-icons @click.stop="closePop(1)" type="closeempty" size="24"></uni-icons>
- <view class="fs-36 fc-0 fw-600">请输入举报内容</view>
- <view class="fs-28 fw-600 fc-41ABF5">确定</view>
- </view>
- <view class="scroll-view-css">
- <textarea style="height: 100%;" v-model="reportData.content" class=" fs-24" :maxlength='50'
- placeholder='请输入举报内容'></textarea>
- </view>
- <view @click.stop="closePop(2)" class="b-bottom text-align-center fs-32 fw-600 fc-f">确认举报</view>
- </view>
- </uni-popup>
- <uni-popup ref="popmsg" type="bottom">
- <view class="pop-box pop-msg box-border-box p-24">
- <!-- 输入框 -->
- <view class="pop-input" v-if="isShowIpnut">
- <view class="head-pop flex-justify-space align-items-center mb-24 box-border-box p-24">
- <view class="fs-28 fw-600 fc-41ABF5"></view>
- <view class="fs-36 fc-0 fw-600">评论</view>
- <uni-icons @click.stop="closeInput()" type="closeempty" size="24"></uni-icons>
- </view>
- <view class="scroll-view-css">
- <view class="bgc-f box-border-box p-32">
- <view class="fs-34 fw-600 mb-20">评论</view>
- <textarea v-model="msgData.content" maxlength="100" class=" fs-24"
- placeholder='友善评论,文明发言'></textarea>
- </view>
- </view>
- <view class="box-border-box p-24">
- <view class="save-box" @click.stop="save()">评论</view>
- </view>
- </view>
- <!-- ----- -->
- <view class="head-pop flex-justify-space align-items-center mb-24">
- <view class=""></view>
- <view class="align-items-center">
- <view class="fs-36 fc-0 fw-600 mr-4">
- 评论
- </view>
- <view class="fs-24 fc-9">
- ({{remarkData.list.length}})
- </view>
- </view>
- <uni-icons @click.stop="closeMsg()" type="closeempty" size="24"></uni-icons>
- </view>
- <view v-if="remarkData.list.length === 0" class="scroll-view-css">
- <EnBlank :customSrc='true'>
- <template v-slot:blankImg>
- <image class="black-custom-img" src="@/static/img/common/no-order.png" mode=""></image>
- </template>
- </EnBlank>
- </view>
- <view v-else class="scroll-view-css box-border-box plr-24">
- <view class="list-box flex-justify-space" v-for="(item,i) in remarkData.list" :key="i">
- <image class="list-box-img" :src="item.head_img" mode="scaleToFill"></image>
- <view class="flex-1 p-b-20">
- <view class=" flex-justify-space">
- <view class=" b-b-F9F9F9 mr-20">
- <view class="fs-28 fw-400 fc-9 mb-8 align-items-center">
- {{item.nickname}}
- <span v-if="item.is_author == 1"
- class='only-box text-align-center fs-24 fc-41ABF5 ml-10'>作者</span>
- <span v-if="item.is_self == 1" class="fs-28 fc-6 ml-10">我</span>
- </view>
- <view class="fs-30 fw-400 mb-8" @click.stop="openInput(1,item)">
- {{item.content}}
- </view>
- <view class="display-flex mb-8">
- <view class="fs-24 fw-400 fc-9 mr-6">{{item.created_date}}</view>
- <uni-icons v-if="item.is_self == 1" @click="delInfo(item)" type="trash"
- size="16"></uni-icons>
- </view>
- </view>
- <view class="display-flex" @click.stop="handUp(2,item)">
- <uni-icons class="mr-8" type="hand-up" size="20"
- :color="item.is_like==1?'#FD5C02':'#999'"></uni-icons>
- <view class="fs-24 fw-400 mt-5" :class="item.is_like==1?'fc-FD5C02':'fc-9'">
- {{item.like}}
- </view>
- </view>
- </view>
- <view v-if="item.isOpen" class="fs-24 fc-6 text-align-center mb-12"
- @click="openReply(1,item)">展开更多评论</view>
- <!-- 回复 -->
- <view class="mb-16" v-if="item.replyList.length > 0">
- <view class="list-box flex-justify-space" v-for="(info,index) in item.replyList"
- :key="index">
- <image class="list-box-img" :src="info.head_img" mode="scaleToFill"></image>
- <view class="flex-1">
- <view class=" flex-justify-space">
- <view class=" b-b-F9F9F9 mr-20">
- <view class="fs-28 fw-400 fc-9 mb-8 align-items-center">
- {{info.nickname}}
- <span v-if="info.is_author == 1"
- class='only-box text-align-center fs-24 fc-41ABF5 ml-10'>作者</span>
- <span v-if="info.is_self == 1" class="fs-28 fc-6 ml-10">我</span>
- </view>
- <view class="fs-30 fw-400 mb-8" @click.stop="openInput(2,info)">
- {{info.content}}
- </view>
- <view class="display-flex mb-8">
- <view class="fs-24 fw-400 fc-9 mr-6">{{info.created_date}}</view>
- <uni-icons class="fs-24" v-if="info.is_self == 1"
- @click="delInfo(item)" type="trash"></uni-icons>
- </view>
- </view>
- <view class="display-flex" @click.stop="handUp(2,info)">
- <uni-icons type="hand-up" size="20"
- :color="info.is_like==1?'#FD5C02':'#999'"></uni-icons>
- <view class="fs-24 fw-400 mt-5"
- :class="info.is_like==1?'fc-FD5C02':'fc-9'">{{info.like}}</view>
- </view>
- </view>
- </view>
- </view>
- <view v-if="item.replyList.length < item.count"
- class="fs-24 fc-6 text-align-center mb-12" @click="openReply(2,item)">展开更多评论</view>
- </view>
- </view>
- </view>
- <view v-if="remarkData.list.length < remarkData.total" class="text-align-center fs-26"
- @click="scrolltolowerList">加载更多评论</view>
- </view>
- <view class="input-box text-align-left fs-28 fc-9 box-border-box plr-24" @click.stop="openInput(0,'')">
- 友善评论,文明发言</view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import EnBlank from "@/components/en-utils/en-blank/en-blank";
- import {
- getAlumniList,
- setAlumniLike,
- getRemarkList,
- alumniReport,
- setCreateRemark,
- setRemarkLike,
- delRemark
- } from '@/api/alumni.js';
- import {
- getTopic
- } from '@/api/category.js';
- import tools from '@/service/tools';
- export default {
- components: {
- EnBlank
- },
- data() {
- return {
- isShowIpnut: false,
- classList: [],
- total: 0,
- list: [],
- fromData: {
- topic_id: 0,
- orderBy: 1, //1最新 2最热 3最多评论
- school_id: '',
- page: 1,
- },
- isAJAX: false,
- schoolData: {
- school_name: '',
- },
- // 举报
- reportData: {
- news_id: '',
- content: '',
- },
- // 一级评论
- remarkData: {
- remark_id: '',
- news_id: '',
- total: 0,
- list: [],
- page: 1,
- },
- // 发起评论
- msgData: {
- news_id: '',
- remark_id: '',
- content: '',
- reply_id: '',
- },
- // 回复评论
- replyData: {
- page: 1,
- },
- }
- },
- onShow() {
- let circleSchoolId = uni.getStorageSync('circleSchoolId');
- let schoolName = uni.getStorageSync('school_name');
- let circleSchoolName = uni.getStorageSync('circleSchoolName');
- this.schoolData.school_name = circleSchoolId ? circleSchoolName : schoolName;
- this.classList = [];
- this.getTopic();
- this.list = [];
- this.fromData.page = 1;
- this.getList();
- },
- methods: {
- toBack() {
- tools.leftClick()
- },
- toSelectSchool() {
- uni.navigateTo({
- url: '/pages-address/select-school?type=2'
- })
- },
- getTopic() {
- getTopic().then((res) => {
- if (res.code === 1) {
- this.classList = res.data;
- this.classList.unshift({
- name: '全部贴子',
- id: 0
- });
- }
- })
- },
- selectOrderBuy(type) {
- if (this.fromData.orderBy != type) {
- this.fromData.orderBy = type;
- this.list = [];
- this.fromData.page = 1;
- this.getList();
- }
- },
- selectTopicId(id) {
- if (this.fromData.topic_id != id) {
- this.fromData.topic_id = id;
- this.list = [];
- this.fromData.page = 1;
- this.getList();
- }
- },
- getList() {
- let circleSchoolId = uni.getStorageSync('circleSchoolId');
- let school_id = uni.getStorageSync('school_id');
- this.fromData.school_id = circleSchoolId ? circleSchoolId : school_id
- getAlumniList(this.fromData).then((res) => {
- if (res.code === 1) {
- this.list = [...this.list, ...res.data.items];
- this.total = res.data.total;
- }
- })
- },
- scrolltolower() {
- if (this.list.length < this.total) {
- this.fromData.page += 1;
- this.getList();
- }
- },
- // 点赞
- handUp(type, item) {
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- let is_like = item.is_like == 1 ? 0 : 1;
- if (type == 1) {
- // 点赞贴子
- setAlumniLike({
- news_id: item.news_id,
- is_like: is_like
- }).then((res) => {
- this.handUpFun(res, item, is_like)
- })
- } else {
- // 点赞评论
- setRemarkLike({
- news_id: item.news_id,
- is_like: is_like,
- remark_id: item.id
- }).then((res) => {
- this.handUpFun(res, item, is_like)
- })
- }
- },
- // 点赞公共回复
- handUpFun(res, item, is_like) {
- if (res.code === 1) {
- item.is_like = is_like;
- if (is_like == 0) {
- item.like -= 1
- } else {
- item.like += 1
- }
- this.isAJAX = false;
- tools.success(res.msg);
- } else {
- this.isAJAX = false;
- tools.error(res.msg);
- }
- },
- // 获取回复列表
- openReply(type, item) {
- // type 1获取其他 2加载更多
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- if (type == 1) {
- item.replyList = [];
- this.replyData.page = 1;
- } else {
- this.replyData.page += 1;
- }
- getRemarkList({
- news_id: item.news_id,
- remark_id: item.id,
- page: this.replyData.page
- }).then((res) => {
- if (res.code === 1) {
- this.isAJAX = false;
- item.replyList = [...item.replyList, ...res.data.items];
- item.isOpen = false;
- } else {
- this.isAJAX = false;
- tools.error(res.msg)
- }
- })
- },
- // 打开评论
- openMsg(item) {
- this.remarkData.news_id = item.news_id;
- this.msgData.news_id = item.news_id;
- this.remarkData.remark_id = 0;
- this.getMsg();
- },
- // 获取评论
- getMsg() {
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- getRemarkList({
- news_id: this.remarkData.news_id,
- remark_id: this.remarkData.remark_id,
- page: this.remarkData.page
- }).then((res) => {
- if (res.code === 1) {
- this.isAJAX = false;
- this.remarkData.list = [...this.remarkData.list, ...res.data.items];
- this.remarkData.total = res.data.total;
- this.remarkData.list.forEach((v) => {
- v.replyList = [];
- if (v.count > 0) {
- v.isOpen = true;
- }
- })
- this.$refs.popmsg.open();
- } else {
- this.isAJAX = false;
- tools.error(res.msg)
- }
- })
- },
- // 加载更多评论
- scrolltolowerList() {
- if (this.remarkData.list.length < this.remarkData.total) {
- this.remarkData.page += 1;
- this.getMsg();
- }
- },
- // 关闭评论
- closeMsg() {
- this.$refs.popmsg.close();
- this.remarkData.list = [];
- this.remarkData.page = 1;
- this.msgData.news_id = '';
- this.remarkData.remark_id = '';
- },
- openInput(type, item) {
- if (type == 0) {
- this.msgData.remark_id = 0;
- } else if (type == 1) {
- this.msgData.remark_id = item.id;
- this.msgData.reply_id = item.m_id;
- } else {
- this.msgData.remark_id = item.remark_id;
- this.msgData.reply_id = item.m_id;
- }
- this.isShowIpnut = true;
- },
- closeInput() {
- this.isShowIpnut = false;
- this.msgData.remark_id = '';
- this.msgData.content = '';
- this.msgData.reply_id = '';
- },
- save() {
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- setCreateRemark(this.msgData).then((res) => {
- if (res.code == 1) {
- tools.success('评论成功')
- setTimeout(() => {
- this.isAJAX = false;
- this.closeInput()
- if (this.msgData.remark_id == 0) {
- this.remarkData.list = [];
- this.remarkData.page = 1;
- this.getMsg();
- this.list = [];
- this.fromData.page = 1;
- this.getList();
- } else {
- this.remarkData.list = [];
- this.remarkData.page = 1;
- this.getMsg();
- }
- }, 1500)
- } else {
- this.isAJAX = false;
- tools.error(res.msg)
- }
- })
- },
- delInfo(item) {
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- delRemark({
- remark_id: item.id
- }).then((res) => {
- if (res.code === 1) {
- tools.success('删除成功')
- setTimeout(() => {
- this.isAJAX = false;
- this.remarkData.list = [];
- this.remarkData.page = 1;
- this.getMsg();
- this.list = [];
- this.fromData.page = 1;
- this.getList();
- }, 1500)
- } else {
- this.isAJAX = false;
- tools.error(res.msg)
- }
- })
- },
- // 添加贴子
- add() {
- uni.navigateTo({
- url: "/pages-school/add-circle"
- })
- },
- // 打开举报
- openRepot(item) {
- this.reportData.news_id = item.news_id;
- this.$refs.popup.open();
- },
- // 举报
- closePop(type) {
- if (type === 1) {
- this.reportData.news_id = '';
- this.reportData.content = '';
- this.$refs.popup.close();
- } else {
- if (this.isAJAX) {
- return
- }
- this.isAJAX = true;
- alumniReport(this.reportData).then((res) => {
- if (res.code === 1) {
- tools.success(res.msg)
- setTimeout(() => {
- this.isAJAX = false;
- this.closePop(1);
- }, 1000)
- } else {
- tools.error(res.msg);
- this.isAJAX = false;;
- }
- })
- }
- },
- toDet(item) {
- uni.navigateTo({
- url: "/pages-school/circle-info?news_id=" + item.news_id
- })
- },
- },
- }
- </script>
- <style>
- body{
- background: #fff;
- }
- </style>
- <style scoped lang="scss">
- .label-box {
- padding: 0 12rpx;
- height: 38rpx;
- line-height: 38rpx;
- }
- .wz {
- width: 32rpx;
- height: 32rpx;
- }
- .input-box {
- width: 100%;
- height: 80rpx;
- background: #F2F2F2;
- border-radius: 200rpx;
- line-height: 80rpx;
- }
- .b-bottom {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- background: linear-gradient(105deg, #57CAFF 0%, #41ABF5 100%);
- border-radius: 200rpx;
- }
- .school-circle {
- padding-left: 24rpx;
- padding-right: 24rpx;
- position: relative;
- .pop-h-20 {
- height: 18vh !important;
- }
- .pop-h-30 {
- height: 30vh !important;
- }
- .pop-box {
- width: 100%;
- height: 60vh;
- background-color: #fff;
- border-radius: 24rpx 24rpx 0rpx 0rpx;
- display: flex;
- flex-direction: column;
- .item-box {
- width: 100%;
- height: 92rpx;
- border-radius: 200rpx;
- line-height: 92rpx;
- text-align: center;
- margin-bottom: 24rpx;
- }
- }
- .pop-msg {
- height: 80vh;
- position: relative;
- .pop-input {
- position: absolute;
- width: 100%;
- height: 80vh;
- background-color: #fff;
- bottom: 0;
- left: 0;
- border-top: 1rpx solid #ccc;
- border-radius: 20rpx 20rpx 0 0;
- display: flex;
- flex-direction: column;
- .save-box {
- text-align: center;
- line-height: 88rpx;
- font-weight: 600;
- font-size: 32rpx;
- color: #FFFFFF;
- width: 100%;
- height: 80rpx;
- border-radius: 200rpx;
- background: linear-gradient(105deg, #57CAFF 0%, #41ABF5 100%);
- }
- }
- .head-pop {
- padding-bottom: 34rpx !important;
- border-bottom: 1rpx solid #F2F2F2;
- }
- .list-box {
- .list-box-img {
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- margin-right: 16rpx;
- }
- .only-box {
- padding: 4rpx 16rpx;
- background: rgba(65, 171, 245, 0.1);
- border-radius: 8rpx 8rpx 8rpx 8rpx;
- }
- .msg-img {
- width: 144rpx;
- height: 144rpx;
- border-radius: 12rpx;
- margin-right: 5rpx;
- margin-bottom: 5rpx;
- }
- .msg-img:nth-child(3n) {
- margin-right: 0rpx;
- }
- .msg-img-1 {
- width: 100rpx !important;
- height: 100rpx !important;
- }
- }
- }
- .circle-add {
- width: 88rpx;
- height: 88rpx;
- position: absolute;
- right: 32rpx;
- bottom: 20vh;
- z-index: 2;
- }
- .w-400 {
- width: 400rpx;
- }
- .bg-box {
- width: 100%;
- height: 260rpx;
- filter: blur(80rpx);
- background: linear-gradient(to right, #E1F2FD, #E0F3FA, #DBF8EF);
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
- }
- .ts-box {
- width: 100%;
- height: 72rpx;
- background: linear-gradient(180deg, #FFDBD0 -50%, #FFFFFF 100%);
- border-radius: 16rpx;
- image {
- width: 44rpx;
- height: 44rpx;
- margin-right: 8rpx;
- }
- }
- .nav-box {
- width: 100%;
- overflow-x: scroll;
- .h130 {
- height: 130rpx !important;
- }
- .nav-item {
- margin-right: 12rpx;
- width: 144rpx;
- height: 114rpx;
- text-align: center;
- border-radius: 20rpx;
- position: relative;
- .nav-icon {
- width: 64rpx;
- height: 64rpx;
- margin: 12rpx auto 0 auto;
- }
- .nav-bg {
- width: 144rpx;
- height: 130rpx;
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
- }
- }
- }
- .type-box {
- .box-s {
- height: 50rpx;
- line-height: 50rpx;
- font-weight: 600 !important;
- color: #41ABF5;
- background: #E0F1FF !important;
- box-sizing: border-box;
- border: 1rpx solid #70C0F8;
- }
- .box-1 {
- padding: 0 32rpx;
- height: 50rpx;
- line-height: 50rpx;
- margin-right: 20rpx;
- background-color: #fff;
- border-radius: 12rpx;
- font-size: 24rpx;
- font-weight: 400;
- box-sizing: border-box;
- }
- .box-2 {
- width: 168rpx;
- height: 50rpx;
- line-height: 50rpx;
- text-align: center;
- border-radius: 12rpx 12rpx 12rpx 12rpx;
- border: 1rpx solid #41ABF5;
- box-sizing: border-box;
- }
- }
- .card-box {
- width: 100%;
- min-height: 100rpx;
- border-radius: 20rpx;
- margin-bottom: 20rpx;
- .card-head {
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- margin-right: 16rpx;
- }
- // .dian-img {
- // width: 30rpx;
- // height: 6rpx;
- // margin-bottom: 24rpx;
- // margin-left: auto;
- // }
- .hot-img {
- width: 40rpx;
- height: 40rpx;
- margin-left: auto;
- }
- .card-3 {
- .card-3-img {
- width: 182rpx;
- height: 182rpx;
- border-radius: 12rpx;
- margin-right: 6rpx;
- margin-bottom: 6rpx;
- }
- .card-3-img:nth-child(3n) {
- margin-right: 0rpx;
- }
- }
- .card-4 {
- view {
- padding: 4rpx 16rpx;
- background: #F2F2F2;
- border-radius: 200rpx;
- font-size: 24rpx;
- color: #999;
- margin-right: 20rpx;
- margin-bottom: 10rpx;
- }
- }
- .card-5 {
- .info-img {
- width: 40rpx;
- height: 40rpx;
- margin-right: 8rpx;
- }
- .dian-img {
- width: 30rpx;
- height: 6rpx;
- }
- }
- }
- }
- </style>
|