Explorar el Código

处理语音长按时出现的文字bug

yun
corala hace 2 años
padre
commit
82bc46a851
Se han modificado 3 ficheros con 37 adiciones y 133 borrados
  1. +1
    -1
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  2. +33
    -129
      pages/mine/details.vue
  3. +3
    -3
      pages/mine/details2.vue

+ 1
- 1
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue Ver fichero

@@ -775,7 +775,7 @@
changanxiaoguo(item, index, i) {
this.messagelisy = [];
this.changanitem = {};
this.duihuawenjianid = "",
this.duihuawenjianid = "";
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;


+ 33
- 129
pages/mine/details.vue Ver fichero

@@ -72,9 +72,6 @@
<view v-if="jiaoseshow" @click="Addtheessence()"
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
</view>
<!-- <view @click="openwajue()"
style="font-size: 24rpx;text-align: center;margin-left: 22rpx;">挖掘话术
</view> -->
<view @click="clickbofang(dialog.backindex,item)"
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
</view>
@@ -122,53 +119,26 @@
</view>
<!-- 加入常错词 -->
<view class="zhezhao" v-if="isshow2" @tap="Cancelout"></view>
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit">
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout"
@confirm="$noMultipleClicks(Confirmtheexit)">
<view class="tian-view">
<viwe class="tian-view-t2" style="margin-left: 20rpx;">
常错词:<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
</viwe>
<view class="tian-view-t2" style="margin-left: 20rpx;">
常错词:<view class="word1">
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
</view>
</view>
<view class="tian-view">
<viwe class="tian-view-t3" style="margin-left: 20rpx;">正确词:<input class="huashu-input" v-model="reswrongword" type="text" placeholder="请输入" />
</viwe>
</view>
<!-- <view class="tian-view">
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">常错词:</viwe>
<viwe class="tian-view-t3">
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
</viwe>
<view class="tian-view-t2" style="margin-left: 20rpx;">
正确词:<view class="word1">
<u-input :auto-height="false" height="30" type="textarea" v-model="reswrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
</view>
</view>
<view class="tian-view" style="margin-bottom: 74rpx;">
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">正确词:</viwe>
<viwe class="tian-view-t3">
<input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
</viwe>
</view> -->
</u-modal>
<!-- <view class="bounced" v-if="isshow2">
<view class="tian-view">
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">常错词:</viwe>
<viwe class="tian-view-t3">
<input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
</viwe>
</view>
<view class="tian-view">
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">正确词:</viwe>
<viwe class="tian-view-t3">
<input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
</viwe>
</view>
<view class="bounced3">
<view class="bounced3-1" @tap="Cancelout">取消</view>
<view class="bounced3-2" @tap="Confirmtheexit">确认</view>
</view>
</view> -->
<!-- 加精华 -->
<view class="zhezhao" v-if="isshow3" @tap="Cancelout2"></view>
<view class="bounced" v-if="isshow3">
@@ -185,23 +155,6 @@
<view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
</view>
</view>
<!-- 加入挖掘话术 -->
<view class="zhezhao" v-if="wajueshow" @tap="CancelAdd"></view>
<u-modal v-model="wajueshow" title="新增挖掘话术" :show-cancel-button="true" @cancel="CancelAdd" @confirm="wajueConfirm(word)">
<view class="tian-view" style="margin-left: 20rpx;">
<viwe class="tian-view-t3">
话术分类:<input class="huashu-input" disabled @click="treeshow=true" v-model="wordBiaoqian" type="text" placeholder="请选择" />
</viwe>
</view>
<view class="tian-view" style="margin-left: 20rpx;">
<viwe class="tian-view-t2">
话术内容:<textarea :auto-height="true" type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" />
<!-- <input class="huashu-input" v-model="thewrongword" type="text" placeholder="请输入" /> -->
</viwe>
</view>
</u-modal>
<u-select v-model="treeshow" mode="mutil-column-auto" @confirm="confirm" :list="treelist"></u-select>

<view class="zhezhao" v-if="effective"></view>
<view class="bounced" v-if="effective">
<view class="jiajinghuatit">选择</view>
@@ -240,10 +193,14 @@
},
data() {
return {
customStyle: {
'width': '320rpx',
'font-size': '34rpx',
'border-bottom': '1px solid #ccc'
},
wajueshow: false,
wordBiaoqian: '',
wordBiaoqianId: [],
treelist: [],
treeshow: false,
recordPath: "",
customerId: "",
@@ -362,7 +319,6 @@
}
})
this.buildingID = uni.getStorageSync('buildingID').id;
this.getWordMiningList()
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
if (this.userInfo.dataCode == 6) {
this.jiaoseshow = false
@@ -404,50 +360,6 @@
}
},
methods: {
//获取画像标签
getWordMiningList() {
this.treelist = [];
this.$u.get("/corpus/findSelectedWordMiningTemplate", {
houseId: this.buildingID,
selected: 0
})
.then((res) => {
// console.log(res)
if(res.length){
res.forEach(item=>{
item.value = item.id;
item.label = item.name;
if(item.children.length){
item.children.forEach(subitem=>{
subitem.value = subitem.id;
subitem.label = subitem.name;
})
}else{
item.children=[{
value: 'default'+ item.id,
label: '--'
}]
}
})
}
this.treelist = res;
});
},
wajueConfirm(){
},
// 挖掘话术分类树的选择
confirm(e){
console.log(e)
if(e[1].label=='--'){
this.wordBiaoqian = e[0].label
this.wordBiaoqianId[0] = e[0].value
}else{
this.wordBiaoqian = e[0].label + '-' + e[1].label
this.wordBiaoqianId[0] = e[0].value
this.wordBiaoqianId[1] = e[1].value
}
},
CancelAdd(){
this.wajueshow = false
},
@@ -880,7 +792,7 @@
})
})
},
//加入错词
//加入错词
Oftenthewrongword() {
this.isNum = false;
this.reswrongword = "";
@@ -963,7 +875,7 @@
changanxiaoguo(item, index, i) {
this.messagelisy = [];
this.changanitem = {};
this.duihuawenjianid = "",
this.duihuawenjianid = "";
this.dialogList.forEach(res => {
res.message.forEach(asd => {
asd.isshow = false;
@@ -975,7 +887,6 @@
this.textItself = item.onebest;
let onebest = item.onebest;
this.thewrongword = onebest.replace(/<.*?>/ig, "");
// this.thewrongword = item.onebest;
this.messagelisy = this.dialogList[i].message
this.argtextindex1 = i;
this.argtextindex2 = index;
@@ -1284,27 +1195,20 @@
width: 100%;
font-size: 34rpx;
display: flex;
align-items: center;
color: #333;
.tian-input {
width: 384rpx;
font-size: 34rpx;
padding: 0 10rpx;
border: none;
border-bottom: 1px solid #e0e0e0;

.word {
flex: 1;
border-bottom: 1px solid #ccc;
}
}
.tian-view-t3 {
width: 100%;
display: flex;
font-size: 34rpx;
align-items: center;
.huashu-input{
width: 384rpx;
height: 60rpx;
padding: 0 10rpx;
font-size: 34rpx;
border-bottom: 1px solid #E0E0E0;

.word1 {
height: 80rpx;
flex: 1;

/deep/ textarea {
max-height: 80rpx !important;
}
}
}
}


+ 3
- 3
pages/mine/details2.vue Ver fichero

@@ -172,8 +172,6 @@
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false"
:custom-style="customStyle" placeholder="请输入" />
</view>
<!-- <u-input :auto-height="false" height="40" type="textarea" v-model="reswrongword" :border="false" :custom-style="customStyle" placeholder="请输入" /> -->
<!-- <view class="word">{{thewrongword}}</view> -->
</view>
</view>
<view class="tian-view">
@@ -265,6 +263,7 @@
<view :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="recordclick(2)">
需求挖掘率{{KeyWordsfraction||0}}%</view>
</view>
<!-- 销讲执行率 -->
<view v-if="zhixingcenterindex == 0" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
@@ -324,12 +323,14 @@


</view>
<!-- 禁忌执行 -->
<view v-if="zhixingcenterindex == 1">
<view v-if="prohibitedlist.length!=0" class="title1-12" @click="tapbadge(item)"
v-for="(item,index) in prohibitedlist" :key='index'>{{index+1}}.{{item}}</view>
<view v-if="prohibitedlist.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">暂无数据
</view>
</view>
<!-- 需求挖掘率 -->
<view v-if="zhixingcenterindex == 2" class="cenisbox">
<view
style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
@@ -584,7 +585,6 @@
zhixingcenterindex: 0,
prohibitedlist: [],
guanjianciishow: false,
Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6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cW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",
tablist: [],
roleindex: 0, // 当前选中的角色标记点(旧版本的)
roleSelectArr: [0], // 当前选中的角色标记点


Cargando…
Cancelar
Guardar