Commit b04df3c9 by 前端

域名

1 parent 19c26a25
...@@ -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})
}
} }
}, },
......
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
</view> </view>
<view class="inspiration-content"> <view class="inspiration-content">
<scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced> <scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced>
<view>{{inspirationContent}}</view> <view>{{content}}</view>
</scroll-view> </scroll-view>
<block wx:if="{{!inspirationContent}}"> <block wx:if="{{!content}}">
<view class="first loadding"></view> <view class="first loadding"></view>
<view class="second loadding"></view> <view class="second loadding"></view>
<view class="third loadding"></view> <view class="third loadding"></view>
</block> </block>
</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">
......
...@@ -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!