2021-11-19 09:27:00 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="belong-to-me">
|
|
|
|
|
|
<ai-top-fixed>
|
2021-11-23 13:54:15 +08:00
|
|
|
|
<u-tabs :list="tabs" :is-scroll="false" :current="index" bar-width="88" :height="96" @change="change"></u-tabs>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</ai-top-fixed>
|
|
|
|
|
|
<div class="body">
|
|
|
|
|
|
<template v-if="list.length">
|
|
|
|
|
|
<div class="card" v-for="(item,index) in list" :key="index" @click="handleClick(item)">
|
2021-12-03 15:21:15 +08:00
|
|
|
|
<header>{{ item.title }}</header>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
<u-row justify="between">
|
|
|
|
|
|
<div class="time">
|
2021-12-03 15:21:15 +08:00
|
|
|
|
<span>{{ item.startTime|formatTime }}</span>
|
|
|
|
|
|
<span>{{ item.startTime|formatDate(0) }}年{{ item.startTime|formatDate(1) }}月{{ item.startTime|formatDate(2) }}日 周{{ item.startTime|formatWeek }}</span>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="arrow"></div>
|
|
|
|
|
|
<div class="time">
|
2021-12-03 15:21:15 +08:00
|
|
|
|
<span>{{ item.endTime|formatTime }}</span>
|
|
|
|
|
|
<span>{{ item.endTime|formatDate(0) }}年{{ item.endTime|formatDate(1) }}月{{ item.endTime|formatDate(2) }}日 周{{ item.endTime|formatWeek }}</span>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</u-row>
|
|
|
|
|
|
<u-row class="info">
|
|
|
|
|
|
<span>发起单位:</span>
|
2021-12-07 09:31:17 +08:00
|
|
|
|
<AiOpenData type="departmentName" :openid="item.unitName"/>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</u-row>
|
|
|
|
|
|
<u-gap height="20"></u-gap>
|
|
|
|
|
|
<u-row class="info">
|
|
|
|
|
|
<span>会议地点:</span>
|
2021-12-03 15:21:15 +08:00
|
|
|
|
<span>{{ item.address }}</span>
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</u-row>
|
|
|
|
|
|
<div class="tag" :style="{background:'url(' + tag(item.status) + ')'}"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
|
<ai-empty/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<AiBack/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2021-12-03 15:21:15 +08:00
|
|
|
|
import AiTopFixed from "../../../components/AiTopFixed";
|
|
|
|
|
|
import AiBack from "../../../components/AiBack";
|
|
|
|
|
|
import AiEmpty from "../../../components/AiEmpty";
|
|
|
|
|
|
import AiOpenData from "../../../components/AiOpenData";
|
2021-12-08 20:29:47 +08:00
|
|
|
|
import {mapActions} from "vuex";
|
2021-12-03 15:21:15 +08:00
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "belongToMe",
|
|
|
|
|
|
components: {AiOpenData, AiTopFixed, AiBack, AiEmpty},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
index: 0,
|
|
|
|
|
|
current: 1,
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
status: "加载更多",
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
tabs() {
|
|
|
|
|
|
return [
|
|
|
|
|
|
{name: "全部"},
|
|
|
|
|
|
{name: "未开始"},
|
|
|
|
|
|
{name: "进行中"},
|
|
|
|
|
|
{name: "已取消"},
|
|
|
|
|
|
{name: "已结束"},
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
2021-12-03 18:39:31 +08:00
|
|
|
|
document.title = "我发起的";
|
2021-12-08 20:29:47 +08:00
|
|
|
|
this.$loading()
|
|
|
|
|
|
this.injectJWeixin(['sendChatMessage']).then(() => {
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
this.$hideLoading()
|
|
|
|
|
|
})
|
2021-12-03 15:21:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
emitReachBottom() {
|
|
|
|
|
|
this.current = this.current + 1;
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
},
|
|
|
|
|
|
tag(status) {
|
2021-11-19 09:27:00 +08:00
|
|
|
|
return {
|
2021-12-03 15:21:15 +08:00
|
|
|
|
"1": this.$cdn + 'common/1wks.png',
|
|
|
|
|
|
"2": this.$cdn + 'common/1jxz.png',
|
|
|
|
|
|
"3": this.$cdn + 'common/1yqx.png',
|
|
|
|
|
|
"4": this.$cdn + 'common/1yjs.png'
|
|
|
|
|
|
}[status]
|
2021-11-19 09:27:00 +08:00
|
|
|
|
},
|
2021-12-03 15:21:15 +08:00
|
|
|
|
getList() {
|
|
|
|
|
|
this.$http.post("/app/appmeetinginfo/list", null, {
|
|
|
|
|
|
params: {
|
|
|
|
|
|
listType: 0,
|
|
|
|
|
|
meetingStatus: this.index == 0 ? "-1" : this.index,
|
|
|
|
|
|
size: 10,
|
|
|
|
|
|
current: this.current
|
|
|
|
|
|
}
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
if (res && res.data) {
|
|
|
|
|
|
if (this.current > 1 && this.current > res.data.pages) {
|
|
|
|
|
|
this.status = "已经到底啦"
|
|
|
|
|
|
}
|
|
|
|
|
|
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
|
|
|
|
|
}
|
2021-12-08 20:29:47 +08:00
|
|
|
|
|
|
|
|
|
|
this.$hideLoading()
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
this.$hideLoading()
|
2021-12-03 15:21:15 +08:00
|
|
|
|
})
|
2021-11-19 09:27:00 +08:00
|
|
|
|
},
|
2021-12-03 15:21:15 +08:00
|
|
|
|
handleClick({id}) {
|
|
|
|
|
|
this.$parent.params = id;
|
|
|
|
|
|
this.$parent.isList = false;
|
|
|
|
|
|
this.$parent.comp = "detail"
|
2021-12-01 09:44:12 +08:00
|
|
|
|
},
|
2021-12-03 15:21:15 +08:00
|
|
|
|
change(e) {
|
|
|
|
|
|
this.index = e
|
|
|
|
|
|
this.current = 1
|
|
|
|
|
|
this.getList()
|
2021-11-19 09:27:00 +08:00
|
|
|
|
},
|
2021-12-03 15:21:15 +08:00
|
|
|
|
},
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
filters: {
|
|
|
|
|
|
formatTime(date) {
|
|
|
|
|
|
return date.split(" ")[1]?.substr(0, 5)
|
|
|
|
|
|
},
|
|
|
|
|
|
formatDate(date, i) {
|
|
|
|
|
|
return date.split(" ")[0]?.split("-")[i]
|
|
|
|
|
|
},
|
|
|
|
|
|
formatWeek(date) {
|
|
|
|
|
|
return "日一二三四五六".charAt(new Date(date.split(" ")[0]).getDay())
|
|
|
|
|
|
},
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
2021-12-03 15:21:15 +08:00
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-12-03 15:21:15 +08:00
|
|
|
|
.belong-to-me {
|
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
|
background-color: #F5F5F5;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
::v-deep .content {
|
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.body {
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 40px 32px;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
.card {
|
|
|
|
|
|
background-color: #FFFFFF;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
box-sizing: border-box;
|
2021-12-03 15:21:15 +08:00
|
|
|
|
padding: 32px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
position: relative;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
& > header {
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.time {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
margin: 46px 0;
|
|
|
|
|
|
|
|
|
|
|
|
& > span:first-child {
|
|
|
|
|
|
font-size: 60px;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #333333;
|
2021-12-03 15:21:15 +08:00
|
|
|
|
line-height: 84px;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
& > span:last-child {
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
color: #333333;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
2021-12-03 15:21:15 +08:00
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
.arrow {
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 68px;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
transform: rotate(180deg);
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
&:before, &:after {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
width: 50px;
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
transform: scaleY(1.3) translate(30%, -40px) rotate(45deg);
|
|
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
&:before {
|
|
|
|
|
|
top: 59px;
|
|
|
|
|
|
background-color: #CCCCCC;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
&:after {
|
|
|
|
|
|
left: 7px;
|
|
|
|
|
|
top: 59px;
|
|
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
.info {
|
|
|
|
|
|
flex-wrap: nowrap;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
& > span:first-child {
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
flex-shrink: 0;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-12-03 15:21:15 +08:00
|
|
|
|
& > span:last-child {
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
color: #343D65;
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-12-03 15:21:15 +08:00
|
|
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
|
|
width: 112px;
|
|
|
|
|
|
height: 112px;
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
background-size: 100% 100% !important;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-12-03 15:21:15 +08:00
|
|
|
|
}
|
2021-11-19 09:27:00 +08:00
|
|
|
|
</style>
|