|
|
@@ -1,15 +1,20 @@
|
|
|
<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="school-circle iPhone-bottom box-border-box">
|
|
|
+ <view class="circle-add flex-direction align-items-center flex-justify-center" @click="add()">
|
|
|
+ <image class="ft-img mb-12" src="/pages-school/static/ft.png" mode=""></image>
|
|
|
+ <view class="fs-24 fc-f fw-b">
|
|
|
+ 发帖
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="bg-box"></view>
|
|
|
- <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
|
|
|
+ <Nav :leftShow='false' :customNav='true' :bgckgroundBox='bgckgroundBox'>
|
|
|
<template>
|
|
|
<view slot="custom" class="align-items-center flex-justify-center navCustom">
|
|
|
<view class="align-items-center nav-left" @click="toBack()">
|
|
|
<uni-icons type="left" size="20"></uni-icons>
|
|
|
- <view class="fs-34">
|
|
|
+ <!-- <view class="fs-34">
|
|
|
返回
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="nav-title w-390 text-overflow-ellipsis-one text-align-center fs-36 fw-400">
|
|
|
{{schoolData.school_name}}
|
|
|
@@ -17,33 +22,44 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</Nav>
|
|
|
- <view class="pl-24 pr-24 box-border-box">
|
|
|
- <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">{{alumni_str}}</view>
|
|
|
+ <view class="top-box">
|
|
|
+ <view class="plr-30 mb-12 box-border-box">
|
|
|
+ <uni-swiper-dot :info="bannerList" mode="dot" :dotsStyles="dotStyle" :current="current">
|
|
|
+ <swiper class="swiper" @change="change" :autoplay='true' :circular='true' interval="4000">
|
|
|
+ <swiper-item v-for="(item,i) in bannerList" :key="i">
|
|
|
+ <image class="swiper-item" :src="item.image" mode="aspectFill" @click="bannerClock(item)">
|
|
|
+ </image>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </uni-swiper-dot>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="nav-box display-flex mb-20 pl-24 pr-24 box-border-box">
|
|
|
- <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 class="plr-30 box-border-box">
|
|
|
+ <view class="ts-box align-items-center box-border-box plr-12">
|
|
|
+ <image class="tz-img" src="/pages-school/static/tz.png" mode=""></image>
|
|
|
+ <view class="fs-24 fw-400 fc-0">{{alumni_str}}</view>
|
|
|
</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 pl-24 pr-24 box-border-box">
|
|
|
- <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 class="select-box" :style="[{'top': BarH + 'px'}]">
|
|
|
+ <scroll-view class="nav-box view-nowrap box-border-box bgc-f" scroll-x="true">
|
|
|
+ <view class="nav-item" @click="selectTopicId(item.id)" v-for="(item,i) in classList" :key="i">
|
|
|
+ <image class="nav-icon" :src="item.image" mode=""></image>
|
|
|
+ <view class="fs-24" :class="fromData.topic_id==item.id?'fw-600 fw-400':''">{{item.name}}</view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ <view class="flex-justify-space align-items-center type-box box-border-box">
|
|
|
+ <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':''">最热<text
|
|
|
+ class="ml-8" :class="fromData.orderBy == 2?'fc-F6ABAC':''">↑</text></view>
|
|
|
+ <view @click="selectOrderBuy(3)" class="box-1" :class="fromData.orderBy == 3?'box-s':''">评论<text
|
|
|
+ class="ml-8" :class="fromData.orderBy == 3?'fc-F6ABAC':''">↑</text></view>
|
|
|
+ </view>
|
|
|
+ <view class="box-2 fs-24 fc-F6ABAC" @click="toSelectSchool()">逛其他学校<text class="ml-8 fc-FB4845">></text>
|
|
|
+ </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>
|
|
|
@@ -52,52 +68,38 @@
|
|
|
</EnBlank>
|
|
|
</view>
|
|
|
|
|
|
- <scroll-view v-else scroll-y="true" class="scroll-view-css pl-24 pr-24 box-border-box bgc-F5F4F9"
|
|
|
- @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>
|
|
|
+ <!-- <scroll-view v-else scroll-y="true" class="scroll-view-css pl-24 pr-24 box-border-box bgc-F5F4F9" @scrolltolower="scrolltolower"> -->
|
|
|
+ <view class="box-border-box bgc-f">
|
|
|
+ <view class="card-box box-border-box bgc-f" v-for="(item,i) in list" :key="i" @click.stop="toDet(item)">
|
|
|
+ <view class="align-items-center mb-32">
|
|
|
+ <image class="card-head flex-shrink0" :src="item.head_img" mode="scaleToFill"></image>
|
|
|
+ <view class="">
|
|
|
+ <view class="w-400 fs-28 fw-b mb-16">{{item.nickname}}</view>
|
|
|
+ <view class="fs-24 fc-a">{{item.created_date}}</view>
|
|
|
</view>
|
|
|
- <view class="card-2 fs-30 fw-400 mb-16" style="width: 560rpx;">
|
|
|
+ </view>
|
|
|
+ <view class="flex-1">
|
|
|
+ <view class="card-2 fs-30 mb-16">
|
|
|
{{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="aspectFill"></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 class="label-box mr-14 b-rad-200 bgc-EDF6FF fc-4495FD fs-24">
|
|
|
+ {{item.school_name}}
|
|
|
</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 class="label-box b-rad-200 bgc-FCEDED fc-FC4642 fs-24">
|
|
|
+ {{item.topic_name}}
|
|
|
</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)">
|
|
|
+ <view class="card-5 align-items-center flex-justify-end">
|
|
|
+ <view class="align-items-center mr-50" @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">
|
|
|
+ <view class="align-items-center mr-50">
|
|
|
<image class="info-img" src="@/static/img/school/info.png" mode=""></image>
|
|
|
<view class="fs-24 fc-9">{{item.remark}}</view>
|
|
|
</view>
|
|
|
@@ -106,10 +108,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
-
|
|
|
-
|
|
|
+ </view>
|
|
|
|
|
|
+ <!-- </scroll-view> -->
|
|
|
|
|
|
<uni-popup ref="popup" type="bottom">
|
|
|
<view class="pop-box pop-h-30 box-border-box p-24">
|
|
|
@@ -126,12 +127,10 @@
|
|
|
</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>
|
|
|
@@ -149,7 +148,6 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <!-- ----- -->
|
|
|
<view class="head-pop flex-justify-space align-items-center mb-24">
|
|
|
<view class=""></view>
|
|
|
<view class="align-items-center">
|
|
|
@@ -261,7 +259,8 @@
|
|
|
alumniReport,
|
|
|
setCreateRemark,
|
|
|
setRemarkLike,
|
|
|
- delRemark
|
|
|
+ delRemark,
|
|
|
+ alumniBanner
|
|
|
} from '@/api/alumni.js';
|
|
|
import {
|
|
|
getCommonText
|
|
|
@@ -277,6 +276,19 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ bgckgroundBox: '',
|
|
|
+ BarH: 0,
|
|
|
+ bannerList: [],
|
|
|
+ dotStyle: {
|
|
|
+ width: 6,
|
|
|
+ bottom: 6,
|
|
|
+ backgroundColor: 'rgba(51, 51, 51,0.3)',
|
|
|
+ border: '1px rgba(0,0,0,0) solid',
|
|
|
+ color: '#fff',
|
|
|
+ selectedBackgroundColor: 'rgba(79, 179, 239,0.9)',
|
|
|
+ selectedBorder: '1px rgba(0,0,0,0) solid'
|
|
|
+ },
|
|
|
+ current: 0,
|
|
|
isShowIpnut: false,
|
|
|
classList: [],
|
|
|
total: 0,
|
|
|
@@ -335,6 +347,24 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ onPageScroll(e) {
|
|
|
+ if (e.scrollTop > 1) {
|
|
|
+ this.bgckgroundBox = '#fff';
|
|
|
+ } else {
|
|
|
+ this.bgckgroundBox = 'transparent';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ uni.getSystemInfo({
|
|
|
+ success: (e) => {
|
|
|
+ let statusBarH = e.statusBarHeight + 10
|
|
|
+ let custom = 0;
|
|
|
+ custom = wx.getMenuButtonBoundingClientRect()
|
|
|
+ let customBarH = custom.height;
|
|
|
+ this.BarH = statusBarH + customBarH;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
mounted() {
|
|
|
uni.$on('circleDataUp', (data) => {
|
|
|
console.log(data, '*********************');
|
|
|
@@ -357,9 +387,21 @@
|
|
|
this.list = [];
|
|
|
this.fromData.page = 1;
|
|
|
this.getList();
|
|
|
+ this.alumniBanner()
|
|
|
this.getCommonText()
|
|
|
},
|
|
|
methods: {
|
|
|
+ bannerClock(item) {},
|
|
|
+ alumniBanner() {
|
|
|
+ alumniBanner().then((res) => {
|
|
|
+ if (res.code === 1) {
|
|
|
+ this.bannerList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ change(e) {
|
|
|
+ this.current = e.detail.current
|
|
|
+ },
|
|
|
getCommonText() {
|
|
|
getCommonText().then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
@@ -380,6 +422,7 @@
|
|
|
if (res.code === 1) {
|
|
|
this.classList = res.data;
|
|
|
this.classList.unshift({
|
|
|
+ image: require('@/static/img/school/icon.png'),
|
|
|
name: '全部贴子',
|
|
|
id: 0
|
|
|
});
|
|
|
@@ -408,7 +451,7 @@
|
|
|
let circleSchoolId = uni.getStorageSync('circleSchoolId');
|
|
|
let school_id = uni.getStorageSync('school_id');
|
|
|
this.fromData.school_id = circleSchoolId ? circleSchoolId : school_id
|
|
|
- if(this.isAjax) {
|
|
|
+ if (this.isAjax) {
|
|
|
return
|
|
|
}
|
|
|
this.isAjax = true
|
|
|
@@ -674,6 +717,23 @@
|
|
|
}
|
|
|
</style>
|
|
|
<style scoped lang="scss">
|
|
|
+ .select-box{
|
|
|
+ position: sticky;
|
|
|
+ left: 0;
|
|
|
+ z-index: 10;
|
|
|
+ }
|
|
|
+ .swiper {
|
|
|
+ width: 100%;
|
|
|
+ height: 260rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .swiper-item {
|
|
|
+ width: 100%;
|
|
|
+ height: 260rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.card-2 {
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
@@ -695,9 +755,9 @@
|
|
|
}
|
|
|
|
|
|
.label-box {
|
|
|
- padding: 0 12rpx;
|
|
|
- height: 38rpx;
|
|
|
- line-height: 38rpx;
|
|
|
+ padding: 0 18rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ line-height: 48rpx;
|
|
|
}
|
|
|
|
|
|
.wz {
|
|
|
@@ -820,12 +880,19 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .ft-img {
|
|
|
+ width: 30rpx;
|
|
|
+ height: 32rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.circle-add {
|
|
|
- width: 88rpx;
|
|
|
- height: 88rpx;
|
|
|
- position: absolute;
|
|
|
- right: 32rpx;
|
|
|
- bottom: 20vh;
|
|
|
+ background: linear-gradient(0deg, #55A7FF, #1561F6);
|
|
|
+ border-radius: 50%;
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ position: fixed;
|
|
|
+ right: 38rpx;
|
|
|
+ bottom: 126rpx;
|
|
|
z-index: 2;
|
|
|
}
|
|
|
|
|
|
@@ -837,7 +904,7 @@
|
|
|
width: 100%;
|
|
|
height: 260rpx;
|
|
|
filter: blur(80rpx);
|
|
|
- background: linear-gradient(to right, #E1F2FD, #E0F3FA, #DBF8EF);
|
|
|
+ background: linear-gradient(to right, #E8E5F5, #E8EBF9, #D9EBFA);
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
@@ -845,105 +912,73 @@
|
|
|
}
|
|
|
|
|
|
.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;
|
|
|
- }
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ border-bottom: 1rpx solid #efefef;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tz-img {
|
|
|
+ width: 48rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ margin-right: 14rpx;
|
|
|
}
|
|
|
|
|
|
.nav-box {
|
|
|
width: 100%;
|
|
|
- overflow-x: scroll;
|
|
|
-
|
|
|
- .h130 {
|
|
|
- height: 130rpx !important;
|
|
|
- }
|
|
|
+ padding: 27rpx 50rpx 47rpx;
|
|
|
|
|
|
.nav-item {
|
|
|
- margin-right: 12rpx;
|
|
|
- width: 144rpx;
|
|
|
- height: 114rpx;
|
|
|
- text-align: center;
|
|
|
- border-radius: 20rpx;
|
|
|
+ margin-right: 48rpx;
|
|
|
+ width: 90rpx;
|
|
|
+ display: inline-block;
|
|
|
+ // height: auto;
|
|
|
position: relative;
|
|
|
|
|
|
.nav-icon {
|
|
|
- width: 64rpx;
|
|
|
- height: 64rpx;
|
|
|
- margin: 12rpx auto 0 auto;
|
|
|
+ width: 90rpx;
|
|
|
+ height: 90rpx;
|
|
|
+ margin: 0 auto 24rpx;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .nav-bg {
|
|
|
- width: 144rpx;
|
|
|
- height: 130rpx;
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- z-index: -1;
|
|
|
- }
|
|
|
+ .nav-item:last-child {
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.type-box {
|
|
|
+ padding: 25rpx 30rpx;
|
|
|
+ background: #F2F3F7;
|
|
|
+
|
|
|
.box-s {
|
|
|
- height: 50rpx;
|
|
|
- line-height: 50rpx;
|
|
|
font-weight: 600 !important;
|
|
|
- color: #41ABF5;
|
|
|
- background: #E0F1FF !important;
|
|
|
+ color: #F6ABAC;
|
|
|
box-sizing: border-box;
|
|
|
- border: 1rpx solid #70C0F8;
|
|
|
+ border: 1rpx solid #F6ABAC;
|
|
|
}
|
|
|
|
|
|
.box-1 {
|
|
|
- padding: 0 32rpx;
|
|
|
- height: 50rpx;
|
|
|
- line-height: 50rpx;
|
|
|
- margin-right: 20rpx;
|
|
|
- background-color: #fff;
|
|
|
- border-radius: 12rpx;
|
|
|
+ padding: 9rpx 19rpx;
|
|
|
+ margin-right: 48rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
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;
|
|
|
+ padding: 30rpx 30rpx 50rpx;
|
|
|
+ border-bottom: 1rpx solid #EEEEEE;
|
|
|
|
|
|
.card-head {
|
|
|
- width: 80rpx;
|
|
|
- height: 80rpx;
|
|
|
+ width: 90rpx;
|
|
|
+ height: 90rpx;
|
|
|
border-radius: 50%;
|
|
|
- margin-right: 16rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
}
|
|
|
|
|
|
- // .dian-img {
|
|
|
- // width: 30rpx;
|
|
|
- // height: 6rpx;
|
|
|
- // margin-bottom: 24rpx;
|
|
|
- // margin-left: auto;
|
|
|
- // }
|
|
|
-
|
|
|
.hot-img {
|
|
|
width: 40rpx;
|
|
|
height: 40rpx;
|
|
|
@@ -982,11 +1017,6 @@
|
|
|
height: 40rpx;
|
|
|
margin-right: 8rpx;
|
|
|
}
|
|
|
-
|
|
|
- .dian-img {
|
|
|
- width: 30rpx;
|
|
|
- height: 6rpx;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|