会话群调整
This commit is contained in:
parent
3b21f72e38
commit
2d2f3e9fdc
@ -95,11 +95,19 @@ export default {
|
|||||||
},
|
},
|
||||||
trainingSwitch() {
|
trainingSwitch() {
|
||||||
return this.$store.state.trainingNew.trainingSwitch;
|
return this.$store.state.trainingNew.trainingSwitch;
|
||||||
|
},
|
||||||
|
lastMessage() {
|
||||||
|
return this.messageList[this.messageList.length - 1];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$store.state.training.domConfig': function(val) {
|
'$store.state.training.domConfig': function(val) {
|
||||||
this.trainingDesign = val.trainingDesign;
|
this.trainingDesign = val.trainingDesign;
|
||||||
|
},
|
||||||
|
lastMessage(newVal, oldVal) {
|
||||||
|
if (newVal.id != oldVal.id) {
|
||||||
|
this.scrollTop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="middleMain">
|
<div class="middleMain">
|
||||||
<div v-for="(item, index) in groupList" :key="index" class="row pointer" :class="{active: item.id === id}" @click="groupClick(item)">
|
<div v-for="(item, index) in groupList" :key="index" class="row pointer" :class="{active: item.id === id}" @click="groupClick(item)">
|
||||||
<div class="groupIcon"><img :src="getImgUrl(item.imageUrl)" alt=""></div>
|
<div v-show="item.imageUrl" class="groupIcon"><img :src="getImgUrl(item.imageUrl)" alt=""></div>
|
||||||
<div class="groupInfo">
|
<div class="groupInfo">
|
||||||
<div class="text"><b>{{ item.name }}</b></div>
|
<div class="text"><b>{{ item.name }}</b></div>
|
||||||
<div class="text">{{ getLastMsg(item.messageList) }}</div>
|
<div class="text">{{ getLastMsg(item.messageList) }}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user