Commit a23365bb 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 a4a192c7 fef0008e
...@@ -106,8 +106,14 @@ Page({ ...@@ -106,8 +106,14 @@ Page({
times: Math.ceil(content.length / 4) times: Math.ceil(content.length / 4)
} }
const audioBox = this.selectComponent('#audioBox'); 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) audioBox.addList(addVal,1)
const chatList = audioBox.data.list; const chatList = audioBox.data.list;
console.log(chatList)
const point = attackScript[index].main_point; const point = attackScript[index].main_point;
let main_point = '' let main_point = ''
point.forEach((i, k) => { point.forEach((i, k) => {
......
...@@ -215,6 +215,7 @@ Component({ ...@@ -215,6 +215,7 @@ Component({
}, },
//结束播放 //结束播放
stopAudio() { stopAudio() {
ctx = wx.createInnerAudioContext()
ctx.stop() ctx.stop()
}, },
//自己声音播放 //自己声音播放
...@@ -250,6 +251,7 @@ Component({ ...@@ -250,6 +251,7 @@ Component({
}) })
} }
if (isPlay) { if (isPlay) {
this.stopAudio()
this.playAudio(list.length - 1) this.playAudio(list.length - 1)
} }
}, },
......
...@@ -183,7 +183,7 @@ Component({ ...@@ -183,7 +183,7 @@ Component({
return return
} }
if(times) if(times)
this.triggerEvent('send', {result,filePath,times}) this.triggerEvent('send', {result,filePath,times:times>60?60:times})
} }
}) })
sr.on("closed", () => { sr.on("closed", () => {
......
...@@ -24,7 +24,10 @@ Component({ ...@@ -24,7 +24,10 @@ Component({
}, },
// 对话灵感内容 // 对话灵感内容
inspirationContent: { inspirationContent: {
type: String type: String,
observer: function (n) {
this.setData({content:n})
}
} }
}, },
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<view class="third loadding"></view> <view class="third loadding"></view>
</view> </view>
</view> </view>
<view wx:if="{{!inspirationContent}}" class="loadding-text">对话灵感生成中...</view> <view wx:if="{{!content}}" class="loadding-text">对话灵感生成中...</view>
</view> </view>
</block> </block>
<block wx:if="{{popType == 'script'}}"> <block wx:if="{{popType == 'script'}}">
......
...@@ -6,7 +6,7 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig ...@@ -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-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}">
<view class="record-left"> <view class="record-left">
<view class="record-title">驻店延保</view> <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 class="record-date">日期:{{item.createdDate}}</view>
</view> </view>
<view class="record-right"> <view class="record-right">
......
...@@ -37,7 +37,8 @@ Component({ ...@@ -37,7 +37,8 @@ Component({
pageNum: 1, pageNum: 1,
scrollTop: 0, scrollTop: 0,
nothing: false, nothing: false,
tempList: [] tempList: [],
selectedData:[]
}, },
/** /**
......
...@@ -28,7 +28,7 @@ Component({ ...@@ -28,7 +28,7 @@ Component({
}, },
{ {
label: '当日到店量/人', label: '当日到店量/人',
key: 'toStoreCount' key: 'enterReceptionBatch'
}, },
{ {
label: '异常占比', label: '异常占比',
......
...@@ -75,12 +75,13 @@ const domain_items = { ...@@ -75,12 +75,13 @@ const domain_items = {
uat: { uat: {
dj: "https://dj.test.glsx.com.cn", dj: "https://dj.test.glsx.com.cn",
scrm: "https://scrm.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", merchants: "https://rop-merchant.test.glsx.com.cn",
}, },
prod: { prod: {
dj: "https://dj.glsx.com.cn", dj: "https://dj.glsx.com.cn",
scrm: "https://scrm.glsx.com.cn", scrm: "https://scrm.glsx.com.cn",
AI: 'https://aipractice.glsx.com.cn',
merchants: "https://commodity.glsx.com.cn", merchants: "https://commodity.glsx.com.cn",
}, },
preRelease: { preRelease: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!