改造企业微信会议通知
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="meeting">
|
<div class="meeting">
|
||||||
|
<template v-if="isList">
|
||||||
<ai-top-fixed>
|
<ai-top-fixed>
|
||||||
<u-grid :col="3" :border="false">
|
<u-grid :col="3" :border="false">
|
||||||
<u-grid-item v-for="(item,index) in grid" :key="index" :custom-style="{padding:'14px 0'}" @click="handleClick(index)">
|
<u-grid-item v-for="(item,index) in grid" :key="index" :custom-style="{padding:'14px 0'}"
|
||||||
|
@click="handleClick(index)">
|
||||||
<u-icon :name="item.icon" :size="64"></u-icon>
|
<u-icon :name="item.icon" :size="64"></u-icon>
|
||||||
<view class="label">{{item.label}}</view>
|
<view class="label">{{item.label}}</view>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
@@ -42,6 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<u-divider bg-color="#F5F5F5" v-if="meetingList.length">已经到底啦</u-divider>
|
<u-divider bg-color="#F5F5F5" v-if="meetingList.length">已经到底啦</u-divider>
|
||||||
<ai-add @add="add"/>
|
<ai-add @add="add"/>
|
||||||
|
</template>
|
||||||
|
<component v-else :is="comp" :params="params"></component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -49,14 +53,18 @@
|
|||||||
import AiEmpty from "../../components/AiEmpty/AiEmpty";
|
import AiEmpty from "../../components/AiEmpty/AiEmpty";
|
||||||
import AiTopFixed from "../../components/AiTopFixed";
|
import AiTopFixed from "../../components/AiTopFixed";
|
||||||
import AiAdd from "../../components/AiAdd";
|
import AiAdd from "../../components/AiAdd";
|
||||||
|
import {addMeeting, belongToMe, detail, meetingList} from './components'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppMeetingNotice",
|
name: "AppMeetingNotice",
|
||||||
appName: "会议通知",
|
appName: "会议通知",
|
||||||
components: {AiEmpty, AiTopFixed, AiAdd},
|
components: {AiEmpty, AiTopFixed, AiAdd, addMeeting, belongToMe, detail, meetingList},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
meetingList:[]
|
meetingList: [],
|
||||||
|
isList: true,
|
||||||
|
comp: "",
|
||||||
|
params: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -78,16 +86,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tag(status){
|
tag(status) {
|
||||||
return {
|
return {
|
||||||
"0":"common/1wqr.png",
|
"0": "common/1wqr.png",
|
||||||
"1":"common/1yqr.png",
|
"1": "common/1yqr.png",
|
||||||
"2":"common/1yqj.png",
|
"2": "common/1yqj.png",
|
||||||
}[status]
|
}[status]
|
||||||
},
|
},
|
||||||
detail({id}){
|
detail({id}) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:"/pages/meetingNotice/components/detail?id=" + id
|
url: "/pages/meetingNotice/components/detail?id=" + id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
@@ -97,41 +105,43 @@
|
|||||||
meetingStatus: "1|2",
|
meetingStatus: "1|2",
|
||||||
size: 999
|
size: 999
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res => {
|
||||||
if(res && res.data){
|
if (res && res.data) {
|
||||||
this.meetingList = res.data.records
|
this.meetingList = res.data.records
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleClick(index){
|
handleClick(index) {
|
||||||
let url
|
let url
|
||||||
if(index==0 || index==2){
|
if (index == 0 || index == 2) {
|
||||||
url="/pages/meetingNotice/components/meetingList?index=" + index
|
this.comp = "meetingList";
|
||||||
}else if(index==1){
|
this.params = index;
|
||||||
url="/pages/meetingNotice/components/belongToMe"
|
this.isList = false;
|
||||||
|
} else if (index == 1) {
|
||||||
|
url = "/pages/meetingNotice/components/belongToMe"
|
||||||
}
|
}
|
||||||
uni.navigateTo({url})
|
uni.navigateTo({url})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:"/pages/meetingNotice/components/addMeeting"
|
url: "/pages/meetingNotice/components/addMeeting"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
filters:{
|
filters: {
|
||||||
format(date){
|
format(date) {
|
||||||
return date.split(" ")[1].substr(0,5)
|
return date.split(" ")[1].substr(0, 5)
|
||||||
},
|
},
|
||||||
formatDate(date,index){
|
formatDate(date, index) {
|
||||||
return date.split(" ")[0].split("-")[index]
|
return date.split(" ")[0].split("-")[index]
|
||||||
},
|
},
|
||||||
formatWeek(date){
|
formatWeek(date) {
|
||||||
return "日一二三四五六".charAt((new Date(date.split(" ")[0]).getDay()))
|
return "日一二三四五六".charAt((new Date(date.split(" ")[0]).getDay()))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow(){
|
onShow() {
|
||||||
this.getData()
|
this.getData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,6 +222,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
transform: scaleY(1.3) translate(30%, -40px) rotate(45deg);
|
transform: scaleY(1.3) translate(30%, -40px) rotate(45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
top: 59px;
|
top: 59px;
|
||||||
background-color: #CCCCCC;
|
background-color: #CCCCCC;
|
||||||
@@ -236,7 +247,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag{
|
.tag {
|
||||||
width: 112px;
|
width: 112px;
|
||||||
height: 112px;
|
height: 112px;
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
@@ -248,7 +259,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .content{
|
::v-deep .content {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
src/apps/AppMeetingNotice/components/index.js
Normal file
4
src/apps/AppMeetingNotice/components/index.js
Normal 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'
|
||||||
@@ -42,9 +42,14 @@
|
|||||||
export default {
|
export default {
|
||||||
name: "meetingList",
|
name: "meetingList",
|
||||||
components: {AiBack, AiEmpty},
|
components: {AiBack, AiEmpty},
|
||||||
|
props: {
|
||||||
|
params: {
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: null,
|
|
||||||
list: [],
|
list: [],
|
||||||
current: 1,
|
current: 1,
|
||||||
status: "加载更多",
|
status: "加载更多",
|
||||||
@@ -52,16 +57,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad(opt) {
|
onLoad(opt) {
|
||||||
this.index = opt.index
|
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: opt.index == 0 ? "历史会议" : "草稿箱"
|
title: this.params == 0 ? "历史会议" : "草稿箱"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
detail({id}) {
|
detail({id}) {
|
||||||
let url
|
let url
|
||||||
if (this.index == 2) {
|
if (this.params == 2) {
|
||||||
url = "/pages/meetingNotice/components/addMeeting?id=" + id
|
url = "/pages/meetingNotice/components/addMeeting?id=" + id
|
||||||
} else {
|
} else {
|
||||||
url = "/pages/meetingNotice/components/detail?id=" + id
|
url = "/pages/meetingNotice/components/detail?id=" + id
|
||||||
@@ -79,8 +83,8 @@
|
|||||||
getData() {
|
getData() {
|
||||||
this.$http.post("/app/appmeetinginfo/list", null, {
|
this.$http.post("/app/appmeetinginfo/list", null, {
|
||||||
params: {
|
params: {
|
||||||
listType: this.index == 0 ? "2" : '0',
|
listType: this.params == 0 ? "2" : '0',
|
||||||
meetingStatus: this.index == 0 ? "4" : "0",
|
meetingStatus: this.params == 0 ? "4" : "0",
|
||||||
size: 10,
|
size: 10,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
}
|
}
|
||||||
@@ -107,7 +111,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow(){
|
onShow() {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -199,6 +203,7 @@
|
|||||||
|
|
||||||
.info {
|
.info {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
& > span:first-child {
|
& > span:first-child {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
|
|||||||
Reference in New Issue
Block a user