Commit e8d3b086 by LJM

消息通知

parent 2a369707
......@@ -20,7 +20,7 @@
<a class="el-icon-s-cooperation" style="font-size: 27px;" href="/#/notice" title="系统公告"></a>
<div class="line"></div>
<i class="el-icon-message-solid message-num" @click="showMsg" title="消息通知">
<el-badge class="mark" :value="3"/>
<el-badge class="mark" :value="not_read_count"/>
</i>
<div class="line"></div>
<a class="msgh row verCenter" href="javascript:history.go(0)">
......@@ -300,6 +300,7 @@ export default {
tabSure: "",
tabs: "",
width: "",
not_read_count: '',//未读消息
isIndeterminate: false,//对el-checkbox控制不完整的全选状态
checkAll: false,//标记是否全选
dialogVisible: false,//改密码
......@@ -427,6 +428,7 @@ export default {
let htmlArr = [];
if (res.data.list.length > 0) {
let data = JSON.parse(res.data.list[0].msg_data);
this.not_read_count = res.data.not_read_count;
sessionStorage.removeItem('msg_id');
sessionStorage.setItem('msg_id', res.data.list[0].id);//存储最新id
//判断是不是最新的消息
......
......@@ -131,6 +131,7 @@ export default {
this.errorClass1 = true;
return false;
}
if (!myreg.test(this.form.mobile)) {
this.errror_text = '请输入正确的手机号';
this.errorClass1 = true;
......@@ -142,6 +143,7 @@ export default {
this.errorClass2 = true;
return false;
}
if (!this.form.captcha) {
this.errror_text = '请输入验证码';
this.errorClass3 = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment