Commit 5a25a3fc by 前端

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 bbe5e04b eb2724dd
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
*/ */
getSparringPage(data) { getSparringPage(data) {
return api.post( return api.post(
"dj.api.carboutique.fun.sparring.record.page", "dj.api.carboutique.ai.sparring.staff.record.page",
data,[],"/rop-dj-pairexc/router" data,[],"/rop-dj-pairexc/router"
); );
}, },
......
...@@ -87,6 +87,7 @@ Page({ ...@@ -87,6 +87,7 @@ Page({
// 头部返回上一级 // 头部返回上一级
back() { back() {
console.log(111111)
const pages = getCurrentPages(); const pages = getCurrentPages();
const prevPage = pages[pages.length - 2]; const prevPage = pages[pages.length - 2];
console.log(prevPage.route); console.log(prevPage.route);
...@@ -183,15 +184,27 @@ Page({ ...@@ -183,15 +184,27 @@ Page({
uuid uuid
} = wx.$util.getUserInfo(); } = wx.$util.getUserInfo();
console.log(history_message); console.log(history_message);
if (id) { if (id) {
this.setData({
duration: false
})
this.getDetail(id); this.getDetail(id);
this.getChatDetail({staffRecordId: uuid})
} else { } else {
const chatList = JSON.parse(wx.getStorageSync("chatList")); const chatList = JSON.parse(wx.getStorageSync("chatList"));
this.setData({chatList})
this.handleSave(chatList,duration) this.handleSave(chatList,duration)
} }
console.log(windowW); console.log(windowW);
}, },
getChatDetail(staffRecordId) {
carLifeApi.getSparringDetail({staffRecordId,pageNum:1,pageSize:100}).then(res=>{
const {list=[] } = res.data
this.setData({chatList: list})
})
},
//提交数据 //提交数据
sparringCommit() { sparringCommit() {
const { const {
...@@ -280,7 +293,8 @@ Page({ ...@@ -280,7 +293,8 @@ Page({
reportItem, reportItem,
minutes, minutes,
seconds, seconds,
score score,
duration: true
}) })
this.setDetail(reportItem) this.setDetail(reportItem)
//延迟动画 //延迟动画
...@@ -508,6 +522,7 @@ Page({ ...@@ -508,6 +522,7 @@ Page({
let XYListCopy = [...XYList] let XYListCopy = [...XYList]
let list = descriptionList.map((desc) => { let list = descriptionList.map((desc) => {
const randomIndex = Math.floor(Math.random() * XYListCopy.length); const randomIndex = Math.floor(Math.random() * XYListCopy.length);
console.log(randomIndex)
const selectedXYItem = XYListCopy[randomIndex]; const selectedXYItem = XYListCopy[randomIndex];
XYListCopy.splice(randomIndex, 1); XYListCopy.splice(randomIndex, 1);
return { return {
......
...@@ -12,9 +12,11 @@ ...@@ -12,9 +12,11 @@
<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}}"> <block wx:if="{{duration}}">
<view class="canvas-box type-{{reportItem.length}}"> <view class="canvas-box type-{{reportItem.length}}">
<view style="position: relative;">
<gl-image class="score-bg" src="/aiCheck/radar-bg-{{reportItem.length}}.png"></gl-image> <gl-image class="score-bg" src="/aiCheck/radar-bg-{{reportItem.length}}.png"></gl-image>
<!-- <canvas disable-scroll="{{true}}" id="radarCanvas" type="2d" class="canvas canvas2" /> --> <!-- <canvas disable-scroll="{{true}}" id="radarCanvas" type="2d" class="canvas canvas2" /> -->
<canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas"></canvas> <canvas canvas-id="radarCanvas" disable-scroll="{{true}}" class="canvas"></canvas>
</view>
<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>
......
...@@ -6,12 +6,12 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig ...@@ -6,12 +6,12 @@ refresher-threshold="104" scroll-top="{{scrollTop}}" refresher-triggered="{{trig
<view class="record-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}"> <view class="record-item" wx:for="{{recordList}}" data-role="{{item.roleType}}" wx:key="id" bindtap="toReport" data-id="{{item.id}}">
<view class="record-left"> <view class="record-left">
<view class="record-title">驻店延保</view> <view class="record-title">驻店延保</view>
<view class="record-time" wx:if="{{item.checkResult}}">练习{{item.checkResult.duration}}</view> <view class="record-time" wx:if="{{item.sparringDuration}}">练习{{item.sparringDuration}}</view>
<view class="record-date">日期:{{item.createdDate}}</view> <view class="record-date">日期:{{item.createdDate}}</view>
</view> </view>
<view class="record-right"> <view class="record-right">
<view class="under-way" wx:if="{{!item.checkResult}}">报告生成中...</view> <view class="under-way" wx:if="{{item.sparringStatus == 0}}">报告生成中...</view>
<view class="score" wx:else><view class="score-num">{{item.checkResult.score}}</view>分</view> <view class="score" wx:else><view class="score-num">{{item.score}}</view>分</view>
<gl-image class="arrow-right" src="/equity/arrow-right.png"></gl-image> <gl-image class="arrow-right" src="/equity/arrow-right.png"></gl-image>
</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!