Commit 9ae7e16a by zhangxw

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 5f75a72e fc2652d8
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 4;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -58,7 +58,8 @@ export default {
data,
[],
"/router/get/voice/config/1.0.0",
"AI"
"AI",
false
);
},
getSensitive(data = {}) {
......@@ -67,7 +68,8 @@ export default {
data,
[],
"/router/is/sensitive/1.0.0",
"AI"
"AI",
false
);
},
//同义化话术
......@@ -77,7 +79,8 @@ export default {
data,
[],
"/router/similar/phrases/1.0.0",
"AI"
"AI",
false
);
},
......@@ -88,7 +91,8 @@ export default {
data,
[],
"/router/get/voice/to/text/1.0.0",
"AI"
"AI",
false
);
},
/**
......
......@@ -76,12 +76,17 @@ Page({
if (list.length == 0) {
return this.back();
}
let isJump = true;
let isJump = true,Sentences = [];
list.forEach((i) => {
if (i.role == 2) {
isJump = false;
Sentences = [...Sentences, ...i.Sentences?i.Sentences:[]]
}
});
if(Sentences.length == 0) {
wx.$util.showToast("对话内容太少");
return;
}
if (isJump) {
return this.back();
}
......@@ -95,10 +100,12 @@ Page({
batch_id,
roleType,
step,
sparringTaskId
sparringTaskId,
entry
} = this.data;
console.log(entry)
wx.redirectTo({
url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&history_message=${history_message}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}`,
url: `/packageEquity/pages/aiCheck/result/result?roleType=${roleType}&duration=${duration}&history_message=${history_message}&batch_id=${batch_id}&sparringLink=${step}&sparringTaskId=${sparringTaskId}&entry=${entry}`,
});
},
toBottom() {
......@@ -387,7 +394,9 @@ Page({
content: ""
};
const audioBox = this.selectComponent("#audioBox");
audioBox.addList(addVal);
if(retryCount == 0) {
audioBox.addList(addVal);
}
const {
uuid
} = wx.$util.getUserInfo();
......@@ -531,7 +540,8 @@ Page({
roleType: type,
stage,
roleName: name,
isDemo
isDemo,
entry
} = options;
let params = {
roleType: type,
......@@ -540,6 +550,10 @@ Page({
params = {
roleName: name.replace('客户',''),
};
this.setData({entry:'other'})
}
if(entry == 'other') {
this.setData({entry:'other'})
}
const roleInfo = await carLifeApi.sparringRole({
currentPage: 1,
......
......@@ -162,16 +162,19 @@
height: 14rpx;
border-radius: 50%;
margin-right: 24rpx;
animation: load 1s ease-in infinite;
&.first {
animation-delay:0.13s;
background-color: rgba(57, 137, 254, 0.3);
}
&.second {
animation-delay:0.26s;
background-color: rgba(57, 137, 254, 0.5);
}
&.third {
animation-delay:0.39s;
background-color: rgba(57, 137, 254, 0.7);
}
}
......@@ -180,4 +183,12 @@
margin-top: 16rpx;
font-size: 28rpx;
color: #999999;
}
@keyframes load {
0% {
opacity: 1;
}
100% {
opacity: 0.2;
}
}
\ No newline at end of file
......@@ -28,12 +28,17 @@ Page({
},
again() {
const {
id
id,
entry
} = this.data;
if (id) {
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
} else if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
} else {
wx.navigateBack({
delta: 2,
......@@ -46,6 +51,13 @@ Page({
backHome() {
const pages = getCurrentPages();
const prevPage = pages[pages.length - 3];
const {entry} = this.data
if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/start/start`,
});
return
}
if (prevPage.route == "packageEquity/pages/aiCheck/start/start") {
wx.navigateBack({
delta: 2,
......@@ -67,7 +79,8 @@ Page({
reportItem,
currentItem,
id,
avatar
avatar,
entry
}) => {
console.log(currentItem)
// this.setTitle(0);
......@@ -80,6 +93,7 @@ Page({
id,
reportItems,
avatar,
entry,
title: currentItem.reportItem
});
})
......
......@@ -110,19 +110,32 @@ Page({
},
again() {
const {
id
id,
entry
} = this.data;
if (id) {
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
} else {
} else if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`,
});
}else {
wx.$router.back();
}
},
backHome() {
const pages = getCurrentPages();
const prevPage = pages[pages.length - 2];
const {entry} = this.data
console.log(entry,'entry')
if(entry == 'other'){
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/start/start`,
});
return
}
if (prevPage.route == "packageEquity/pages/aiCheck/start/start") {
wx.navigateBack({
delta: 1,
......@@ -176,9 +189,11 @@ Page({
id,
sparringLink,
sparringTaskId,
entry
} = options;
this.setData({
id,
entry,
roleType,
sparringLink,
sparringTaskId,
......@@ -537,12 +552,16 @@ Page({
} = e.currentTarget.dataset, {
reportItem,
avatar,
score,
id,
entry
} = this.data
if(score == null) return
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem,
avatar,
id,
entry,
currentItem: item
})
},
......
......@@ -208,19 +208,22 @@ page {
margin: 0 auto;
position: relative;
overflow: hidden;
@keyframes rotateArc {
100% {
transform:translate(-50%,-50%) rotate(0deg);
}
transform: translate(-50%, -50%) rotate(0deg);
}
}
.loading-box {
width: 300rpx;
height: 300rpx;
transform:translate(-50%,-50%) rotate(360deg);
transform: translate(-50%, -50%) rotate(360deg);
animation: rotateArc 45s infinite linear;
position: absolute;
left: 50%;
top: 50%;
&::before {
position: absolute;
content: "";
......@@ -255,11 +258,13 @@ page {
animation: rotate 3s infinite ease-in-out;
}
}
@keyframes rotate {
100% {
transform: rotate(0deg);
transform: rotate(0deg);
}
}
}
.canvas {
width: 100%;
height: 100%;
......@@ -297,15 +302,6 @@ page {
margin-top: 24rpx;
height: 448rpx;
.score-bg {
width: 432rpx;
height: 432rpx;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
z-index: -1;
}
.categories {
.title {
......@@ -325,6 +321,7 @@ page {
transform: rotate(-45deg);
}
}
}
.categories-1 {
......@@ -359,11 +356,25 @@ page {
}
}
.pending {
.title {
color: #999EA8 !important;
&::after {
display: none !important;
}
}
&-text {
font-size: 22rpx;
color: #3275FA;
}
}
.type-4 {
.canvas {
// transform: scale(1.45) translateY(5%);
transform: scale(1.45) rotate(-45deg);
transform-origin:center center;
transform-origin: center center;
}
.categories-1 {
......
......@@ -11,7 +11,7 @@
</navigation-bar>
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight + footerHeight}}px);" wx:if="{{tabId == 1}}">
<block wx:if="{{duration}}">
<view class="canvas-box type-{{reportItem.length}}">
<view class="canvas-box type-{{reportItem.length}} {{score == null?'pending':''}}">
<view style="position: relative;">
<view class="canvas-view">
<block wx:if="{{radarImg}}">
......@@ -26,8 +26,13 @@
<block wx:for="{{reportItem}}" wx:key="index">
<view class="categories categories-{{index + 1}}" bindtap="jump" data-item="{{item}}">
<view class="title">{{item.reportItem}}</view>
<block wx:for="{{item.starList}}" wx:key="i" wx:for-item="i">
<gl-image class="star" src="/aiCheck/star-{{i}}.png"></gl-image>
<block wx:if="{{score == null && item.reportItem == '服务态度'}}">
<view class="pending-text">分析中...</view>
</block>
<block wx:else>
<block wx:for="{{item.starList}}" wx:key="i" wx:for-item="i">
<gl-image class="star" src="/aiCheck/star-{{i}}.png"></gl-image>
</block>
</block>
</view>
</block>
......@@ -119,7 +124,7 @@
</view>
<view class="line"></view>
<view class="polish">
<view class="title">
<view class="title">
<gl-image class="suggest-icon" src="/aiCheck/polish-icon.png"></gl-image>
润色表达
</view>
......@@ -136,7 +141,7 @@
<block wx:if="{{tabId == 1}}">
<view class="footer" id="footer">
<view class="back-home" bindtap="backHome">返回首页</view>
<view class="again" bindtap="again">再来一次</view>
</view>
<view class="back-home" bindtap="backHome">返回首页</view>
<view class="again" bindtap="again">再来一次</view>
</view>
</block>
\ No newline at end of file
......@@ -93,12 +93,12 @@ Page({
})
},
jump() {
const {selectedIndex,customeTypeList,stepName, step, linkChainList,isDemo} = this.data
const {selectedIndex,customeTypeList,stepName, step, linkChainList,isDemo,entry} = this.data
const { roleType } = customeTypeList[selectedIndex]
const { suggest } = linkChainList.find(item => item.type == step)
console.log(roleType, stepName, suggest,isDemo)
wx.navigateTo({
url: `/packageEquity/pages/aiCheck/chat/chat?roleType=${roleType}&stage=${stepName}&suggest=${suggest}&isDemo=${isDemo}`
url: `/packageEquity/pages/aiCheck/chat/chat?roleType=${roleType}&stage=${stepName}&suggest=${suggest}&isDemo=${isDemo}&entry=${entry}`
})
this.setData({
show: false
......@@ -127,7 +127,8 @@ Page({
this.setData({
stepName: findChain.name,
step: findChain.type,
show:true
show:true,
entry:'other'
})
}
const {
......
......@@ -46,10 +46,12 @@ Component({
const {
dialogueList
} = this.data, {
paused
} = this.innerAudioContext, {
mergedOffset
} = this.setProgress(),
item = dialogueList.find(e => e.mergedOffset == mergedOffset)
this.setData({
if (!paused) this.setData({
isPlayIng: true
})
if (this.data.isScrollling) return
......
......@@ -100,13 +100,18 @@
color: #fff;
}
}
.hide-margin{
margin-bottom: 0;
}
.active {
background: #F0F6FF;
.appeal-btn {
display: block;
}
.text{
font-weight: 500;
}
}
.detail-box {
......
......@@ -4,7 +4,7 @@
<scroll-view class="scroll-view" enhanced scroll-y
scroll-into-view="{{toId}}" show-scrollbar="{{false}}" bindtouchstart="touchstart" bindtouchend="touchend">
<block wx:for="{{dialogueList}}" wx:key="index">
<view class="item {{activeId == item.text_id?'active':''}}" id="{{item.text_id}}" data-click bindtap="seekPlay" data-item="{{item}}" data-index="{{index}}">
<view class="item {{activeId == item.text_id?'active':''}} {{item.conversationCheckDetailDTO || item.defenceDetail ? 'hide-margin' :''}}" id="{{item.text_id}}" data-click bindtap="seekPlay" data-item="{{item}}" data-index="{{index}}">
<block wx:if="{{item.visible}}">
<view class="avatar-box">
<view class="icon">
......
......@@ -156,9 +156,13 @@ Page({
index
} = e.currentTarget.dataset
this.setData({
activeIndex: index,
avgDefence: ''
activeIndex: index
})
if(index!=2){
this.setData({
avgDefence: ''
})
}
},
navbarReady(e) {
let navBarHeight = e.detail.height;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!