@@ -1,5 +1,5 @@ | |||
{ | |||
"name" : "去房智控管家", | |||
"name" : "数智工牌", | |||
"appid" : "__UNI__D88F14A", | |||
"description" : "AI营销助理", | |||
"versionName" : "1.1.0", | |||
@@ -91,7 +91,7 @@ | |||
}, | |||
"quickapp" : {}, | |||
"mp-weixin" : { | |||
"appid" : "wx8f883dca5ecc5510", | |||
"appid" : "wxe044603515ff2cb5", | |||
"setting" : { | |||
"urlCheck" : false, | |||
"es6" : true, | |||
@@ -480,7 +480,7 @@ | |||
"navigationBarTitleText": "违禁记录", | |||
"navigationBarBackgroundColor": "#FFFFFF", | |||
"navigationBarTextStyle": "black", | |||
"enablePullDownRefresh": true | |||
"enablePullDownRefresh": false | |||
} | |||
}, | |||
{ | |||
@@ -86,8 +86,18 @@ | |||
<text v-else>{{ item.speaker | toCapital }}</text> | |||
</view> | |||
</view> | |||
<view class="content"> | |||
<view v-html="item.onebest"></view> | |||
<view class="contentInfo"> | |||
<view class="info"> | |||
<text class="AudioUserName">{{ item.speaker | toCapital }}</text> | |||
<text>{{conversionTiame(item.bg/1000)}}</text> | |||
</view> | |||
<view class="contentMain"> | |||
<view class="content"> | |||
<view v-html="item.onebest"></view> | |||
</view> | |||
<image @click="clickbofang(dialog.backindex,item)" class="play" | |||
src="@/static/images/recordingManagement/play.png"></image> | |||
</view> | |||
</view> | |||
</view> | |||
</block> | |||
@@ -230,6 +240,13 @@ | |||
nextPageObj: JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容 | |||
} | |||
}, | |||
computed: { | |||
conversionTiame() { | |||
return (e) => { | |||
return this.getTime(e); | |||
} | |||
}, | |||
}, | |||
onLoad(option) { | |||
this.status = option.status; | |||
this.customerId = option.customerId; | |||
@@ -252,6 +269,13 @@ | |||
this.gituserlist() | |||
this.findTabooWords() | |||
}, | |||
onUnload() { | |||
//暂停 | |||
this.innerAudioContext.pause() | |||
// 销毁 | |||
this.innerAudioContext.destroy(); | |||
}, | |||
methods: { | |||
// 获取违禁词 | |||
@@ -284,6 +308,7 @@ | |||
// 下一条 | |||
nextValid() { | |||
this.innerAudioContext.pause() | |||
this.nextPageObj.pageSize++ | |||
this.keyWordsMatching(this.nextPageObj) | |||
}, | |||
@@ -295,6 +320,7 @@ | |||
title: '没有更早的了~' | |||
}) | |||
} else { | |||
this.innerAudioContext.pause() | |||
this.nextPageObj.pageSize-- | |||
this.keyWordsMatching(this.nextPageObj) | |||
} | |||
@@ -348,6 +374,7 @@ | |||
this.itemobj = item | |||
uni.setStorageSync("searchobj", item); //写入缓存 | |||
this.roleindex = 0; | |||
this.innerAudioContext.destroy() | |||
this.initAudioFnc() | |||
this.gituserlist() | |||
this.findTabooWords() | |||
@@ -361,8 +388,8 @@ | |||
}) | |||
}) | |||
}, | |||
// 检查是否有录音 | |||
// 设置违禁状态 | |||
setViolated(status) { | |||
@@ -372,6 +399,7 @@ | |||
invalidViolatedCause: this.reasonSrc, | |||
} | |||
this.$u.post('/customer/setViolatedStatus', params).then(res => { | |||
this.tagValidShow = false | |||
uni.showToast({ | |||
title: '标记成功', | |||
duration: 2000 | |||
@@ -379,10 +407,10 @@ | |||
this.initAudioFnc() | |||
this.gituserlist() | |||
setTimeout(() => { | |||
this.tagValidShow = false | |||
this.reasonSrc = '' | |||
}, 2000) | |||
}).catch(e => { | |||
this.tagValidShow = false | |||
uni.showToast({ | |||
title: e.message, | |||
duration: 2000 | |||
@@ -699,6 +727,39 @@ | |||
this.init(this.infos) | |||
}, | |||
//长按点击播放 | |||
clickbofang(dialog, item) { | |||
this.innerAudioContext.pause() | |||
this.dialogList.forEach(res => { | |||
res.message.forEach(asd => { | |||
asd.isshow = false; | |||
}) | |||
}) | |||
this.$forceUpdate() | |||
let platetime = item.bg; | |||
let newtime = item.bg / 1000; | |||
console.log(newtime, 'newTime') | |||
this.dialogList = [] | |||
uni.request({ | |||
url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id + | |||
"&bg=" + platetime, //仅为示例,并非真实接口地址。 | |||
method: "GET", | |||
header: { | |||
'content-type': 'application/json', | |||
'Access-Token': uni.getStorageSync('weapp_session_login_data').token | |||
}, | |||
success: (data) => { | |||
this.textindex = data.data.data.index; | |||
this.toptextindex = data.data.data.index; | |||
this.dialogList.push(this.newluyinList[data.data.data.index]) | |||
const currTimeStr = this.formatTime(newtime) | |||
console.log(currTimeStr, 'currTimeStr') | |||
this.currentTimeStr = currTimeStr | |||
this.innerAudioContext.seek(newtime); | |||
this.innerAudioContext.play(); | |||
} | |||
}) | |||
}, | |||
//录音实例 | |||
creatAudio() { | |||
@@ -1060,6 +1121,30 @@ | |||
bottom: -140rpx; | |||
} | |||
} | |||
.contentInfo { | |||
.info { | |||
color: #ccc; | |||
font-size: 18rpx; | |||
font-size: 30rpx; | |||
padding: 0 28rpx; | |||
} | |||
} | |||
.contentMain { | |||
display: flex; | |||
.content { | |||
margin-left: 0; | |||
margin-right: 30upx; | |||
} | |||
.play { | |||
width: 50rpx; | |||
height: 50rpx; | |||
margin-right: 20rpx; | |||
} | |||
} | |||
&.active { | |||
.content { | |||
@@ -1078,6 +1163,38 @@ | |||
background: #F6F6F6; | |||
color: #999999; | |||
} | |||
.contentInfo { | |||
.info { | |||
color: #ccc; | |||
font-size: 18rpx; | |||
font-size: 30rpx; | |||
padding: 0 28rpx; | |||
display: flex; | |||
flex-direction: row-reverse; | |||
.AudioUserName { | |||
margin-left: 10rpx; | |||
} | |||
} | |||
.contentMain { | |||
display: flex; | |||
flex-direction: row-reverse; | |||
align-items: center; | |||
.content { | |||
margin-left: 0; | |||
margin-right: 30upx; | |||
} | |||
.play { | |||
width: 50rpx; | |||
height: 50rpx; | |||
margin-right: 20rpx; | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} | |||
@@ -3,17 +3,17 @@ | |||
<!-- 选择器 --> | |||
<view class="boxtittab"> | |||
<view class="tabbox" @click="taptimeisshow"> | |||
接待时间<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
{{ timeText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
</view> | |||
<view class="tabbox" @click="selectshow = true"> | |||
顾问<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
{{ guwenText }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
</view> | |||
<view class="tabbox" @click="tapsoltishow"> | |||
处理状态<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
{{ steyStatus }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
</view> | |||
<view class="tabbox" @click="showIdent = true"> | |||
违禁标识<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
{{ weijinTag }}<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> | |||
</view> | |||
</view> | |||
@@ -63,7 +63,7 @@ | |||
<u-popup v-model="timeshow" mode="bottom"> | |||
<block v-for="(data, index) in activeList" :key="index"> | |||
<view class="timeview" :style="{ color: activeTotal == data.id ? '#2B6EFF' : '#333333' }" | |||
@click="tabtimetap(data.id)">{{ data.title }}</view> | |||
@click="tabtimetap(data.id, data.title)">{{ data.title }}</view> | |||
</block> | |||
</u-popup> | |||
<u-select v-model="soltishow" :list="orderBylist" @confirm="selectCallback2"></u-select> | |||
@@ -152,6 +152,14 @@ | |||
totalRecords: '', | |||
isRefresh: false, | |||
nextPageObj: {}, // 跳转详情页面的参数 | |||
// 页面文字展示内容 | |||
timeText: '接待时间', // | |||
guwenText: '顾问', // | |||
steyStatus: '处理状态', // | |||
weijinTag: '违禁标识', // 违禁标识 | |||
} | |||
}, | |||
onLoad(options) { | |||
@@ -212,6 +220,7 @@ | |||
//选择标签 | |||
selectCallback2(e) { | |||
this.orderBy = e[0].value; | |||
this.steyStatus = e[0].label; | |||
this.nextPage = 1; | |||
this.recordList = []; | |||
this.isRefresh = false; | |||
@@ -221,6 +230,7 @@ | |||
// 选择违禁标识 | |||
selectIdent(e) { | |||
this.violatedStatus = e[0].value | |||
this.weijinTag = e[0].label | |||
this.nextPage = 1; | |||
this.recordList = []; | |||
this.isRefresh = false; | |||
@@ -228,11 +238,12 @@ | |||
}, | |||
//时间选择 | |||
tabtimetap(index) { | |||
tabtimetap(index, title) { | |||
this.timeshow = false; | |||
if (index == 4) { | |||
this.totalTimeShow = true; | |||
} else { | |||
this.timeText = title | |||
this.activeTotal = index; | |||
this.staTime = ''; | |||
this.endtime = ''; | |||
@@ -246,6 +257,7 @@ | |||
totalTimeChange(e) { | |||
this.staTime = e.startDate; | |||
this.endtime = e.endDate; | |||
this.timeText = `${e.startDate}-${e.endDate}` | |||
this.activeTotal = 4; | |||
this.nextPage = 1; | |||
this.recordList = []; | |||
@@ -365,6 +377,7 @@ | |||
//顾问确认 | |||
actionSelectCallback(e) { | |||
this.screen.agentId = e[0].value; | |||
this.guwenText = e[0].label; | |||
this.recordList = []; | |||
this.nextPage = 1; | |||
this.selectshow = false; | |||
@@ -424,6 +437,9 @@ | |||
line-height: 92rpx; | |||
color: #666666; | |||
font-size: 28rpx; | |||
overflow: hidden; /* 超出一行文字自动隐藏 */ | |||
text-overflow: ellipsis; /*文字隐藏后添加省略号*/ | |||
white-space: nowrap; /*强制不换行*/ | |||
} | |||
} | |||
@@ -4,8 +4,8 @@ | |||
// const baseUrl = 'http://192.168.31.89:9090/api';// sh | |||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.92:8080/api';// 测试站 | |||
const baseUrl = 'http://127.0.0.1:8080/autoSR/api';// 本地 | |||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://127.0.0.1:8080/autoSR/api';// 本地 | |||
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.210:8080/api'; // 泽明 | |||
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | |||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||