Commit 30d31820 by qiyeqing

会话优化

1 parent 0180a53c
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
<span class="fl"> <span class="fl">
<div class="ninebox"> <div class="ninebox">
<ul v-if="item.roomInfo"> <ul v-if="item.roomInfo">
<li v-for="(a,i) in item.roomInfo.avatar.split(',')" :key="i"><img :src="a" alt=""></li> <li v-for="(a,i) in item.roomInfo.avatar.split(',')" :key="i"><img :src="a" ></li>
</ul> </ul>
</div> </div>
...@@ -63,13 +62,13 @@ ...@@ -63,13 +62,13 @@
*{ padding: 0; *{ padding: 0;
.fl{float: left;} .fl{float: left;}
margin: 0;} margin: 0;}
.ninebox{ width: 62px; height: 60px; border: 1px solid #199ed8;; .ninebox{ width: 54px; height: 52px; border: 1px solid #199ed8;;
ul li{ ul li{
float: left; float: left;
width: 17px; width: 15px;
height: 17px; height: 15px;
padding: 0!important; padding: 0!important;
margin:1px 2px 2px 1px; margin:1px 1px 1px 1px;
}} }}
.list { .list {
overflow-y:scroll; overflow-y:scroll;
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
.gray{color: #999;} .gray{color: #999;}
.padt10{padding-top: 10px;} .padt10{padding-top: 10px;}
ul li { ul li {
padding: 10px; padding:3px 10px;
overflow: hidden; overflow: hidden;
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
cursor: pointer; cursor: pointer;
...@@ -92,8 +91,8 @@ ...@@ -92,8 +91,8 @@
text-overflow:ellipsis;} text-overflow:ellipsis;}
:hover{ background: #efefef;} :hover{ background: #efefef;}
img { img {
width: 40px; width: 100%;
height: 40px; height: 100%;
float: left float: left
} }
} }
......
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
}, },
mounted() { mounted() {
this.getTree() this.getTree()
this.getAmount() //this.getAmount()
}, },
methods: { methods: {
voiceLook(e){ voiceLook(e){
...@@ -251,7 +251,10 @@ ...@@ -251,7 +251,10 @@
this.activeNameThreeClick(true) this.activeNameThreeClick(true)
}, },
activeNameThreeClick(page, group) { activeNameThreeClick(page, group) {
console.log(this.activeName) console.log(!!this.chat.id)
if(!!!this.chat.id){
return //没有选择人
}
if (!!!page) { if (!!!page) {
this.currentPage = 1 this.currentPage = 1
} }
...@@ -355,18 +358,18 @@ ...@@ -355,18 +358,18 @@
if (!value) return true; if (!value) return true;
return data.name.indexOf(value) !== -1; return data.name.indexOf(value) !== -1;
}, },
getAmount(){ // getAmount(){
let querys = { // let querys = {
pageNum: '1', // pageNum: '1',
pageSize: '999', // pageSize: '999',
department: '' // department: ''
} // }
api.getList(querys).then(({ // api.getList(querys).then(({
total // total
}) => { // }) => {
this.employAmount= total // this.employAmount= total
}) // })
}, // },
handleNodeClick(data, add) { handleNodeClick(data, add) {
if (!data.userId) { if (!data.userId) {
let querys = { let querys = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!