Commit 2a3ce639 by 前端

Merge branch 'SAAS+V5.7.0' into 'master'

上线合并

See merge request !77
2 parents 86c21b12 dc94f472
......@@ -523,6 +523,14 @@ module.exports = {
...data
})
},
// 新 学习中心 - 推荐课程
getRecommendCourseList(data) {
return http.post({
method: 'dj.api.pad.learning.center.myself.course.recommend',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 查询考试分页接口
getExamPage(data) {
return http.post({
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3
const index = 2
/**
*
0本地
......
......@@ -11,6 +11,7 @@ class SQLite {
this.db = null
//注意:
this.dbPath = `_doc/${name}.db` // 存储数据库的完整路径
this.dbPath = `_doc/${name}.db` // 存储数据库的完整路径
// 初始化该数据库的队列(如果不存在)
if (!SQLite._queues[name]) {
SQLite._queues[name] = new TaskQueue(`SQLite:${name}`)
......
......@@ -91,7 +91,7 @@ export default {
pageSize
}
const res = await uni.$api.commonApi.getMyCourseList(params)
console.log("已完成课程",res);
if (pageNum == 1) {
this.completedCourseList = res.list
} else {
......@@ -128,6 +128,12 @@ export default {
}
let { pageNum, total, nothing = 'nothing', pageSize } = this;
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
let businessParam = {
courseId:item.courseId,
title:item.title
}
console.log("businessParamC",businessParam);
uni.$track.add({ eventCode: 'app_studyCourse_click', businessParam: businessParam })
uni.navigateTo({
url: `/pages/common/studyCenter/courseDetail?apiType=getMyCourseList&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}&learnStatus=2`
})
......
......@@ -128,6 +128,7 @@ export default {
} else {
this.taskList = this.taskList.concat(newList)
}
console.log("taskList",this.taskList);
uni.hideLoading()
this.total = res.total
this.nothing = res.length ? true : false
......@@ -164,7 +165,12 @@ export default {
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this;
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
let businessParam = {
courseId:item.courseId,
title:item.title
}
console.log("businessParam",businessParam);
uni.$track.add({ eventCode: 'app_studyCourse_click', businessParam: businessParam })
uni.navigateTo({
url: `/pages/common/studyCenter/courseDetail?apiType=getMyCourseList&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.taskList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}&learnStatus=1`
})
......
......@@ -179,6 +179,12 @@ export default {
}
let { pageNum, total, nothing = 'nothing', pageSize } = this;
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
let businessParam = {
courseId:item.courseId,
title:item.title
}
console.log("businessParam",businessParam);
uni.$track.add({ eventCode: 'app_studyCourse_click', businessParam: businessParam })
uni.navigateTo({
url: `/pages/common/studyCenter/courseDetail?apiType=getMyCourseList&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}&learnStatus=0`
})
......
......@@ -37,6 +37,8 @@
<Studying v-else-if="currentTab === 1" ref="studying" :cardWidth="530" />
<!-- 已学完 tab:使用 CompletedCourse 组件 -->
<CompletedCourse v-else-if="currentTab === 2" ref="completedCourse" :cardWidth="530" />
<!-- 推荐学习 tab:使用 CompletedCourse 组件 -->
<RecommendClass v-else-if="currentTab === 3" ref="completedCourse" :cardWidth="530" />
</view>
</view>
</template>
......@@ -45,13 +47,15 @@
import ToLearnCourse from './components/ToLearnCourse.vue'
import Studying from './components/Studying.vue'
import CompletedCourse from './components/CompletedCourse.vue'
import RecommendClass from './components/RecommendClass.vue'
export default {
name: 'MyCoursePage',
components: {
ToLearnCourse,
Studying,
CompletedCourse
CompletedCourse,
RecommendClass
},
data() {
return {
......@@ -59,7 +63,8 @@ export default {
tabList: [
{ label: '待学习', count: '0', key: 'unLearnCount' },
{ label: '正在学习', count: '0', key: 'learningCount' },
{ label: '已学完', count: '0', key: 'completedCount' }
{ label: '已学完', count: '0', key: 'completedCount' },
{ label: '推荐学习', count: '0', key: 'recommendCount' }
],
residueInfo: {
remindType: 0
......
......@@ -157,12 +157,33 @@
</view>
</view>
<view v-else-if="activeTabKey == 'evaluation'">
<StepperNavigation :currentStep="currentStep" :steps="detailsInfo.priceHistory" direction="vertical">
<template v-slot="{ step, indexContent }">
<!-- priceHistory 字段废弃:按轮展示 priceHistoryByRound,每轮内展示多次报价 -->
<StepperNavigation :currentStep="currentStep" :steps="detailsInfo.priceHistoryByRound" direction="vertical">
<template v-slot="{ step }">
<view class="gridBox mb-48 padBox">
<view v-for="(item, index) in priceItems" :key="index" :class="['flex align-center', { 'full-width': item.fullWidth }]">
<!-- 多次评估师报价(opType 10):评估价1/2/3…,每条用 priceItems -->
<view v-for="(h, hIndex) in getRoundQuotes(step)" :key="`quote_block_${hIndex}`">
<view
v-for="(item, index) in priceItems"
:key="`quote_${hIndex}_${index}`"
:class="['flex align-center', { 'full-width': item.fullWidth }]"
>
<view class="title-label-see mr-16">
{{ item.label }}<text v-if="getRoundQuotes(step).length > 1">{{ hIndex + 1 }}</text>
</view>
<view class="flex-1 break-word">{{ h[item.key] || '-' }} {{ item.cell || '' }}</view>
</view>
</view>
<!-- 每轮底部汇总区:客户报价 / 报价反馈 / 核价金额 / 核价意见 -->
<view
v-for="(item, index) in roundSummaryItems"
:key="`summary_${index}`"
:class="['flex align-center', { 'full-width': item.fullWidth }]"
>
<view class="title-label-see mr-16">{{ item.label }}</view>
<view class="flex-1 break-word">{{ detailsInfo.priceHistory[indexContent][item.key] || '-' }} {{ item.cell || '' }}</view>
<view class="flex-1 break-word">
{{ getRoundSummaryValue(step, item.opType, item.key) || '-' }} {{ item.cell || '' }}
</view>
</view>
</view>
</template>
......@@ -560,12 +581,19 @@ export default {
{ label: '原车主电话', key: 'carLicense.previousOwnerPhone', fullWidth: true },
{ label: '原车主住址', key: 'carLicense.previousOwnerAddress', fullWidth: true }
],
// 评估师单次报价展示字段(仅用于 opType = 10)
priceItems: [
{ label: '评估价格', key: 'evalPriceDisplay' },
{ label: '客户意向报价', key: 'customerTargetPriceDisplay' },
{ label: '报价反馈', key: 'customerTargetPriceFeedback', fullWidth: true },
{ label: '评估意见', key: 'evalOpinion', fullWidth: true }
],
// 每轮底部汇总信息(来自不同 opType)
roundSummaryItems: [
{ label: '客户报价', key: 'customerTargetPriceDisplay', opType: 20 },
{ label: '报价反馈', key: 'customerTargetPriceFeedback', opType: 20, fullWidth: true },
{ label: '核价金额', key: 'evalPriceDisplay', opType: 40 },
// 核价意见同样来自核价记录(opType 40)
{ label: '核价意见', key: 'evalOpinion', opType: 40, fullWidth: true }
],
editItems: [
{ label: '订单状态', key: 'status' },
{ label: '编辑人员', key: 'editor' }
......@@ -809,9 +837,27 @@ export default {
})
.then(res => {
if (res.data.code == 0) {
that.detailsInfo = res.data.data
const data = res.data.data || {}
// priceHistory 字段废弃:统一使用 priceHistoryByRound(按轮分组)
if (!Array.isArray(data.priceHistoryByRound)) data.priceHistoryByRound = []
// 规范化每轮数据:保证 priceHistoryList 为数组,并保持接口返回的原始顺序
// 如需按时间排序,请在后端/调用方显式处理;这里不做二次排序,避免影响展示顺序
data.priceHistoryByRound = data.priceHistoryByRound.map(r => {
const list = Array.isArray(r?.priceHistoryList) ? r.priceHistoryList.filter(Boolean) : []
const quoteTime = r?.quoteTime || list[list.length - 1]?.quoteTime || ''
return {
...r,
roundNo: r?.roundNo,
quoteTime,
priceHistoryList: list
}
})
that.detailsInfo = data
// 判断评估信息
if (that.detailsInfo.priceHistory && that.detailsInfo.priceHistory.length > 0) {
if (that.detailsInfo.priceHistoryByRound && that.detailsInfo.priceHistoryByRound.length > 0) {
that.tabs.find(i => i.key === 'evaluation').hidden = false
}
if (that.detailsInfo.paymentList && that.detailsInfo.paymentList.length > 0) {
......@@ -871,6 +917,17 @@ export default {
console.log('rawValue:', rawValue === 0 ? 0 : item.type === 'image' || item.accept === 'video' ? rawValue : rawValue || '-', item.key, item)
return rawValue === 0 ? 0 : item.type === 'image' || item.accept === 'video' ? rawValue : rawValue || '-'
},
// 取当前轮次中所有评估师报价(opType = 10)
getRoundQuotes(step) {
const list = Array.isArray(step?.priceHistoryList) ? step.priceHistoryList : []
return list.filter(i => String(i.opType) === '10')
},
// 取当前轮次底部汇总字段(根据 opType + 字段名)
getRoundSummaryValue(step, opType, key) {
const list = Array.isArray(step?.priceHistoryList) ? step.priceHistoryList : []
const record = list.find(i => String(i.opType) === String(opType))
return record ? record[key] : ''
},
getImageBySubtype(subtype) {
if (!this.detailsInfo.images) return []
if (subtype === 41 || subtype === 22 || subtype === 51) {
......@@ -1039,7 +1096,7 @@ export default {
background: #ffffff;
box-sizing: border-box;
.title-label-see {
width: toRpx(168);
width: toRpx(198);
color: #999999;
font-size: toRpx(28);
font-weight: 400;
......@@ -1081,7 +1138,7 @@ export default {
padding-bottom: toRpx(28);
box-sizing: border-box;
.title-label-see {
width: toRpx(168);
width: toRpx(198);
color: #999999;
font-size: toRpx(28);
font-weight: 400;
......
......@@ -567,7 +567,8 @@ export default {
toDetail(i) {
if (i.status === 1) {
const reportUrl = i.reportUrl
const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${reportUrl}&fileUrltype=html&Signature=false`
const reportImageUrl = encodeURIComponent(i.reportImageUrl || '')
const url = `/pages/evaluationForm/components/pdfPreView?fileUrl=${reportUrl}&fileUrltype=html&Signature=false&showSaveBtn=1&reportImageUrl=${reportImageUrl}`
uni.navigateTo({
url: `${url}`
})
......
/*
* @Descripttion:
* @Descripttion:
* @version: 1.0.0
* @Author: limin
* @Date: 2024-12-06 10:13:02
......@@ -8,7 +8,7 @@
* @FilePath: \gl_tape\utils\recordManager\TimeoutService.js
*/
class TimeoutService {
TIMEOUT = 40// 40分钟
TIMEOUT = 40 // 40分钟
Miniute = 60 * 1000
TIMER_DURATION = this.TIMEOUT * this.Miniute
CHECK_INTERVAL = 1 * this.Miniute // 1分钟检查一次
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!