改造企业微信会议通知

This commit is contained in:
wanglei
2021-11-19 09:41:22 +08:00
parent b1faa6ec9e
commit ac77c19ea8
3 changed files with 95 additions and 75 deletions

View File

@@ -0,0 +1,4 @@
export {default as addMeeting} from './addMeeting'
export {default as belongToMe} from './belongToMe'
export {default as detail} from './detail'
export {default as meetingList} from './meetingList'

View File

@@ -27,7 +27,7 @@
<span>会议地点</span>
<span>{{item.address}}</span>
</u-row>
<div class="tag" v-if="item.status!=0" :style="{background:'url(' + $cdn + tag(item.status) +')'}"></div>
<div class="tag" v-if="item.status!=0" :style="{background:'url(' + $cdn + tag(item.status) +')'}"></div>
</div>
<u-loadmore :status="status" v-if="list.length"/>
<AiEmpty v-if="!list.length"></AiEmpty>
@@ -42,9 +42,14 @@
export default {
name: "meetingList",
components: {AiBack, AiEmpty},
props: {
params: {
type: String,
default: ""
}
},
data() {
return {
index: null,
list: [],
current: 1,
status: "加载更多",
@@ -52,16 +57,15 @@
},
onLoad(opt) {
this.index = opt.index
uni.setNavigationBarTitle({
title: opt.index == 0 ? "历史会议" : "草稿箱"
title: this.params == 0 ? "历史会议" : "草稿箱"
});
},
methods: {
detail({id}) {
let url
if (this.index == 2) {
if (this.params == 2) {
url = "/pages/meetingNotice/components/addMeeting?id=" + id
} else {
url = "/pages/meetingNotice/components/detail?id=" + id
@@ -79,8 +83,8 @@
getData() {
this.$http.post("/app/appmeetinginfo/list", null, {
params: {
listType: this.index == 0 ? "2" : '0',
meetingStatus: this.index == 0 ? "4" : "0",
listType: this.params == 0 ? "2" : '0',
meetingStatus: this.params == 0 ? "4" : "0",
size: 10,
current: this.current,
}
@@ -107,7 +111,7 @@
}
},
onShow(){
onShow() {
this.getData()
},
@@ -199,6 +203,7 @@
.info {
flex-wrap: nowrap;
& > span:first-child {
flex-shrink: 0;
font-size: 30px;