Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dcc26ca3
authored
May 21, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
7 deletions
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.js
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.wxml
packageEquity/pages/aiCheck/start/components/RecordList.wxml
utils/request/environment.js
packageEquity/pages/aiCheck/chat/chat.js
View file @
dcc26ca
...
...
@@ -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
)
=>
{
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
View file @
dcc26ca
...
...
@@ -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
)
}
},
...
...
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.js
View file @
dcc26ca
...
...
@@ -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"
,
()
=>
{
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
View file @
dcc26ca
...
...
@@ -24,7 +24,10 @@ Component({
},
// 对话灵感内容
inspirationContent
:
{
type
:
String
type
:
String
,
observer
:
function
(
n
)
{
this
.
setData
({
content
:
n
})
}
}
},
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.wxml
View file @
dcc26ca
...
...
@@ -22,15 +22,15 @@
</view>
<view class="inspiration-content">
<scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced>
<view>{{
inspirationC
ontent}}</view>
<view>{{
c
ontent}}</view>
</scroll-view>
<block wx:if="{{!
inspirationC
ontent}}">
<block wx:if="{{!
c
ontent}}">
<view class="first loadding"></view>
<view class="second loadding"></view>
<view class="third loadding"></view>
</block>
</view>
<view wx:if="{{!
inspirationC
ontent}}" class="loadding-text">对话灵感生成中...</view>
<view wx:if="{{!
c
ontent}}" class="loadding-text">对话灵感生成中...</view>
</view>
</block>
<block wx:if="{{popType == 'script'}}">
...
...
packageEquity/pages/aiCheck/start/components/RecordList.wxml
View file @
dcc26ca
...
...
@@ -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">
...
...
utils/request/environment.js
View file @
dcc26ca
...
...
@@ -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
:
'http
s
://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
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment