Parcourir la source

修改聊天记录中,顾问默认显示在右边

message
corala il y a 2 ans
Parent
révision
452832c3a1
1 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. +10
    -10
      pages/mine/details2.vue

+ 10
- 10
pages/mine/details2.vue Voir le fichier

@@ -25,7 +25,7 @@
<block v-for="(item,index) in dialog.message" :key="index">
<view class="text"
:class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}"
:data-guwen="roleindex" :data-speaker="item.speaker" :id="'dialog'+csdFileindex+'text'+item.bg">
:data-guwen="item.isShow" :data-speaker="item.speaker" :id="'dialog'+csdFileindex+'text'+item.bg">
<view class="avatar">
<view >
<image v-if="item.isShow == 0" src="https://static.quhouse.com/b11a7e1ccf914020b3ee23d3e4862637.png" mode="widthFix">
@@ -456,7 +456,7 @@
guanjianciishow: false,
tablist: [],
roleindex: 0,
roleindexbiaoji: 0,
roleindexbiaoji: -1,
recordPath: "",
customerId: "",
luyinList: [], //录音文件
@@ -1097,6 +1097,7 @@
} else {
this.tablist[data.speaker].name = this.tablist[data.speaker]
.name + "顾问";
this.roleindexbiaoji = data.speaker - 1;
this.dshfkjsdkksodofydwfkhwdfkjh = data.speaker - 1;
}
@@ -1652,8 +1653,8 @@
}

if (data.data.data.speaker == null) {
this.roleindexbiaoji = 0;
this.dshfkjsdkksodofydwfkhwdfkjh = 0;
this.roleindexbiaoji = -1;
this.dshfkjsdkksodofydwfkhwdfkjh = -1;
} else {
this.tablist[data.data.data.speaker].name = this.tablist[data.data.data.speaker]
.name + "顾问";
@@ -2401,15 +2402,14 @@
line-height: 80rpx;
display: flex;
}

.scroll-Y .text[data-guwen="2"],

// .scroll-Y .text[data-speaker="2"],

// 顾问默认在右边显示
.scroll-Y .text[data-guwen="0"],
.scroll-Y .text[data-speaker="2"],
.scroll-Y .text[data-speaker="4"],
.scroll-Y .text[data-speaker="6"] {
flex-direction: row-reverse;
text-align: right;

.contentInfo {
.info {
@@ -2440,7 +2440,7 @@

}

.scroll-Y .text[data-guwen="0"],
.scroll-Y .text[data-speaker="2"],
.scroll-Y .text[data-speaker="4"],
.scroll-Y .text[data-speaker="6"] {


Chargement…
Annuler
Enregistrer