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 a23365bb
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
a4a192c7
fef0008e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 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
packageEquity/pages/employeeInspection/components/StoreSelectPopup/StoreSelectPopup.js
packageEquity/pages/employeeInspection/components/contentItem/contentItem.js
utils/request/environment.js
packageEquity/pages/aiCheck/chat/chat.js
View file @
a23365b
...
@@ -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
)
=>
{
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
View file @
a23365b
...
@@ -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
)
}
}
},
},
...
...
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.js
View file @
a23365b
...
@@ -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"
,
()
=>
{
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
View file @
a23365b
...
@@ -24,7 +24,10 @@ Component({
...
@@ -24,7 +24,10 @@ Component({
},
},
// 对话灵感内容
// 对话灵感内容
inspirationContent
:
{
inspirationContent
:
{
type
:
String
type
:
String
,
observer
:
function
(
n
)
{
this
.
setData
({
content
:
n
})
}
}
}
},
},
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.wxml
View file @
a23365b
...
@@ -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="{{!
inspirationC
ontent}}" class="loadding-text">对话灵感生成中...</view>
<view wx:if="{{!
c
ontent}}" class="loadding-text">对话灵感生成中...</view>
</view>
</view>
</block>
</block>
<block wx:if="{{popType == 'script'}}">
<block wx:if="{{popType == 'script'}}">
...
...
packageEquity/pages/aiCheck/start/components/RecordList.wxml
View file @
a23365b
...
@@ -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">
...
...
packageEquity/pages/employeeInspection/components/StoreSelectPopup/StoreSelectPopup.js
View file @
a23365b
...
@@ -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
:[]
},
},
/**
/**
...
...
packageEquity/pages/employeeInspection/components/contentItem/contentItem.js
View file @
a23365b
...
@@ -28,7 +28,7 @@ Component({
...
@@ -28,7 +28,7 @@ Component({
},
},
{
{
label
:
'当日到店量/人'
,
label
:
'当日到店量/人'
,
key
:
'
toStoreCount
'
key
:
'
enterReceptionBatch
'
},
},
{
{
label
:
'异常占比'
,
label
:
'异常占比'
,
...
...
utils/request/environment.js
View file @
a23365b
...
@@ -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
:
'http
s
://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
:
{
...
...
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