Commit e10af62f by 胡悦

修改结果页

1 parent e48ea6c6
...@@ -14,12 +14,19 @@ page { ...@@ -14,12 +14,19 @@ page {
width: 100%; width: 100%;
height: 538rpx; height: 538rpx;
position: fixed; position: fixed;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/scene/scene-bg.webp') no-repeat;
background-size: 100%;
left: 0; left: 0;
top: 0; top: 0;
z-index: -1; z-index: -1;
} }
.bg2 {
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/defense/product1-bg.webp') no-repeat;
background-size: 100%;
}
.bg3 {
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/aiCheck/defense/product2-bg.webp') no-repeat;
background-size: 100%;
}
.navigation-header .navigation-bar { .navigation-header .navigation-bar {
position: relative; position: relative;
box-shadow: none; box-shadow: none;
......
<!-- packageEquity/pages/aiCheck/scene/scene.wxml --> <!-- packageEquity/pages/aiCheck/scene/scene.wxml -->
<view class="bg"></view> <view class="bg {{id == 2 ? 'bg2' : id == 3 ? 'bg3' : ''}}"></view>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{!showChat}}" bindback="back"></navigation-bar> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{!showChat}}" bindback="back"></navigation-bar>
<view class="introduce-section" style="height: calc(100vh - {{navBarHeight}}px - 152rpx);"> <view class="introduce-section" style="height: calc(100vh - {{navBarHeight}}px - 152rpx);">
<view class="introduce-box"> <view class="introduce-box">
<!-- <view class="type-tab"> --> <!-- <view class="type-tab"> -->
<scroll-view class="type-tab" scroll-x="true" scroll-left="{{scrollLeft}}"> <scroll-view class="type-tab" scroll-x="true" show-scrollbar="{{false}}" enhanced="true" scroll-left="{{scrollLeft}}">
<view wx:for="{{tabList}}" wx:key="id" class="tab-item {{currentTab == index ? 'active' : ''}}" bindtap="switchTab" data-index="{{index}}" data-type="{{item.id}}"> <view wx:for="{{tabList}}" wx:key="id" class="tab-item {{currentTab == index ? 'active' : ''}}" bindtap="switchTab" data-index="{{index}}" data-type="{{item.id}}">
<gl-image class="icon" src="/aiCheck/defense/{{currentTab == index ? item.icon + '-check' : item.icon}}.webp"></gl-image> <gl-image class="icon" src="/aiCheck/defense/{{currentTab == index ? item.icon + '-check' : item.icon}}.webp"></gl-image>
{{item.name}} {{item.name}}
......
...@@ -113,11 +113,11 @@ Page({ ...@@ -113,11 +113,11 @@ Page({
} }
}, },
again() { again() {
const { id, entry } = this.data; const { id, entry, sector, sparringType } = this.data;
if (id) { if (id) {
wx.navigateTo({ // 都为延保 sparringType 1.话术演练 2.攻防演练 ,暂时只有延保、安心包,再多需修改代码
url: `/packageEquity/pages/aiCheck/scene/scene`, sector == '延保' ? sparringType == 1 ?
}); wx.navigateTo({url: `/packageEquity/pages/aiCheck/scene/scene`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=2`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=3`})
} else if (entry == "other") { } else if (entry == "other") {
wx.navigateTo({ wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`, url: `/packageEquity/pages/aiCheck/scene/scene`,
...@@ -269,7 +269,7 @@ Page({ ...@@ -269,7 +269,7 @@ Page({
wx.$router.reLaunch('packageEquity.equityPage') wx.$router.reLaunch('packageEquity.equityPage')
return return
} }
const { descriptionList, reportItem, sparringDuration, score } = const { descriptionList, reportItem, sparringDuration, level, sector, sparringType } =
res.data || {}; res.data || {};
let { minutes, seconds } = this.formatTime(sparringDuration || 0); let { minutes, seconds } = this.formatTime(sparringDuration || 0);
this.setData({ this.setData({
...@@ -278,7 +278,9 @@ Page({ ...@@ -278,7 +278,9 @@ Page({
reportItem, reportItem,
minutes, minutes,
seconds, seconds,
score, level,
sector,
sparringType,
duration: true, duration: true,
}); });
this.setDetail(reportItem); this.setDetail(reportItem);
...@@ -550,8 +552,8 @@ Page({ ...@@ -550,8 +552,8 @@ Page({
}, },
jump(e) { jump(e) {
let { item } = e.currentTarget.dataset, let { item } = e.currentTarget.dataset,
{ reportItem, avatar, score, id, entry } = this.data; { reportItem, avatar, level, id, entry } = this.data;
if (score == null) return; if (level == null) return;
wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", { wx.$router.go("/packageEquity/pages/aiCheck/detail/detail", {
reportItem, reportItem,
avatar, avatar,
......
...@@ -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}} {{score == null?'pending':''}}"> <view class="canvas-box type-{{reportItem.length}} {{level == 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,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<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:if="{{score == null && item.reportItem == '服务态度'}}"> <block wx:if="{{level == null && item.reportItem == '服务态度'}}">
<view class="pending-text">分析中...</view> <view class="pending-text">分析中...</view>
</block> </block>
<block wx:else> <block wx:else>
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<view class="score-box"> <view class="score-box">
<view class="score-item"> <view class="score-item">
<view>总得分</view> <view>总得分</view>
<view class="score" wx:if="{{score != null}}"> <view class="score" wx:if="{{level != null}}">
<view class="score-num">{{score || 0}}</view> <view class="score-num">{{level || '-'}}</view>
/100 <!-- /100 -->
</view> </view>
<view wx:else class="no-score">计算中...</view> <view wx:else class="no-score">计算中...</view>
<text class="score-tips">90%的使用者在\n75-85之间</text> <text class="score-tips">80%的使用者\n总体评级为B</text>
</view> </view>
<view class="score-item"> <view class="score-item">
<view>练习时长</view> <view>练习时长</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!