Commit 45865762 by 岑成威

fix: 短课程学习室

1 parent 5af49f44
...@@ -21,10 +21,10 @@ export default { ...@@ -21,10 +21,10 @@ export default {
}, },
onLaunch: async function () { onLaunch: async function () {
this.onKeep() this.onKeep()
this.setAPPVersion() // this.setAPPVersion()
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 // plus.screen.unlockOrientation() //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary') // plus.screen.lockOrientation('landscape-primary')
}, 300) }, 300)
uni.setKeepScreenOn({ uni.setKeepScreenOn({
keepScreenOn: true keepScreenOn: true
......
...@@ -95,11 +95,7 @@ ...@@ -95,11 +95,7 @@
<view class="right-box"> <view class="right-box">
<!-- Frame 24 顶栏 --> <!-- Frame 24 顶栏 -->
<view class="right-box__header"> <view class="right-box__header">
<view class="right-box__course-icon-wrap"> <view class="sprite-icon icon-short-course right-box__course-icon-glyph"></view>
<view class="right-box__course-icon-inner">
<view class="sprite-icon icon-short-task-title right-box__course-icon-glyph"></view>
</view>
</view>
<view class="right-box__head-main"> <view class="right-box__head-main">
<view class="right-box__room-title">{{ roomTitleText }}</view> <view class="right-box__room-title">{{ roomTitleText }}</view>
<view class="right-box__head-tags"> <view class="right-box__head-tags">
...@@ -108,32 +104,9 @@ ...@@ -108,32 +104,9 @@
</view> </view>
<view class="right-box__head-extra"> <view class="right-box__head-extra">
<view class="right-box__car-pill"> <view class="right-box__car-pill">
<view class="right-box__car-pill-icon"></view> <view class="sprite-icon icon-short-time"></view>
<text class="right-box__car-pill-text">{{ carModelText }}</text> <text class="right-box__car-pill-text">{{ carModelText }}</text>
</view> </view>
<view
class="right-box__countdown"
v-if="completeStatus == 0"
>
<image
class="right-box__limit-img"
src="../../../assets/images/common/limit-page2.png"
mode="scaleToFill"
/>
<template v-if="!isTimeout">
<text class="right-box__countdown-label">仅剩</text>
<view class="right-box__time-chip">{{ pad2(countdown.days) }}</view>
<text class="right-box__countdown-unit">天</text>
<view class="right-box__time-chip">{{ pad2(countdown.hours) }}</view>
<text class="right-box__time-colon">:</text>
<view class="right-box__time-chip">{{ pad2(countdown.minutes) }}</view>
<text class="right-box__time-colon">:</text>
<view class="right-box__time-chip">{{ pad2(countdown.seconds) }}</view>
</template>
<template v-else>
<text class="right-box__countdown-label right-box__countdown-label--timeout">已超时</text>
</template>
</view>
</view> </view>
</view> </view>
<!-- Frame 33 月份选项卡 --> <!-- Frame 33 月份选项卡 -->
...@@ -154,68 +127,21 @@ ...@@ -154,68 +127,21 @@
<!-- 主体:表格或空状态 --> <!-- 主体:表格或空状态 -->
<view class="right-box__body"> <view class="right-box__body">
<view <view
v-if="!(courseDetail.aiReviewReport && courseDetail.aiReviewReport.length)"
class="right-box__empty" class="right-box__empty"
> >
<view class="right-box__empty-visual"> <view class="right-box__empty-visual">
<view class="right-box__empty-icon-wrap"> <view class="sprite-icon icon-perferIcon"></view>
<view class="sprite-icon icon-short-task-title right-box__empty-icon"></view>
</view>
<view class="right-box__empty-pill">{{ carModelText }}</view> <view class="right-box__empty-pill">{{ carModelText }}</view>
</view> </view>
<text class="right-box__empty-desc">{{ carModelText }}</text> <text class="right-box__empty-desc">{{ carModelText }}</text>
</view> </view>
<view
v-else
class="table-box"
>
<view class="table-content">
<view class="table-header flex">
<view
v-for="(i, index) in qualityTitle"
:key="index"
:class="['title-item flex', `row-${index + 1}`]"
>{{ i }}</view>
</view>
<scroll-view
scroll-y
class="table-content-scroll"
>
<view
class="table-content-item"
v-for="(item, index) in courseDetail.aiReviewReport"
:key="index"
>
<view class="row-1 flex">{{ item.tagName }}</view>
<view class="row-2">
<view class="table-content-text">不足:{{ item.weakness }}</view>
<view class="table-content-suggest">
<view class="suggest-title">改善建议</view> {{ item.suggestion }}
</view>
</view>
<view class="row-3 flex">
<template v-if="item.examStatus == 2">
<view class="sprite-icon icon-task-pass"></view>
<view class="check-result-text">考核通过</view>
</template>
<template v-else>
<view
:class="['check-result-btn', item.examStatus == 0 ? 'disabled' : '']"
@click="handleExam(item)"
>{{item.examStatus == 0 ? '无需考核' : '去考核'}}</view>
</template>
</view>
</view>
</scroll-view>
</view>
</view>
</view> </view>
<!-- Frame 68 底部对练提示 --> <!-- Frame 68 底部对练提示 -->
<view class="right-box__footer"> <view class="right-box__footer">
<view <view
:class="['right-box__practice-bar', { 'right-box__practice-bar--unlocked': practiceUnlockProgress.done >= practiceUnlockProgress.total && practiceUnlockProgress.total > 0 }]" :class="['right-box__practice-bar', { 'right-box__practice-bar--unlocked': practiceUnlockProgress.done >= practiceUnlockProgress.total && practiceUnlockProgress.total > 0 }]"
> >
<view class="right-box__practice-lock"></view> <view class="sprite-icon icon-short-vector"></view>
<text class="right-box__practice-text">{{ practiceUnlockHint }}</text> <text class="right-box__practice-text">{{ practiceUnlockHint }}</text>
</view> </view>
</view> </view>
...@@ -980,28 +906,6 @@ ...@@ -980,28 +906,6 @@
background: linear-gradient(180deg, rgba(44, 102, 247, 0.1) 0%, rgba(255, 255, 255, 0) 100%); background: linear-gradient(180deg, rgba(44, 102, 247, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
} }
&__course-icon-wrap {
flex-shrink: 0;
width: toRpx(48);
height: toRpx(48);
display: flex;
align-items: center;
justify-content: center;
}
&__course-icon-inner {
width: toRpx(40);
height: toRpx(40);
border-radius: toRpx(8);
background: linear-gradient(135deg, #abdcff 0%, #0396ff 100%);
display: flex;
align-items: center;
justify-content: center;
}
&__course-icon-glyph {
transform: scale(0.85);
}
&__head-main { &__head-main {
flex: 1; flex: 1;
...@@ -1332,7 +1236,6 @@ ...@@ -1332,7 +1236,6 @@
} }
&__practice-text { &__practice-text {
flex: 1;
font-weight: 500; font-weight: 500;
font-size: toRpx(30); font-size: toRpx(30);
line-height: toRpx(44); line-height: toRpx(44);
......
...@@ -12,13 +12,13 @@ import { serializeIfObject } from '../utils' ...@@ -12,13 +12,13 @@ import { serializeIfObject } from '../utils'
import TaskQueue from '../TaskQueue' import TaskQueue from '../TaskQueue'
class LogCat { class LogCat {
main = plus.android.runtimeMainActivity() // main = plus.android.runtimeMainActivity()
File = plus.android.importClass('java.io.File') // File = plus.android.importClass('java.io.File')
Environment = plus.android.importClass('android.os.Environment') // Environment = plus.android.importClass('android.os.Environment')
BufferedWriter = plus.android.importClass('java.io.BufferedWriter') // BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
FileOutputStream = plus.android.importClass('java.io.FileOutputStream') // FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter') // OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// BufferedReader = plus.android.importClass('java.io.BufferedReader') // // BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream') // FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader') // InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = '' LogPath = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!