清理组件残余

This commit is contained in:
aixianling
2021-12-13 11:56:11 +08:00
parent 66b6f44b0d
commit ecec3a3deb
5 changed files with 651 additions and 663 deletions

View File

@@ -9,7 +9,7 @@
<ai-textarea v-model="form.content" placeholder="请输入最多500字" :maxlength="500"/> <ai-textarea v-model="form.content" placeholder="请输入最多500字" :maxlength="500"/>
</u-form-item> </u-form-item>
<u-form-item label="图片最多9张"> <u-form-item label="图片最多9张">
<ai-uploader multiple :limit="9" :def.sync="form.fileList" action="/admin/file/add2"/> <AiUploader multiple :limit="9" :def.sync="form.fileList" action="/admin/file/add2"/>
</u-form-item> </u-form-item>
</u-form> </u-form>
<div bottom> <div bottom>

View File

@@ -68,17 +68,13 @@
</template> </template>
<script> <script>
import AiAdd from "../../components/AiAdd";
import AiEmpty from "../../components/AiEmpty";
import AiTopFixed from "../../components/AiTopFixed";
import {add, detail, read} from "./components"; import {add, detail, read} from "./components";
import AiOpenData from "../../components/AiOpenData"; import {mapActions} from "vuex";
import {mapActions} from "vuex";
export default { export default {
name: "AppNotification", name: "AppNotification",
appName: "通知公告", appName: "通知公告",
components: {AiOpenData,AiAdd, AiEmpty, AiTopFixed, add, detail, read}, components: {add, detail, read},
data() { data() {
return { return {
index: 0, index: 0,
@@ -364,14 +360,14 @@ export default {
height: 36px; height: 36px;
font-size: 26px; font-size: 26px;
color: #FF8822; color: #FF8822;
background:rgba(255,136,34,.1); background: rgba(255, 136, 34, .1);
line-height: 36px; line-height: 36px;
text-align: center; text-align: center;
margin-right: 4px; margin-right: 4px;
} }
.read{ .read {
background: rgba(102,102,102,.1); background: rgba(102, 102, 102, .1);
color: #666666; color: #666666;
} }
} }

View File

@@ -12,7 +12,8 @@
</div> </div>
<div class="card"> <div class="card">
<AiUploader :multiple="true" type="image" :limit="9" placeholder="上传图片" @list="fileList" :def="form.files" action="/admin/file/add2"></AiUploader> <AiUploader :multiple="true" type="image" :limit="9" placeholder="上传图片" @list="fileList" :def="form.files"
action="/admin/file/add2"></AiUploader>
</div> </div>
<div class="card item-wrap"> <div class="card item-wrap">
@@ -23,7 +24,7 @@
<span>请选择</span> <span>请选择</span>
</template> </template>
<template v-else> <template v-else>
已选择<em>{{form.persons.map(e=>e.name).slice(0,2).join("、")}}</em><em>{{form.persons.length}}</em> 已选择<em>{{ form.persons.map(e => e.name).slice(0, 2).join("、") }}</em><em>{{ form.persons.length }}</em>
</template> </template>
<div class="right-arrow"></div> <div class="right-arrow"></div>
</div> </div>
@@ -36,7 +37,7 @@
<div class="type" :class="[index==0 && 'active']" @click="index=0,form.releaseTime=null">立即发送 <div class="type" :class="[index==0 && 'active']" @click="index=0,form.releaseTime=null">立即发送
<img :src="$cdn + 'notice/jiaobiao.png'" alt="" v-show="index==0"> <img :src="$cdn + 'notice/jiaobiao.png'" alt="" v-show="index==0">
</div> </div>
<div class="type" :class="[index==1 && 'active']" @click="index=1">定时发送 <div class="type" :class="[index==1 && 'active']" @click="index=1">定时发送
<img :src="$cdn + 'notice/jiaobiao.png'" alt="" v-show="index==1"> <img :src="$cdn + 'notice/jiaobiao.png'" alt="" v-show="index==1">
</div> </div>
</u-row> </u-row>
@@ -48,7 +49,7 @@
<span>请选择</span> <span>请选择</span>
</template> </template>
<template v-else> <template v-else>
<span>{{form.releaseTime}}</span> <span>{{ form.releaseTime }}</span>
</template> </template>
<div class="right-arrow"></div> <div class="right-arrow"></div>
</div> </div>
@@ -66,316 +67,314 @@
</template> </template>
<script> <script>
import AiBack from "../../../components/AiBack"; import {mapActions} from "vuex";
import AiUploader from "../../../components/AiUploader";
import {mapActions} from "vuex";
export default { export default {
name: "add", name: "add",
components: {AiBack,AiUploader}, props: {
props:{ params: Object
params:Object },
}, data() {
data() { return {
return { show: false,
show: false, index: 0,
index: 0, list: [],
list: [], form: {
form: { id: null,
id: null, title: "",
title: "", content: "",
content: "", persons: [],
persons: [], releaseTime: null,
releaseTime:null, files: [],
files: [],
},
userSelect: false,
flag: null,
options: {
year: true,
month: true,
day: true,
hour: true,
minute: true,
second: true,
timestamp: true,
},
}
},
watch:{
params:{
handler:function (v) {
if(this.params?.id){
this.form.id = this.params?.id;
this.flag = this.params?.flag;
}
},
immediate:true
}
},
created() {
document.title = "新增公告";
if(this.params?.id){
this.getDetail();
}
},
methods: {
...mapActions(['selectEnterpriseContact']),
handleSelectUser() {
this.selectEnterpriseContact({
fromDepartmentId:0,
type:["user"],
selectedUserIds: this.form.persons?.map(e=>e.id)
}).then(res => {
console.log(res);
this.form.persons = res?.userList || []
})
}, },
confirm(e){ userSelect: false,
if(e.timestamp< (Date.now()/1000)|0){ flag: null,
return this.$u.toast("发送时间不能小于当前时间"); options: {
} year: true,
this.form.releaseTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`; month: true,
}, day: true,
fileList(e){ hour: true,
this.form.files = e minute: true,
}, second: true,
change(e){ timestamp: true,
this.form.persons = e
},
getDetail(){
this.$http.post("/app/appannouncement/detail",null,{
params:{
id:this.form.id,
detail: this.flag
}
}).then(res=>{
if (res && res.data) {
this.form.releaseTime = res.data.releaseTime;
Object.keys(this.form).map(e=>{
this.form[e] = res.data[e];
})
this.index = res.data.releaseTime ? 1 : 0;
}
})
},
add(status) {
// if(status==1){
if (!this.form.title) return this.$u.toast("请输入公告标题")
if (!this.form.content) return this.$u.toast("请输入公告内容")
if(!this.form.persons.length) return this.$u.toast("请选择发送对象")
if(this.index==1 && !this.form.releaseTime) return this.$u.toast("请选择定时发送时间")
if(this.form.releaseTime && new Date(this.form.releaseTime).getTime() < Date.now()) return this.$u.toast("发送时间不能小于当前时间");
// }
this.$http.post("/app/appannouncement/addOrUpdate", {
...this.form,
status,
}).then(res => {
if (res.code == 0) {
this.$u.toast(status == 1 ? "发布成功" : "保存成功")
this.$refs["aiBack"].back()
}
})
},
select() {
uni.navigateTo({
url: "/pages/meetingNotice/components/notice"
})
}
},
computed:{
background(){
return `url(${this.$cdn}/notice/jiaobiao.png) no-repeat; background-size: 46px 48px;position: absolute;bottom: 0;right: 0;`
}, },
} }
},
watch: {
params: {
handler: function () {
if (this.params?.id) {
this.form.id = this.params?.id;
this.flag = this.params?.flag;
}
},
immediate: true
}
},
created() {
document.title = "新增公告";
if (this.params?.id) {
this.getDetail();
}
},
methods: {
...mapActions(['selectEnterpriseContact']),
handleSelectUser() {
this.selectEnterpriseContact({
fromDepartmentId: 0,
type: ["user"],
selectedUserIds: this.form.persons?.map(e => e.id)
}).then(res => {
console.log(res);
this.form.persons = res?.userList || []
})
},
confirm(e) {
if (e.timestamp < (Date.now() / 1000) || 0) {
return this.$u.toast("发送时间不能小于当前时间");
}
this.form.releaseTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`;
},
fileList(e) {
this.form.files = e
},
change(e) {
this.form.persons = e
},
getDetail() {
this.$http.post("/app/appannouncement/detail", null, {
params: {
id: this.form.id,
detail: this.flag
}
}).then(res => {
if (res && res.data) {
this.form.releaseTime = res.data.releaseTime;
Object.keys(this.form).map(e => {
this.form[e] = res.data[e];
})
this.index = res.data.releaseTime ? 1 : 0;
}
})
},
add(status) {
// if(status==1){
if (!this.form.title) return this.$u.toast("请输入公告标题")
if (!this.form.content) return this.$u.toast("请输入公告内容")
if (!this.form.persons.length) return this.$u.toast("请选择发送对象")
if (this.index == 1 && !this.form.releaseTime) return this.$u.toast("请选择定时发送时间")
if (this.form.releaseTime && new Date(this.form.releaseTime).getTime() < Date.now()) return this.$u.toast("发送时间不能小于当前时间");
// }
this.$http.post("/app/appannouncement/addOrUpdate", {
...this.form,
status,
}).then(res => {
if (res.code == 0) {
this.$u.toast(status == 1 ? "发布成功" : "保存成功")
this.$refs["aiBack"].back()
}
})
},
select() {
uni.navigateTo({
url: "/pages/meetingNotice/components/notice"
})
}
},
computed: {
background() {
return `url(${this.$cdn}/notice/jiaobiao.png) no-repeat; background-size: 46px 48px;position: absolute;bottom: 0;right: 0;`
},
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.add-meeting { .add-meeting {
min-height: 100%; min-height: 100%;
background: #F5F5F5; background: #F5F5F5;
padding-bottom: 140px; padding-bottom: 140px;
.card { .card {
background-color: #FFFFFF; background-color: #FFFFFF;
box-sizing: border-box; box-sizing: border-box;
padding: 32px; padding: 32px;
margin-top: 16px; margin-top: 16px;
header { header {
font-size: 32px;
font-weight: 400;
color: #333333;
em {
font-style: normal;
font-size: 32px; font-size: 32px;
font-weight: 400; color: #FF4466;
margin-right: 8px;
vertical-align: middle;
}
}
input {
margin: 32px 0 16px;
box-sizing: border-box;
padding: 0 16px;
}
textarea {
width: 100%;
height: 160px;
margin: 32px 0 16px;
box-sizing: border-box;
padding: 0 16px;
}
.u-row {
margin-top: 34px;
.time {
display: flex;
flex-direction: column;
& > span:first-child {
font-size: 60px;
font-weight: 600;
color: #333333;
line-height: 84px;
}
& > span:last-child {
font-size: 22px;
color: #333333;
}
}
.arrow {
width: 28px;
height: 68px;
overflow: hidden;
position: relative;
transform: rotate(180deg);
&:before, &:after {
content: "";
width: 50px;
height: 50px;
position: absolute;
transform: scaleY(1.3) translate(30%, -40px) rotate(45deg);
}
&:before {
top: 59px;
background-color: #CCCCCC;
}
&:after {
left: 7px;
top: 59px;
background-color: #FFFFFF;
}
}
.type {
width: 320px;
height: 112px;
background: #F5F5F5;
color: #333333; color: #333333;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
font-weight: 500;
letter-spacing: 1px;
position: relative;
& > img {
width: 46px;
height: 48px;
position: absolute;
right: 0;
bottom: 0;
}
}
.active {
background-color: #E7F1FE;
color: #1174FE;
}
}
.item {
height: 112px;
box-shadow: 0px -1px 0px 0px #D8DDE6;
margin-top: 0;
.right {
font-size: 28px;
color: #999999;
display: flex;
align-items: center;
em { em {
font-style: normal; font-style: normal;
font-size: 32px; color: #1365DD;
color: #FF4466;
margin-right: 8px;
vertical-align: middle;
} }
} }
input { .right-arrow {
margin: 32px 0 16px; width: 16px;
box-sizing: border-box; height: 16px;
padding: 0 16px; display: inline-block;
} border-top: 5px solid #CCCCCC;
border-right: 5px solid #CCCCCC;
textarea { transform: rotate(45deg);
width: 100%;
height: 160px;
margin: 32px 0 16px;
box-sizing: border-box;
padding: 0 16px;
}
.u-row {
margin-top: 34px;
.time {
display: flex;
flex-direction: column;
& > span:first-child {
font-size: 60px;
font-weight: 600;
color: #333333;
line-height: 84px;
}
& > span:last-child {
font-size: 22px;
color: #333333;
}
}
.arrow {
width: 28px;
height: 68px;
overflow: hidden;
position: relative;
transform: rotate(180deg);
&:before, &:after {
content: "";
width: 50px;
height: 50px;
position: absolute;
transform: scaleY(1.3) translate(30%, -40px) rotate(45deg);
}
&:before {
top: 59px;
background-color: #CCCCCC;
}
&:after {
left: 7px;
top: 59px;
background-color: #FFFFFF;
}
}
.type{
width: 320px;
height: 112px;
background: #F5F5F5;
color: #333333;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
font-weight: 500;
letter-spacing: 1px;
position: relative;
& > img{
width: 46px;
height: 48px;
position: absolute;
right: 0;
bottom: 0;
}
}
.active{
background-color: #E7F1FE;
color: #1174FE;
}
}
.item {
height: 112px;
box-shadow: 0px -1px 0px 0px #D8DDE6;
margin-top: 0;
.right {
font-size: 28px;
color: #999999;
display: flex;
align-items: center;
em {
font-style: normal;
color: #1365DD;
}
}
.right-arrow {
width: 16px;
height: 16px;
display: inline-block;
border-top: 5px solid #CCCCCC;
border-right: 5px solid #CCCCCC;
transform: rotate(45deg);
}
}
}
.item-wrap {
padding: 0 32px;
}
.footer {
height: 112px;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
background-color: #FFFFFF;
display: flex;
align-items: center;
& > div {
font-size: 36px;
color: #333333;
}
& > div:first-child {
width: 270px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
& > div:last-child {
width: calc(100% - 270px);
height: 100%;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
background-color: #1365DD;
} }
} }
} }
.item-wrap {
padding: 0 32px;
}
.footer {
height: 112px;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
background-color: #FFFFFF;
display: flex;
align-items: center;
& > div {
font-size: 36px;
color: #333333;
}
& > div:first-child {
width: 270px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
& > div:last-child {
width: calc(100% - 270px);
height: 100%;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
background-color: #1365DD;
}
}
}
</style> </style>

View File

@@ -2,7 +2,7 @@
<div class="detail" v-if="pageShow"> <div class="detail" v-if="pageShow">
<template v-if="detailObj"> <template v-if="detailObj">
<div class="card"> <div class="card">
<header>{{detailObj.title}}</header> <header>{{ detailObj.title }}</header>
<u-gap height="16"></u-gap> <u-gap height="16"></u-gap>
<u-row> <u-row>
<span>发布人</span> <span>发布人</span>
@@ -20,7 +20,7 @@
<u-gap height="8"></u-gap> <u-gap height="8"></u-gap>
<u-row> <u-row>
<span>发布日期</span> <span>发布日期</span>
<span>{{detailObj.releaseTime}}</span> <span>{{ detailObj.releaseTime }}</span>
</u-row> </u-row>
<u-gap height="8"></u-gap> <u-gap height="8"></u-gap>
</div> </div>
@@ -36,9 +36,9 @@
<u-row justify="between"> <u-row justify="between">
<label class="left"> <label class="left">
<img :src="$cdn + 'common/appendix.png'" alt=""> <img :src="$cdn + 'common/appendix.png'" alt="">
<span>{{item.name}}.{{item.postfix}}</span> <span>{{ item.name }}.{{ item.postfix }}</span>
</label> </label>
<span>{{(item.size/1024).toFixed(2)}}KB</span> <span>{{ (item.size / 1024).toFixed(2) }}KB</span>
</u-row> </u-row>
</div> </div>
</div> </div>
@@ -47,316 +47,312 @@
<u-row justify="between" class="item"> <u-row justify="between" class="item">
<span>接收对象</span> <span>接收对象</span>
<div class="right"> <div class="right">
<em>{{detailObj.readNum}}</em>已读 <em>{{ detailObj.readNum }}</em>已读
<em>{{detailObj.unReadNum}}</em>未读 <em>{{ detailObj.unReadNum }}</em>未读
<div class="arrow"></div> <div class="arrow"></div>
</div> </div>
</u-row> </u-row>
</div> </div>
</template> </template>
<AiEmpty description="该通知已撤回" v-else/> <AiEmpty description="该通知已撤回" v-else/>
<AiBack /> <AiBack/>
</div> </div>
</template> </template>
<script> <script>
import AiBack from "../../../components/AiBack"; import {mapActions} from "vuex";
import {mapActions} from "vuex";
import AiEmpty from "../../../components/AiEmpty";
import AiOpenData from "../../../components/AiOpenData";
export default { export default {
name: "detail", name: "detail",
components:{AiOpenData,AiBack,AiEmpty}, props: {
props:{ params: Object
params:Object },
}, data() {
data() { return {
return { detailObj: {},
detailObj: {}, pageShow: false
pageShow: false }
},
created() {
this.$loading()
this.injectJWeixin(['sendChatMessage']).then(() => {
this.getDetail()
}).catch(() => {
this.getDetail()
this.$hideLoading()
})
},
mounted() {
document.title = "公告详情";
},
methods: {
...mapActions(['previewFile', 'injectJWeixin']),
preFile(e) {
if ([".jpg", ".png", ".gif"].includes(e.postfix.toLowerCase())) {
uni.previewImage({
current: e.url,
urls: [e.url]
})
} else {
this.previewFile({...e})
} }
}, },
created() { getDetail() {
this.$loading() this.$http.post("/app/appannouncement/detail", null, {
this.injectJWeixin(['sendChatMessage']).then(() => { params: {
this.getDetail() id: this.params?.id,
}).catch(() => { detail: this.params?.flag
this.getDetail() }
this.$hideLoading() }).then(res => {
if (res && res.data) {
this.detailObj = res.data;
this.pageShow = true
this.$hideLoading()
}
}) })
}, },
handleClick() {
mounted() { this.$parent.params = this.params.id;
document.title = "公告详情"; this.$parent.comp = "read";
}, this.$parent.showList = false;
methods: { }
...mapActions(['previewFile', 'injectJWeixin']), },
preFile(e) { }
if([".jpg",".png",".gif"].includes(e.postfix.toLowerCase())){
uni.previewImage({
current: e.url,
urls: [e.url]
})
}else {
this.previewFile({...e})
}
},
getDetail() {
this.$http.post("/app/appannouncement/detail", null, {
params: {
id: this.params?.id,
detail: this.params?.flag
}
}).then(res=>{
if(res && res.data){
this.detailObj = res.data;
this.pageShow = true
this.$hideLoading()
}
})
},
handleClick() {
this.$parent.params = this.params.id;
this.$parent.comp = "read";
this.$parent.showList = false;
}
},
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detail { .detail {
min-height: 100%; min-height: 100%;
background-color: #F5F5F5; background-color: #F5F5F5;
padding-bottom: 140px; padding-bottom: 140px;
::v-deep .content { ::v-deep .content {
padding: 0; padding: 0;
}
.card {
background-color: #FFFFFF;
margin-bottom: 8px;
box-sizing: border-box;
padding: 16px 32px;
header {
font-size: 40px;
font-weight: 600;
color: #333333;
line-height: 64px;
letter-spacing: 1px;
} }
.card { .u-row {
background-color: #FFFFFF; & > div {
margin-bottom: 8px; border-radius: 50%;
box-sizing: border-box; text-align: center;
padding: 16px 32px; font-size: 22px;
font-weight: bold;
header { display: flex;
font-size: 40px; align-items: center;
font-weight: 600; justify-content: center;
color: #333333;
line-height: 64px;
letter-spacing: 1px;
}
.u-row {
& > div {
border-radius: 50%;
text-align: center;
font-size: 22px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
}
& > span {
font-size: 30px;
color: #343D65;
line-height: 48px;
}
& > span:last-child {
font-size: 30px;
/*color: #343D65;*/
/*margin-left: 16px;*/
line-height: 48px;
}
.title {
width: 490px;
height: 112px;
display: flex;
align-items: center;
font-size: 32px;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.right {
font-size: 28px;
display: flex;
align-items: center;
color: #666666;
.arrow {
width: 16px;
height: 16px;
border-top: 3px solid #CCCCCC;
border-right: 3px solid #CCCCCC;
transform: rotate(45deg);
}
}
}
.item {
position: relative;
height: 80px;
&:after {
width: 100%;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
content: "";
position: absolute;
left: 0;
bottom: 0;
}
} }
& > span { & > span {
font-size: 30px;
color: #343D65;
line-height: 48px;
}
& > span:last-child {
font-size: 30px;
/*color: #343D65;*/
/*margin-left: 16px;*/
line-height: 48px;
}
.title {
width: 490px;
height: 112px;
display: flex;
align-items: center;
font-size: 32px;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.right {
font-size: 28px;
display: flex;
align-items: center;
color: #666666;
.arrow {
width: 16px;
height: 16px;
border-top: 3px solid #CCCCCC;
border-right: 3px solid #CCCCCC;
transform: rotate(45deg);
}
}
}
.item {
position: relative;
height: 80px;
&:after {
width: 100%;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
content: "";
position: absolute;
left: 0;
bottom: 0;
}
}
& > span {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
display: inline-block;
}
.label {
height: 80px;
font-size: 32px;
color: #333333;
display: flex;
align-items: center;
margin-bottom: 16px;
& > em {
font-style: normal;
font-size: 32px;
color: #1365DD;
}
}
.file {
height: 128px;
background: #FFFFFF;
border-radius: 8px;
border: 1px solid #CCCCCC;
box-sizing: border-box;
padding: 0 16px;
margin-bottom: 32px;
& > .u-row {
height: 100%;
.left {
width: 476px;
display: flex;
align-items: center;
word-break: break-all;
& > img {
flex-shrink: 0;
width: 96px;
height: 96px;
}
& > span {
font-size: 32px;
color: #333333;
display: inline-block;
line-height: 44px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
}
& > span {
font-size: 28px;
color: #999999;
}
}
}
.active {
background-color: #F3F6F9;
}
& > text {
width: 100%;
display: inline-block;
font-size: 30px;
color: #649EFD;
text-align: center;
}
.progress {
height: 12px;
background: #F2F4FC;
border-radius: 12px;
position: relative;
margin: 16px 0 64px 0;
.pro-active {
height: 12px;
background: #639EFD;
border-radius: 12px;
position: absolute;
left: 0;
top: 0;
}
}
em {
font-style: normal;
font-size: 28px;
color: #1365DD;
}
::v-deep .u-collapse {
position: relative;
&:after {
content: "";
width: 718px;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
position: absolute;
left: 0;
bottom: 0;
}
.u-collapse-head {
padding: 40px 0;
}
.u-collapse-content {
font-size: 32px; font-size: 32px;
color: #333333; color: #333333;
line-height: 48px; line-height: 48px;
letter-spacing: 1px; letter-spacing: 1px;
display: inline-block;
} }
.label {
height: 80px;
font-size: 32px;
color: #333333;
display: flex;
align-items: center;
margin-bottom: 16px;
& > em {
font-style: normal;
font-size: 32px;
color: #1365DD;
}
}
.file {
height: 128px;
background: #FFFFFF;
border-radius: 8px;
border: 1px solid #CCCCCC;
box-sizing: border-box;
padding: 0 16px;
margin-bottom: 32px;
& > .u-row {
height: 100%;
.left {
width: 476px;
display: flex;
align-items: center;
word-break: break-all;
& > img {
flex-shrink: 0;
width: 96px;
height: 96px;
}
& > span {
font-size: 32px;
color: #333333;
display: inline-block;
line-height: 44px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
}
& > span {
font-size: 28px;
color: #999999;
}
}
}
.active {
background-color: #F3F6F9;
}
& > text {
width: 100%;
display: inline-block;
font-size: 30px;
color: #649EFD;
text-align: center;
}
.progress {
height: 12px;
background: #F2F4FC;
border-radius: 12px;
position: relative;
margin: 16px 0 64px 0;
.pro-active {
height: 12px;
background: #639EFD;
border-radius: 12px;
position: absolute;
left: 0;
top: 0;
}
}
em {
font-style: normal;
font-size: 28px;
color: #1365DD;
}
::v-deep .u-collapse {
position: relative;
&:after {
content: "";
width: 718px;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
position: absolute;
left: 0;
bottom: 0;
}
.u-collapse-head {
padding: 40px 0;
}
.u-collapse-content {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
}
}
}
.footer {
height: 112px;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
background: #1365DD;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
color: #FFFFFF;
} }
} }
.footer {
height: 112px;
width: 100%;
position: fixed;
left: 0;
bottom: 0;
background: #1365DD;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
color: #FFFFFF;
}
}
</style> </style>

View File

@@ -14,89 +14,86 @@
</template> </template>
<script> <script>
import AiBack from "../../../components/AiBack"; import {mapActions} from "vuex";
import AiTopFixed from "../../../components/AiTopFixed";
import AiOpenData from "../../../components/AiOpenData"; export default {
import {mapActions} from "vuex"; name: "read",
export default { props: {
name: "read", params: [String, Number]
components: {AiBack, AiTopFixed, AiOpenData}, },
props:{ data() {
params:[String,Number] return {
}, current: 0,
data() { list: [],
return { }
current: 0, },
list: [], created() {
} document.title = "接收对象";
}, this.$loading()
created() { this.injectJWeixin().then(() => {
document.title = "接收对象"; this.getList();
this.$loading() })
this.injectJWeixin().then(() => { },
this.getList(); methods: {
...mapActions(['previewFile', 'injectJWeixin']),
getList() {
this.$http.post("/app/appannouncementreader/list-unread", null, {
params: {
id: this.params
}
}).then(res => {
if (res && res.data) {
this.list = res.data;
this.$hideLoading()
}
}) })
}, },
methods: { change(val) {
...mapActions(['previewFile', 'injectJWeixin']), this.current = val;
getList() { this.list = [];
this.$http.post("/app/appannouncementreader/list-unread",null,{ this.getList();
params:{ }
id:this.params },
} computed: {
}).then(res => { tabs() {
if (res && res.data) { return [
this.list = res.data; {name: (this.list?.read?.length || 0) + "人已读"},
this.$hideLoading() {name: (this.list?.unRead?.length || 0) + "人未读"},
} ];
}) }
}, },
change(val) { }
this.current = val;
this.list = [];
this.getList();
}
},
computed: {
tabs() {
return [
{name: (this.list?.read?.length || 0) + "人已读"},
{name: (this.list?.unRead?.length || 0) + "人未读"},
];
}
},
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.read { .read {
min-height: 100%; min-height: 100%;
background-color: #F5F5F5; background-color: #F5F5F5;
::v-deep .content{ ::v-deep .content {
padding: 0 !important; padding: 0 !important;
} }
.body { .body {
padding: 16px 0; padding: 16px 0;
.item { .item {
height: 120px; height: 120px;
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
padding: 0 50px; padding: 0 50px;
background-color: #ffffff; background-color: #ffffff;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
& > .name{ & > .name {
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 50px; line-height: 50px;
margin-left: 32px; margin-left: 32px;
}
} }
} }
} }
}
</style> </style>