Commit 61163888 by wangzhihui12

Merge branch 'SAAS+V4.42' of http://192.168.3.233:8090/saas_plus/dj-car-boutique…

…-work-wechat into SAAS+V4.42
2 parents 53795f48 b14fc02a
......@@ -40,7 +40,7 @@ Page({
round: 0, //对练的轮次,用于记录当前对话是第几轮对练。
step: "reception", // 当前对练的环节,可选值为"reception"(接待)、"defense"(攻防)、"referral"(转介)、"over"(结束),用于指示当前处理的环节。
navStyle:
"background-image: linear-gradient(0deg, #FAFAFA 0%, #EBF3FF 100%);",
"background-color: transparent",
showChat: false, // false 展示介绍页,true展示聊天页
showScenePopup: false, // 场弹窗
showSpeechPopup: false, // 语音弹窗
......
/* packageEquity/pages/aiCheck/chat/chat.wxss */
page {
background-color: #fafafa;
background-color: #F7F8FA;
}
.font-b {
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 {
position: relative;
box-shadow: none;
......@@ -60,6 +68,35 @@ page {
box-sizing: border-box;
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 {
display: flex;
......@@ -167,7 +204,7 @@ page {
height: 32rpx;
}
&.active {
background-color: #3989FE;
background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
}
}
.speak-btn {
......@@ -175,11 +212,11 @@ page {
align-items: center;
justify-content: center;
flex: 1;
background: #3989FE;
background-image: linear-gradient(95deg, #E1F7FC 0%, #E8F0FF 27%, #E8F1FF 65%, #F0EBFF 100%);
border-radius: 486rpx;
height: 80rpx;
// line-height: 80rpx;
color: #fff;
color: #3275FA;
font-size: 28rpx;
font-weight: 500;
.icon {
......
......@@ -9,6 +9,7 @@
</view>
</view>
</navigation-bar>
<view class="bg-box"></view>
<view class="chat-section">
<view class="chat-list">
<scroll-view scroll-y="true" scroll-x="false" style="height:100%" scroll-top="{{scrollTop}}">
......@@ -17,6 +18,12 @@
<image class="avatar-icon" src="{{avatar}}"></image>
<view class="chat-box">
<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>
......@@ -25,7 +32,7 @@
<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 == '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>
......
......@@ -42,7 +42,12 @@ Component({
*/
data: {
status: 'end',
list: [],
list: [{
content: '您好,我是您的专属客户经理。这边推荐问界M7。',
role: 2,
times:20,
show:true
}],
audioIndex: '',
ttsStart: false,
ttsText: "是的发生大客户"
......
......@@ -57,6 +57,25 @@
border-radius: 16rpx;
padding: 24rpx 28rpx;
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 {
display: flex;
align-items: center;
......@@ -97,7 +116,7 @@
box-sizing: border-box;
width: 208rpx;
height: 74rpx;
background: #3989FE;
background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
border-radius: 37rpx 37rpx 0 37rpx;
margin-left: auto;
justify-content: flex-end;
......
......@@ -51,6 +51,24 @@
</view>
<block wx:else>
<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="title">
<gl-image class="suggest-icon" src="/aiCheck/suggest-icon.png"></gl-image>
......
......@@ -52,7 +52,7 @@
}
.loading-item {
width: 10rpx;
width: 8rpx;
height: 20rpx;
border-radius: 5rpx;
margin-right: 10rpx;
......@@ -137,7 +137,9 @@
.loading-item:nth-of-type(3n) {
animation-delay: .38s;
}
.loading-item:nth-of-type(4n) {
animation-delay: .28s;
}
@keyframes audio-eff {
0% {
height: 0;
......@@ -184,7 +186,7 @@
width: 478rpx;
height: 80rpx;
line-height: 80rpx;
background: #3989FE;
background-image: linear-gradient(90deg, #4D53FF 0%, #389AFF 100%);
border-radius: 486rpx;
font-size: 28rpx;
color: #FFFFFF;
......
......@@ -21,7 +21,7 @@
</view>
<view class="inspiration-line" wx:if="{{content}}">用自己的话说出来效果更佳</view>
<view class="loading-box">
<view class="loading-item" wx:for="{{36}}">
<view class="loading-item" wx:for="{{50}}">
</view>
</view>
<view class="time-box">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!