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 b14fc02a
authored
Jul 11, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ui
1 parent
6ded6ca8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
100 additions
and
12 deletions
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/chat/chat.sass
packageEquity/pages/aiCheck/chat/chat.wxml
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.sass
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.wxml
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.sass
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.wxml
packageEquity/pages/aiCheck/chat/chat.js
View file @
b14fc02
...
@@ -40,7 +40,7 @@ Page({
...
@@ -40,7 +40,7 @@ Page({
round
:
0
,
//对练的轮次,用于记录当前对话是第几轮对练。
round
:
0
,
//对练的轮次,用于记录当前对话是第几轮对练。
step
:
"reception"
,
// 当前对练的环节,可选值为"reception"(接待)、"defense"(攻防)、"referral"(转介)、"over"(结束),用于指示当前处理的环节。
step
:
"reception"
,
// 当前对练的环节,可选值为"reception"(接待)、"defense"(攻防)、"referral"(转介)、"over"(结束),用于指示当前处理的环节。
navStyle
:
navStyle
:
"background-
image: linear-gradient(0deg, #FAFAFA 0%, #EBF3FF 100%);
"
,
"background-
color: transparent
"
,
showChat
:
false
,
// false 展示介绍页,true展示聊天页
showChat
:
false
,
// false 展示介绍页,true展示聊天页
showScenePopup
:
false
,
// 场弹窗
showScenePopup
:
false
,
// 场弹窗
showSpeechPopup
:
false
,
// 语音弹窗
showSpeechPopup
:
false
,
// 语音弹窗
...
...
packageEquity/pages/aiCheck/chat/chat.sass
View file @
b14fc02
/* packageEquity/pages/aiCheck/chat/chat.wxss */
/* packageEquity/pages/aiCheck/chat/chat.wxss */
page
{
page
{
background-color
:
#
fafafa
;
background-color
:
#
F7F8FA
;
}
}
.font-b
{
.font-b
{
color
:
#3989FE
;
color
:
#3989FE
;
}
}
.bg-box
{
position
:fixed
;
inset
:
0
;
z-index
:
-1
;
width
:
750rpx
;
height
:
640rpx
;
background
:
linear-gradient
(
to
bottom
,
#DEF6FC
0%
,
#E3EAFF
27%
,
#D6E6FF
71%
,
#F7F8FA
96%
)
;
}
.chat-bar
.navigation-bar
{
.chat-bar
.navigation-bar
{
position
:
relative
;
position
:
relative
;
box-shadow
:
none
;
box-shadow
:
none
;
...
@@ -60,6 +68,35 @@ page {
...
@@ -60,6 +68,35 @@ page {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
16rpx
24rpx
;
padding
:
16rpx
24rpx
;
}
}
.operation
{
margin-top
:
12rpx
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#3989FE
;
background
:
#FFFFFF
;
padding
:
20rpx
24rpx
;
max-width
:
520rpx
;
.operation-top
{
width
:
180rpx
;
height
:
56rpx
;
background
:
#EFF5FF
;
border-radius
:
28rpx
;
display
:flex
;
align-items
:center
;
justify-content
:
center
;
}
.suggest-icon
{
width
:
32rpx
;
height
:
32rpx
;
margin-right
:
12rpx
;
}
.content
{
margin-top
:
12rpx
;
font-size
:
30rpx
;
color
:
#333333
;
line-height
:
44rpx
;
}
}
}
}
.chat-right
{
.chat-right
{
display
:
flex
;
display
:
flex
;
...
@@ -167,7 +204,7 @@ page {
...
@@ -167,7 +204,7 @@ page {
height
:
32rpx
;
height
:
32rpx
;
}
}
&
.active
{
&
.active
{
background-
color
:
#3989FE
;
background-
image
:
linear-gradient
(
90deg
,
#4D53FF
0%
,
#389AFF
100%
)
;
}
}
}
}
.speak-btn
{
.speak-btn
{
...
@@ -175,11 +212,11 @@ page {
...
@@ -175,11 +212,11 @@ page {
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
flex
:
1
;
flex
:
1
;
background
:
#3989FE
;
background
-image
:
linear-gradient
(
95deg
,
#E1F7FC
0%
,
#E8F0FF
27%
,
#E8F1FF
65%
,
#F0EBFF
100%
)
;
border-radius
:
486rpx
;
border-radius
:
486rpx
;
height
:
80rpx
;
height
:
80rpx
;
// line-height: 80rpx;
// line-height: 80rpx;
color
:
#
fff
;
color
:
#
3275FA
;
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
500
;
font-weight
:
500
;
.icon
{
.icon
{
...
...
packageEquity/pages/aiCheck/chat/chat.wxml
View file @
b14fc02
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
</view>
</view>
</view>
</view>
</navigation-bar>
</navigation-bar>
<view class="bg-box"></view>
<view class="chat-section">
<view class="chat-section">
<view class="chat-list">
<view class="chat-list">
<scroll-view scroll-y="true" scroll-x="false" style="height:100%" scroll-top="{{scrollTop}}">
<scroll-view scroll-y="true" scroll-x="false" style="height:100%" scroll-top="{{scrollTop}}">
...
@@ -17,6 +18,12 @@
...
@@ -17,6 +18,12 @@
<image class="avatar-icon" src="{{avatar}}"></image>
<image class="avatar-icon" src="{{avatar}}"></image>
<view class="chat-box">
<view class="chat-box">
<view class="content-box">你选择的客户类型:<text class="font-b">{{roleName}}</text></view>
<view class="content-box">你选择的客户类型:<text class="font-b">{{roleName}}</text></view>
<view class="operation">
<view class="operation-top"> <gl-image class="suggest-icon" src="/aiCheck/suggest-icon.png"></gl-image>
改进建议</view>
<view class="content">此环节模拟交付专员把客户介绍给驻店专员,建议使用敬语,尊称客户,恭喜客户提车,主动向客户介绍工作环节并进行自我介绍!</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -25,7 +32,7 @@
...
@@ -25,7 +32,7 @@
<view class="control-box" style="{{controlBoxStyle}}">
<view class="control-box" style="{{controlBoxStyle}}">
<view class="inspiration-btn {{popType == 'inspiration' ? 'active' : ''}}" bindtap="openPopup" data-type="inspiration"><gl-image class="icon" src="/aiCheck/{{popType == 'inspiration' ? 'inspiration-icon-white' : 'inspiration-icon'}}.png"></gl-image></view>
<view class="inspiration-btn {{popType == 'inspiration' ? 'active' : ''}}" bindtap="openPopup" data-type="inspiration"><gl-image class="icon" src="/aiCheck/{{popType == 'inspiration' ? 'inspiration-icon-white' : 'inspiration-icon'}}.png"></gl-image></view>
<view class="inspiration-btn {{popType == 'script' ? 'active' : ''}}" bindtap="openPopup" data-type="script"><gl-image class="icon" src="/aiCheck/{{popType == 'script' ? 'script-icon-white' : 'script-icon'}}.png"></gl-image></view>
<view class="inspiration-btn {{popType == 'script' ? 'active' : ''}}" bindtap="openPopup" data-type="script"><gl-image class="icon" src="/aiCheck/{{popType == 'script' ? 'script-icon-white' : 'script-icon'}}.png"></gl-image></view>
<view class="speak-btn" bindtap="handleSpeak"><gl-image class="icon" src="/aiCheck/
tape
-icon.png"></gl-image>点击说话</view>
<view class="speak-btn" bindtap="handleSpeak"><gl-image class="icon" src="/aiCheck/
speech
-icon.png"></gl-image>点击说话</view>
</view>
</view>
</view>
</view>
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.js
View file @
b14fc02
...
@@ -42,7 +42,12 @@ Component({
...
@@ -42,7 +42,12 @@ Component({
*/
*/
data
:
{
data
:
{
status
:
'end'
,
status
:
'end'
,
list
:
[],
list
:
[{
content
:
'您好,我是您的专属客户经理。这边推荐问界M7。'
,
role
:
2
,
times
:
20
,
show
:
true
}],
audioIndex
:
''
,
audioIndex
:
''
,
ttsStart
:
false
,
ttsStart
:
false
,
ttsText
:
"是的发生大客户"
ttsText
:
"是的发生大客户"
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.sass
View file @
b14fc02
...
@@ -57,6 +57,25 @@
...
@@ -57,6 +57,25 @@
border-radius: 16rpx;
border-radius: 16rpx;
padding: 24rpx 28rpx;
padding: 24rpx 28rpx;
margin-top: 24rpx;
margin-top: 24rpx;
.chat-aspect {
display:grid;
background-image: linear-gradient(95deg, #E1F7FC 0%, #F3F7FF 27%, #E8F1FF 65%, #F7F2FF 100%);
border-radius
:
12rpx
;
padding
:
6rpx
0rpx
;
margin-bottom
:
20rpx
;
grid-template-columns
:
repeat
(
4
,
1fr
)
;
.aspect-item
{
text-align
:center
;
.aspect-name
{
font-size
:
24rpx
;
color
:
#575C63
;
}
.aspect-result
{
font-size
:
26rpx
;
color
:
#FF8D1A
;
}
}
}
.title
{
.title
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -97,7 +116,7 @@
...
@@ -97,7 +116,7 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
208rpx
;
width
:
208rpx
;
height
:
74rpx
;
height
:
74rpx
;
background
:
#3989FE
;
background
-image
:
linear-gradient
(
90deg
,
#4D53FF
0%
,
#389AFF
100%
)
;
border-radius
:
37rpx
37rpx
0
37rpx
;
border-radius
:
37rpx
37rpx
0
37rpx
;
margin-left
:
auto
;
margin-left
:
auto
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
...
...
packageEquity/pages/aiCheck/components/AudioTts/AudioTts.wxml
View file @
b14fc02
...
@@ -51,6 +51,24 @@
...
@@ -51,6 +51,24 @@
</view>
</view>
<block wx:else>
<block wx:else>
<view class="chat-item-right-text">
<view class="chat-item-right-text">
<view class="chat-aspect">
<view class="aspect-item">
<view class="aspect-name">语速</view>
<view class="aspect-result">适中</view>
</view>
<view class="aspect-item">
<view class="aspect-name">语速</view>
<view class="aspect-result">适中</view>
</view>
<view class="aspect-item">
<view class="aspect-name">语速</view>
<view class="aspect-result">适中</view>
</view>
<view class="aspect-item">
<view class="aspect-name">语速</view>
<view class="aspect-result">适中</view>
</view>
</view>
<view class="suggest">
<view class="suggest">
<view class="title">
<view class="title">
<gl-image class="suggest-icon" src="/aiCheck/suggest-icon.png"></gl-image>
<gl-image class="suggest-icon" src="/aiCheck/suggest-icon.png"></gl-image>
...
...
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.sass
View file @
b14fc02
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
}
}
.loading-item
{
.loading-item
{
width
:
10
rpx
;
width
:
8
rpx
;
height
:
20rpx
;
height
:
20rpx
;
border-radius
:
5rpx
;
border-radius
:
5rpx
;
margin-right
:
10rpx
;
margin-right
:
10rpx
;
...
@@ -137,7 +137,9 @@
...
@@ -137,7 +137,9 @@
.loading-item
:nth-of-type
(
3n
)
{
.loading-item
:nth-of-type
(
3n
)
{
animation-delay
:
.38s
;
animation-delay
:
.38s
;
}
}
.loading-item
:nth-of-type
(
4n
)
{
animation-delay
:
.28s
;
}
@keyframes
audio-eff
{
@keyframes
audio-eff
{
0
%
{
0
%
{
height
:
0
;
height
:
0
;
...
@@ -184,7 +186,7 @@
...
@@ -184,7 +186,7 @@
width
:
478rpx
;
width
:
478rpx
;
height
:
80rpx
;
height
:
80rpx
;
line-height
:
80rpx
;
line-height
:
80rpx
;
background
:
#3989FE
;
background
-image
:
linear-gradient
(
90deg
,
#4D53FF
0%
,
#389AFF
100%
)
;
border-radius
:
486rpx
;
border-radius
:
486rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
...
...
packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.wxml
View file @
b14fc02
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</view>
</view>
<view class="inspiration-line" wx:if="{{content}}">用自己的话说出来效果更佳</view>
<view class="inspiration-line" wx:if="{{content}}">用自己的话说出来效果更佳</view>
<view class="loading-box">
<view class="loading-box">
<view class="loading-item" wx:for="{{
36
}}">
<view class="loading-item" wx:for="{{
50
}}">
</view>
</view>
</view>
</view>
<view class="time-box">
<view class="time-box">
...
...
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