Commit d9e1b533 by 前端

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 2761564e 515d0213
...@@ -54,7 +54,8 @@ page { ...@@ -54,7 +54,8 @@ page {
font-size: 30rpx; font-size: 30rpx;
color: #333333; color: #333333;
line-height: 44rpx; line-height: 44rpx;
border-radius: 16rpx; // border-radius: 16rpx;
border-radius: 37rpx 37rpx 37rpx 0;
max-width: 560rpx; max-width: 560rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
...@@ -69,7 +70,7 @@ page { ...@@ -69,7 +70,7 @@ page {
font-size: 30rpx; font-size: 30rpx;
color: #000000; color: #000000;
line-height: 44rpx; line-height: 44rpx;
border-radius: 16rpx; // border-radius: 16rpx;
max-width: 560rpx; max-width: 560rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-top: 36rpx; margin-top: 36rpx;
font-weight: 500;
font-size: 32rpx;
color: #333333;
&-icon { &-icon {
display: flex; display: flex;
...@@ -61,27 +64,49 @@ ...@@ -61,27 +64,49 @@
animation: audio-eff 2s linear infinite; animation: audio-eff 2s linear infinite;
} }
.inspiration-content { .inspiration-content {
margin-top: 28rpx;
background: #FAFAFA; background: #FAFAFA;
border-radius: 16rpx; border-radius: 16rpx;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 48rpx; line-height: 48rpx;
padding: 24rpx 28rpx; padding: 24rpx 0;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
height: 240rpx; height: 240rpx;
margin-bottom: 32rpx;
.inspiration-scroll { .inspiration-scroll {
height: 100%; height: 100%;
&::-webkit-scrollbar { .content {
display: none; padding: 0 28rpx;
width: 0; box-sizing: border-box;
height: 0;
color: transparent;
} }
} }
} }
.inspiration-line {
display: flex;
align-items: center;
width: 100%;
text-align: center;
font-size: 24rpx;
color: #999999;
&::before {
content: '';
display: inline-block;
width: 184rpx;
height: 1rpx;
background-color: #DFDFDF;
margin-right: 12rpx;
}
&::after {
content: '';
display: inline-block;
width: 184rpx;
height: 1rpx;
background-color: #DFDFDF;
margin-left: 12rpx;
}
}
.loadding { .loadding {
display: inline-block; display: inline-block;
width: 14rpx; width: 14rpx;
......
<!--packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.wxml--> <!--packageEquity/pages/aiCheck/components/SpeechPopup/SpeechPopup.wxml-->
<pop-up class="speech-popup" show="{{show}}" height="{{inspirationContent ? '830rpx':'550rpx'}}" bindcancel="onClose"> <pop-up class="speech-popup" title="{{inspirationContent?'对话灵感':'正在录音'}}" show="{{show}}" height="{{inspirationContent ? '850rpx':'530rpx'}}" bindcancel="onClose">
<view class="inspiration-title"> <!-- <view class="inspiration-title">
<view class="inspiration-title-icon" bindtap="openInspiration"> <view wx:if="{{inspirationContent}}">对话灵感</view> -->
<!-- <view class="inspiration-title-icon" bindtap="openInspiration">
<gl-image class="inspiration-icon" src="/aiCheck/inspiration-icon.png"></gl-image> <gl-image class="inspiration-icon" src="/aiCheck/inspiration-icon.png"></gl-image>
对话灵感 对话灵感
</view> </view> -->
<view class="inspiration-title-description">用自己的话说出来效果更佳~</view> <!-- <view class="inspiration-title-description">用自己的话说出来效果更佳~</view> -->
</view> <!-- </view> -->
<view class="inspiration-content" wx:if="{{inspirationContent}}"> <view class="inspiration-content" wx:if="{{inspirationContent}}">
<scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced> <scroll-view scroll-y class="inspiration-scroll">
<view>{{inspirationContent}}</view> <view class="content">{{inspirationContent}}</view>
</scroll-view> </scroll-view>
<!-- <block wx:else> <!-- <block wx:else>
<view class="first loadding"></view> <view class="first loadding"></view>
...@@ -18,6 +19,7 @@ ...@@ -18,6 +19,7 @@
</block> </block>
<view wx:if="{{!inspirationContent}}" class="loadding-text">对话灵感生成中...</view> --> <view wx:if="{{!inspirationContent}}" class="loadding-text">对话灵感生成中...</view> -->
</view> </view>
<view class="inspiration-line" wx:if="{{inspirationContent}}">用自己的话说出来效果更佳</view>
<view class="loading-box"> <view class="loading-box">
<view class="loading-item" wx:for="{{36}}"> <view class="loading-item" wx:for="{{36}}">
</view> </view>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-05-07 15:29:35 * @Date: 2024-05-07 15:29:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-05-08 10:28:02 * @LastEditTime: 2024-05-21 17:15:39
*/ */
// packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js // packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
Component({ Component({
...@@ -87,7 +87,7 @@ Component({ ...@@ -87,7 +87,7 @@ Component({
heightObj: { heightObj: {
'scene': '960rpx', 'scene': '960rpx',
'inspiration': '720rpx', 'inspiration': '720rpx',
'script': '1120rpx' 'script': '1080rpx'
}, },
titleObj: { titleObj: {
'scene': '场景设置', 'scene': '场景设置',
......
...@@ -77,18 +77,20 @@ ...@@ -77,18 +77,20 @@
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 48rpx; line-height: 48rpx;
padding: 24rpx 28rpx; padding: 24rpx 0;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
.inspiration-scroll { .inspiration-scroll {
max-height: 330rpx; max-height: 330rpx;
&::-webkit-scrollbar { .content {
display: none; padding: 0 28rpx;
width: 0; box-sizing: border-box;
height: 0;
color: transparent;
} }
} }
.inspiration-loadding {
padding: 0 28rpx;
box-sizing: border-box;
}
} }
} }
.script-pop { .script-pop {
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
<view class="inspiration-title-description">用自己的话说出来效果更佳~</view> <view class="inspiration-title-description">用自己的话说出来效果更佳~</view>
</view> </view>
<view class="inspiration-content"> <view class="inspiration-content">
<scroll-view scroll-y class="inspiration-scroll" show-scrollbar="{{false}}" enhanced> <scroll-view scroll-y class="inspiration-scroll">
<view>{{content}}</view> <view class="content">{{inspirationContent}}用自己的话说出来效果更佳~用自己的话说出来效果更佳~用自己的话说出来效果更佳~用自己的话说出来效果更佳~</view>
</scroll-view> </scroll-view>
<block wx:if="{{!content}}"> <view class="inspiration-loadding" wx:if="{{!inspirationContent}}">
<view class="first loadding"></view> <view class="first loadding"></view>
<view class="second loadding"></view> <view class="second loadding"></view>
<view class="third loadding"></view> <view class="third loadding"></view>
</block> </view>
</view> </view>
<view wx:if="{{!content}}" class="loadding-text">对话灵感生成中...</view> <view wx:if="{{!content}}" class="loadding-text">对话灵感生成中...</view>
</view> </view>
......
...@@ -55,6 +55,15 @@ page { ...@@ -55,6 +55,15 @@ page {
// margin-top: 200rpx; // margin-top: 200rpx;
// height: calc(100vh - 200rpx); // height: calc(100vh - 200rpx);
overflow-y: auto; overflow-y: auto;
visibility: hidden;
}
.show{
visibility: visible;
}
.dialogue{
position: absolute;
top: 0;
left: 0;
} }
.chat-box { .chat-box {
margin: 24rpx 32rpx; margin: 24rpx 32rpx;
...@@ -130,7 +139,7 @@ page { ...@@ -130,7 +139,7 @@ page {
height: 750rpx; height: 750rpx;
} }
.canvas2 { .canvas2 {
height: 448rpx; height: 468rpx;
} }
.star { .star {
width: 24rpx; width: 24rpx;
...@@ -145,9 +154,9 @@ page { ...@@ -145,9 +154,9 @@ page {
} }
.score-bg { .score-bg {
width: 100%; width: 100%;
height: 448rpx; height: 468rpx;
position: absolute; position: absolute;
top: -12rpx; top: 0;
} }
.categories-1 { .categories-1 {
position: absolute; position: absolute;
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
</view> </view>
</navigation-bar> </navigation-bar>
<block wx:if="{{duration}}"> <block wx:if="{{duration}}">
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" wx:if="{{tabId == 1}}"> <view class="wrapper {{tabId == 1?'show':''}}" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" >
<view class="canvas-box"> <view class="canvas-box">
<gl-image class="score-bg" src="/aiCheck/score-bg.png"></gl-image> <gl-image class="score-bg" src="/aiCheck/score-bg1.png"></gl-image>
<canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas canvas2"></canvas> <canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas canvas2"></canvas>
<view class="categories-1"> <view class="categories-1">
<view class="title">销售技巧</view> <view class="title">销售技巧</view>
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
<view class="report-box"> <view class="report-box">
<view class="score-box"> <view class="score-box">
<view>总得分</view> <view>总得分</view>
<view class="score"><view class="score-num">{{detailInfo.score}}</view>/100</view> <view class="score">
<view class="score-num">{{detailInfo.score}}</view>/100
</view>
</view> </view>
<view class="report-content"> <view class="report-content">
<view class="report-item"> <view class="report-item">
...@@ -67,8 +69,8 @@ ...@@ -67,8 +69,8 @@
<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>
</view> </view>
<view class="wrapper" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" wx:if="{{tabId == 2}}"> <view class="wrapper dialogue {{tabId == 2?'show':''}}" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" >
<view class="chat-box" wx:for="{{chatList}}"> <view class="chat-box" wx:for="{{chatList}}">
<view class="chat-item-left" wx:if="{{item.role == 1}}"> <view class="chat-item-left" wx:if="{{item.role == 1}}">
<image class="avatar" src="{{avatar}}"></image> <image class="avatar" src="{{avatar}}"></image>
...@@ -90,12 +92,14 @@ ...@@ -90,12 +92,14 @@
<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>
<view class="text"><rich-text nodes="{{item.refine_the_expression}}"></rich-text></view> <view class="text">
<rich-text nodes="{{item.refine_the_expression}}"></rich-text>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view>
</block> </block>
<block wx:else> <block wx:else>
<view class="loading" style="margin-top: {{navBarHeight}}px"> <view class="loading" style="margin-top: {{navBarHeight}}px">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</view> </view>
<view class="introduce-box"> <view class="introduce-box">
<view class="introduce-title">目标</view> <view class="introduce-title">目标</view>
<view class="introduce-content white-bg">帮助住驻店人员提升销售延保产品的技巧和话术</view> <view class="introduce-content white-bg">帮助驻店人员提升销售延保产品的技巧和话术</view>
</view> </view>
<view class="introduce-box"> <view class="introduce-box">
<view class="introduce-title">尝试说</view> <view class="introduce-title">尝试说</view>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title"> <view class="navigation-title">
<view class="result-title"> <view class="result-title">
D+趣练 {{tabIndex == 1 ? 'D+趣练' : '练习记录'}}
</view> </view>
</view> </view>
</navigation-bar> </navigation-bar>
......
...@@ -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:[]
}, },
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!