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