Commit dcc26ca3 by 前端

Merge branch 'AI_V1.0.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutique-…

…work-wechat into AI_V1.0.0
2 parents 3d4bc2c0 1c1cdc9c
......@@ -106,8 +106,14 @@ Page({
times: Math.ceil(content.length / 4)
}
const audioBox = this.selectComponent('#audioBox');
const list = audioBox.data.list
if(list[list.length-1] && !list[list.length-1].filePath) {
wx.$util.showToast('AI还未识别')
return
}
audioBox.addList(addVal,1)
const chatList = audioBox.data.list;
console.log(chatList)
const point = attackScript[index].main_point;
let main_point = ''
point.forEach((i, k) => {
......
......@@ -215,6 +215,7 @@ Component({
},
//结束播放
stopAudio() {
ctx = wx.createInnerAudioContext()
ctx.stop()
},
//自己声音播放
......@@ -250,6 +251,7 @@ Component({
})
}
if (isPlay) {
this.stopAudio()
this.playAudio(list.length - 1)
}
},
......
......@@ -183,7 +183,7 @@ Component({
return
}
if(times)
this.triggerEvent('send', {result,filePath,times})
this.triggerEvent('send', {result,filePath,times:times>60?60:times})
}
})
sr.on("closed", () => {
......
......@@ -24,7 +24,10 @@ Component({
},
// 对话灵感内容
inspirationContent: {
type: String
type: String,
observer: function (n) {
this.setData({content:n})
}
}
},
......
......@@ -22,15 +22,15 @@
</view>
<view class="inspiration-content">
<scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced>
<view>{{inspirationContent}}</view>
<view>{{content}}</view>
</scroll-view>
<block wx:if="{{!inspirationContent}}">
<block wx:if="{{!content}}">
<view class="first loadding"></view>
<view class="second loadding"></view>
<view class="third loadding"></view>
</block>
</view>
<view wx:if="{{!inspirationContent}}" class="loadding-text">对话灵感生成中...</view>
<view wx:if="{{!content}}" class="loadding-text">对话灵感生成中...</view>
</view>
</block>
<block wx:if="{{popType == 'script'}}">
......
......@@ -6,7 +6,7 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig
<view class="record-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}">
<view class="record-left">
<view class="record-title">驻店延保</view>
<view class="record-time">练习{{item.checkResult.duration}}</view>
<view class="record-time" wx:if="{{item.checkResult}}">练习{{item.checkResult.duration}}</view>
<view class="record-date">日期:{{item.createdDate}}</view>
</view>
<view class="record-right">
......
......@@ -75,12 +75,13 @@ const domain_items = {
uat: {
dj: "https://dj.test.glsx.com.cn",
scrm: "https://scrm.test.glsx.com.cn",
AI: 'http://aipractice.test.glsx.com.cn',
AI: 'https://aipractice.test.glsx.com.cn',
merchants: "https://rop-merchant.test.glsx.com.cn",
},
prod: {
dj: "https://dj.glsx.com.cn",
scrm: "https://scrm.glsx.com.cn",
AI: 'https://aipractice.glsx.com.cn',
merchants: "https://commodity.glsx.com.cn",
},
preRelease: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!