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 b5e1fc1e
authored
May 22, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
a48b99ef
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
23 deletions
packageEquity/pages/aiCheck/chat/chat.js
packageEquity/pages/aiCheck/chat/chat.wxml
packageEquity/pages/aiCheck/components/Popup/Popup.js
packageEquity/pages/aiCheck/components/Popup/Popup.wxml
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.wxml
packageEquity/pages/aiCheck/result/result.wxml
packageEquity/pages/aiCheck/scene/scene.sass
packageEquity/pages/aiCheck/chat/chat.js
View file @
b5e1fc1
...
@@ -176,6 +176,16 @@ Page({
...
@@ -176,6 +176,16 @@ Page({
popType
:
""
,
popType
:
""
,
});
});
},
},
// 点击蒙层
handleMask
()
{
console
.
log
(
this
.
data
.
popType
,
'popType'
);
if
(
this
.
data
.
popType
==
'inspiration'
)
{
this
.
setData
({
showScenePopup
:
false
,
popType
:
""
,
});
}
},
send
(
e
)
{
send
(
e
)
{
const
{
result
:
content
,
filePath
,
times
}
=
e
.
detail
;
const
{
result
:
content
,
filePath
,
times
}
=
e
.
detail
;
console
.
log
(
filePath
);
console
.
log
(
filePath
);
...
...
packageEquity/pages/aiCheck/chat/chat.wxml
View file @
b5e1fc1
...
@@ -29,6 +29,6 @@
...
@@ -29,6 +29,6 @@
</view>
</view>
<!-- 弹窗组件 -->
<!-- 弹窗组件 -->
<scene-popup avatar="{{avatar}}" popType="{{popType}}" show="{{showScenePopup}}" inspirationContent="{{inspirationContent}}" scriptList="{{scriptList}}" bindcancel="cancel" bind:handleScript="handleScript" bindscene="handleScene"></scene-popup>
<scene-popup avatar="{{avatar}}"
bind:handleMask="handleMask"
popType="{{popType}}" show="{{showScenePopup}}" inspirationContent="{{inspirationContent}}" scriptList="{{scriptList}}" bindcancel="cancel" bind:handleScript="handleScript" bindscene="handleScene"></scene-popup>
<speech-popup bindsend="send" show="{{showSpeechPopup}}" inspirationContent="{{inspirationContent}}" bindclose="closeSpeechPopup"></speech-popup >
<speech-popup bindsend="send" show="{{showSpeechPopup}}" inspirationContent="{{inspirationContent}}" bindclose="closeSpeechPopup"></speech-popup >
packageEquity/pages/aiCheck/components/Popup/Popup.js
View file @
b5e1fc1
...
@@ -45,6 +45,10 @@ Component({
...
@@ -45,6 +45,10 @@ Component({
})
})
this
.
triggerEvent
(
'cancel'
)
this
.
triggerEvent
(
'cancel'
)
},
},
maskPopup
()
{
console
.
log
(
'mask'
)
this
.
triggerEvent
(
'mask'
)
},
confirm
()
{
confirm
()
{
this
.
triggerEvent
(
'confirm'
)
this
.
triggerEvent
(
'confirm'
)
}
}
...
...
packageEquity/pages/aiCheck/components/Popup/Popup.wxml
View file @
b5e1fc1
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="
hide
Popup"></view>
<view class="popup-bg" bindtap="
mask
Popup"></view>
<view class="popup-content" style="height:{{ height }}">
<view class="popup-content" style="height:{{ height }}">
<block wx:if="{{ title }}">
<block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}
<view class="popup-title text-center">{{title}}
...
...
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
View file @
b5e1fc1
...
@@ -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-22 1
0:58:52
* @LastEditTime: 2024-05-22 1
4:01:16
*/
*/
// packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
// packageEquity/pages/aiCheck/components/scenePopup/scenePopup.js
Component
({
Component
({
...
@@ -121,6 +121,9 @@ Component({
...
@@ -121,6 +121,9 @@ Component({
},
},
cancel
()
{
cancel
()
{
this
.
triggerEvent
(
'cancel'
)
this
.
triggerEvent
(
'cancel'
)
},
handleMask
()
{
this
.
triggerEvent
(
'handleMask'
)
}
}
}
}
})
})
packageEquity/pages/aiCheck/components/scenePopup/scenePopup.wxml
View file @
b5e1fc1
<pop-up class="scene-popup" bindcancel="cancel" hasClose="{{config.hasClose[popType]}}" title="{{config.titleObj[popType]}}" show="{{show}}" height="{{config.heightObj[popType]}}">
<pop-up class="scene-popup" bindcancel="cancel"
bindmask="handleMask"
hasClose="{{config.hasClose[popType]}}" title="{{config.titleObj[popType]}}" show="{{show}}" height="{{config.heightObj[popType]}}">
<block wx:if="{{popType == 'scene'}}">
<block wx:if="{{popType == 'scene'}}">
<view class="popup-discription">客户类型</view>
<view class="popup-discription">客户类型</view>
<view class="customer-list">
<view class="customer-list">
...
...
packageEquity/pages/aiCheck/result/result.wxml
View file @
b5e1fc1
<!--
packageEquity/pages/aiCheck/result/result.wxml
-->
<!--
packageEquity/pages/aiCheck/result/result.wxml
-->
<view class="bg"></view>
<view class="bg"></view>
<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">
<view wx:for="{{resultTab}}" wx:key="{{item.id}}" class="result-bar {{tabId == item.id ? 'active' : ''}}" data-id="{{item.id}}" bindtap="handleRuselt">{{item.name}}</view>
<view wx:for="{{resultTab}}" wx:key="{{item.id}}" class="result-bar {{tabId == item.id ? 'active' : ''}}" data-id="{{item.id}}" bindtap="handleRuselt">
{{item.name}}
</view>
</view>
</view>
</view>
</view>
</navigation-bar>
</navigation-bar>
<
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" style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px - {{footerHeight}}px);" wx:if="{{tabId == 1
}}">
<
block wx:if="{{duration
}}">
<view class="canvas-box">
<view class="canvas-box">
<gl-image class="score-bg" src="/aiCheck/score-bg1.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>
...
@@ -47,7 +49,8 @@
...
@@ -47,7 +49,8 @@
<view class="score-box">
<view class="score-box">
<view>总得分</view>
<view>总得分</view>
<view class="score">
<view class="score">
<view class="score-num">{{detailInfo.score}}</view>/100
<view class="score-num">{{detailInfo.score}}</view>
/100
</view>
</view>
</view>
</view>
<view class="report-content">
<view class="report-content">
...
@@ -69,8 +72,19 @@
...
@@ -69,8 +72,19 @@
<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 wx:else>
<view class="loading">
<view class="title">恭喜完成练习,报告生成中...</view>
<view class="time">预计花费1~2分钟</view>
<view class="text-box">
<gl-image class="icon-loadding" src="/aiCheck/loading.png"></gl-image>
<view class="text">正在分析报告...</view>
</view>
</view>
<view style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px)" wx:if="{{tabId == 2}}">
</view>
</block>
</view>
<view style="margin-top: {{navBarHeight}}px;height: calc(100vh - {{navBarHeight}}px)" wx:if="{{tabId == 2}}">
<scroll-view scroll-y class="chat-scroll">
<scroll-view scroll-y class="chat-scroll">
<view class="chat-wrapper">
<view class="chat-wrapper">
<view class="chat-box" wx:for="{{chatList}}">
<view class="chat-box" wx:for="{{chatList}}">
...
@@ -103,15 +117,4 @@
...
@@ -103,15 +117,4 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</block>
<block wx:else>
<view class="loading" style="margin-top: {{navBarHeight}}px">
<view class="title">恭喜完成练习,报告生成中...</view>
<view class="time">预计花费1~2分钟</view>
<view class="text-box">
<gl-image class="icon-loadding" src="/aiCheck/loading.png"></gl-image>
<view class="text">正在分析报告...</view>
</view>
</view>
</block>
\ No newline at end of file
\ No newline at end of file
</view>
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiCheck/scene/scene.sass
View file @
b5e1fc1
...
@@ -199,14 +199,18 @@ page {
...
@@ -199,14 +199,18 @@ page {
.type-body
{
.type-body
{
margin
:
40rpx
0
80rpx
;
margin
:
40rpx
0
80rpx
;
.customer-list
{
.customer-list
{
width
:
calc
(
100%
-
28rpx
)
;
.customer-item
{
.customer-item
{
display
:
inline-flex
;
display
:
inline-flex
;
align-items
:
center
;
align-items
:
center
;
background
:
#FAFAFA
;
background
:
#FAFAFA
;
border-radius
:
306rpx
;
border-radius
:
306rpx
;
width
:
calc
(
50%
-
16
rpx
)
;
width
:
calc
(
50%
-
30
rpx
)
;
padding
:
8rpx
;
padding
:
8rpx
;
margin-top
:
28rpx
;
margin-top
:
28rpx
;
&
:nth-child
(
even
)
{
margin-left
:
28rpx
;
}
.avatar
{
.avatar
{
width
:
80rpx
;
width
:
80rpx
;
height
:
80rpx
;
height
:
80rpx
;
...
...
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