剧本预览代码调整
This commit is contained in:
parent
77a8fd7c41
commit
4fec468885
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="userBubble" @click="playAudio('audio'+index)">
|
<div class="userBubble" @click="playAudio('audio'+index)">
|
||||||
<div class="userMessage">
|
<div class="userMessage">
|
||||||
<span v-if="chatContent.group||!chatContent.member.robot">@{{ covertName(chatContent.targetName) }}</span>
|
<span v-if="chatContent.group||!(chatContent.member && chatContent.member.robot)">@{{ covertName(chatContent.targetName) }}</span>
|
||||||
<span class="el-icon-video-play playicon" />
|
<span class="el-icon-video-play playicon" />
|
||||||
<span class="messageText">{{ chatContent.message }}</span>
|
<span class="messageText">{{ chatContent.message }}</span>
|
||||||
<audio :id="'audio'+index" :src="baseUrl+chatContent.src" style="display:none" />
|
<audio :id="'audio'+index" :src="baseUrl+chatContent.src" style="display:none" />
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
v-for="member in memberList"
|
v-for="member in memberList"
|
||||||
:key="member.id"
|
:key="member.id"
|
||||||
:class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'"
|
:class="member.online?'each-chat-member':'each-chat-member each-chat-member-outline'"
|
||||||
|
@click="createConversition(member)"
|
||||||
>{{ member.memberName }}</div>
|
>{{ member.memberName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {getSimulationMembersNew} from '@/api/chat';
|
import {getSimulationMembersNew, getSimulationConversationIdNew} from '@/api/chat';
|
||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
export default {
|
export default {
|
||||||
@ -32,6 +33,17 @@ export default {
|
|||||||
this.getSimulationMembers();
|
this.getSimulationMembers();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
createConversition(member) {
|
||||||
|
if (member.userId != this.$store.state.user.id && member.online) {
|
||||||
|
getSimulationConversationIdNew({ memberId: member.id }, this.group).then(resp => {
|
||||||
|
if (resp.data) {
|
||||||
|
const data = resp.data;
|
||||||
|
this.$emit('addCoversition', {data:data, headerTitle:member.memberName});
|
||||||
|
this.showMembers = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
setMemberStatus(memberInfo) {
|
setMemberStatus(memberInfo) {
|
||||||
this.getSimulationMembers();
|
this.getSimulationMembers();
|
||||||
// memberInfo.forEach(member=>{
|
// memberInfo.forEach(member=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user