Commit b5e1fc1e by 胡悦

修复bug

1 parent a48b99ef
...@@ -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);
......
...@@ -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 >
...@@ -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')
} }
......
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll"> <view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view> <view class="popup-bg" bindtap="maskPopup"></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}}
......
...@@ -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 10:58:52 * @LastEditTime: 2024-05-22 14: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')
} }
} }
}) })
<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--> <!-- 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
...@@ -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% - 16rpx); width: calc(50% - 30rpx);
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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!