Commit 48efd78e by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 4d387ce5 61107157
...@@ -537,5 +537,30 @@ module.exports = { ...@@ -537,5 +537,30 @@ module.exports = {
projectName: 'pad', projectName: 'pad',
...data ...data
}) })
} },
// 新学习中心 - 考试结果
getExamResult(data={}) {
return http.post({
method: 'dj.api.pad.learning.center.beisen.exam.result',
projectName: 'pad',
...data
})
},
// 限制录单
getLimitRecord(data={}) {
return http.post({
method: 'dj.api.pad.learning.center.study.permission',
projectName: 'pad',
...data
})
},
// VIN车架号校验
checkVinValidate(data={}) {
console.log("调用接口checkVinValidate",data);
return http.post({
method: 'dj.pad.api.vin.validate',
projectName: 'pad',
...data,
})
},
} }
...@@ -13,6 +13,7 @@ module.exports = { ...@@ -13,6 +13,7 @@ module.exports = {
return; return;
} }
if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig) if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig)
data.source = 1
resolve(uni.$signHttp.post(url, data, _config)) resolve(uni.$signHttp.post(url, data, _config))
} }
}) })
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
<view class="exam-submit-popup-wrapper"> <view class="exam-submit-popup-wrapper">
<!-- 标题 --> <!-- 标题 -->
<view :class="['exam-title', { 'title-loading': isLoading }]">是否已提交考试</view> <view :class="['exam-title', { 'title-loading': isLoading }]">是否已提交考试</view>
<!-- 加载状态 --> <!-- 加载状态 -->
<template v-if="isLoading"> <template v-if="isLoading">
<view class="loading-text">正在查询考试结果,请稍后...</view> <view class="loading-text">正在查询考试结果,请稍后...</view>
<image <image
class="loading-gif" class="loading-gif"
:src="require('@/assets/images/common/loadding.gif')" :src="require('@/assets/images/common/loadding.gif')"
mode="aspectFit"
/> />
</template> </template>
<template v-if="showError">
<view class="error-text">未查询到考试结果,请重新确认</view>
</template>
<!-- 按钮组(始终显示) --> <!-- 按钮组(始终显示) -->
<view class="button-group"> <view class="button-group">
<view class="cancel-button" @click="handleCancel"> <view class="cancel-button" @click="handleCancel">
未提交 未提交
</view> </view>
<view class="confirm-button" @click="handleConfirm"> <view class="confirm-button" @click="handleConfirm">
确认已提交 {{ confirmText }}
</view> </view>
</view> </view>
...@@ -34,6 +34,14 @@ export default { ...@@ -34,6 +34,14 @@ export default {
isLoading: { isLoading: {
type: Boolean, type: Boolean,
default: false default: false
},
showError: {
type: Boolean,
default: false
},
confirmText: {
type: String,
default: '确认'
} }
}, },
watch: { watch: {
...@@ -48,17 +56,20 @@ export default { ...@@ -48,17 +56,20 @@ export default {
handleConfirm() { handleConfirm() {
console.log('handleConfirm clicked') console.log('handleConfirm clicked')
this.$emit('confirm') this.$emit('confirm')
} },
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.exam-submit-popup-wrapper { .exam-submit-popup-wrapper {
position: relative;
width: 100%; width: 100%;
min-height: toRpx(400);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-bottom: toRpx(48);
} }
.exam-title { .exam-title {
...@@ -69,8 +80,7 @@ export default { ...@@ -69,8 +80,7 @@ export default {
font-weight: 500; font-weight: 500;
font-family: "HarmonyOSSansSC"; font-family: "HarmonyOSSansSC";
text-align: center; text-align: center;
margin-top: toRpx(96); margin-top: toRpx(48);
margin-bottom: toRpx(136);
} }
.exam-title.title-loading { .exam-title.title-loading {
...@@ -92,15 +102,21 @@ export default { ...@@ -92,15 +102,21 @@ export default {
.loading-gif { .loading-gif {
width: toRpx(64); width: toRpx(64);
height: toRpx(64); height: toRpx(64);
margin-bottom: toRpx(48); margin-bottom: toRpx(76);
}
.error-text {
color: #6c6f75;
font-size: toRpx(32);
font-weight: 400;
line-height: toRpx(48);
margin-top: toRpx(48);
} }
.button-group { .button-group {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: toRpx(16); gap: toRpx(16);
margin-bottom: toRpx(48); margin-top: auto;
} }
.cancel-button { .cancel-button {
......
...@@ -8,20 +8,22 @@ ...@@ -8,20 +8,22 @@
<view class="recommend-course-item" v-for="(item, index) in recommendCourseList" :key="index" <view class="recommend-course-item" v-for="(item, index) in recommendCourseList" :key="index"
@click="startStudy(item, index)" :style="cardWidth > 0 ? `width: ${cardWidth}rpx` : ''"> @click="startStudy(item, index)" :style="cardWidth > 0 ? `width: ${cardWidth}rpx` : ''">
<!-- 左上角:必修/选修标签 --> <!-- 左上角:必修/选修标签 -->
<image v-if="!simplified && item.required !== undefined" class="course-tag-left" <template v-if="item.planCourseType">
:src="item.required ? require('@/assets/images/studyCenter/Required.png') : require('@/assets/images/studyCenter/Elective.png')" <image class="course-tag-left"
:src="item.planCourseType == 1 ? require('@/assets/images/studyCenter/Required.png') : require('@/assets/images/studyCenter/Elective.png')"
mode="aspectFit" /> mode="aspectFit" />
</template>
<!-- 右上角:文档/视频标签 --> <!-- 右上角:文档/视频标签 -->
<view v-if="!simplified && item.courseType" class="course-tag-right"> <view class="course-tag-right" v-if="item.courseFileType">
<text class="tag-text">{{ item.courseType === 'video' ? '视频' : '文档' }}</text> <text class="tag-text">{{ COURSE_TYPE[item.courseFileType].name}}</text>
</view> </view>
<image class="recommend-course-item-img" <image class="recommend-course-item-img"
src="../../../../assets/images/common/recommend-course-default.webp" mode="scaleToFill" /> src="../../../../assets/images/common/recommend-course-default.webp" mode="scaleToFill" />
<view class="recommend-course-content"> <view class="recommend-course-content">
<view class="recommend-course-item-title"> <view class="recommend-course-item-title">
{{ item.courseName }} {{ item.title }}
</view> </view>
<view class="recommend-course-item-text"> <view class="recommend-course-item-text">
<text class="duration-value">课程时长</text> <text class="duration-value">课程时长</text>
...@@ -30,12 +32,12 @@ ...@@ -30,12 +32,12 @@
</view> </view>
<!-- 评分星星 --> <!-- 评分星星 -->
<view v-if="!simplified && item.rating !== undefined" class="course-rating"> <view v-if="item.totalStar !== undefined" class="course-rating">
<view class="star-list"> <view class="star-list">
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.rating, star)" <image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" /> mode="aspectFit" />
</view> </view>
<text class="rating-text">{{ item.rating }}</text> <text class="rating-text">{{ item.totalStar / 2 }}</text>
</view> </view>
<!-- 学习人数 --> <!-- 学习人数 -->
...@@ -60,6 +62,7 @@ ...@@ -60,6 +62,7 @@
</view> </view>
</template> </template>
<script> <script>
import { COURSE_TYPE } from '../../../../pages/common/studyCenter/contant'
export default { export default {
name: 'RecommendCourse', name: 'RecommendCourse',
props: { props: {
...@@ -72,6 +75,10 @@ export default { ...@@ -72,6 +75,10 @@ export default {
simplified: { simplified: {
type: Boolean, type: Boolean,
default: false default: false
},
searchParams: {
type: Object,
default: () => ({})
} }
}, },
data() { data() {
...@@ -80,8 +87,9 @@ export default { ...@@ -80,8 +87,9 @@ export default {
nothing: false, nothing: false,
total: 0, total: 0,
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 9,
scrollTop: 0, scrollTop: 0,
COURSE_TYPE
} }
}, },
computed: { computed: {
...@@ -100,7 +108,7 @@ export default { ...@@ -100,7 +108,7 @@ export default {
methods: { methods: {
// 获取星星图标 // 获取星星图标
getStarIcon(rating, position) { getStarIcon(rating, position) {
const roundedRating = Math.round(rating * 2) / 2 // 四舍五入到0.5 const roundedRating = Math.round(rating) / 2 // 四舍五入到0.5
const diff = roundedRating - (position - 1) const diff = roundedRating - (position - 1)
if (diff >= 1) { if (diff >= 1) {
...@@ -120,11 +128,13 @@ export default { ...@@ -120,11 +128,13 @@ export default {
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
const { pageNum, pageSize } = this const { pageNum, pageSize, searchParams } = this
console.log(searchParams, 'searchParams')
const params = { const params = {
staffPhone: uni.$storage.get('userInfo').phone, // 推荐状态 0=无推荐 1=推荐课程 staffPhone: uni.$storage.get('userInfo').phone, // 推荐状态 0=无推荐 1=推荐课程
pageNum, pageNum,
pageSize pageSize,
...searchParams
} }
const res = await uni.$api.commonApi.getALlCourse(params) const res = await uni.$api.commonApi.getALlCourse(params)
console.log(res, '全部课程') console.log(res, '全部课程')
...@@ -164,10 +174,18 @@ export default { ...@@ -164,10 +174,18 @@ export default {
} }
}, },
startStudy(item, index) { startStudy(item, index) {
const beisenToken = uni.$storage.get('beisenToken')
if (!beisenToken) {
uni.showToast({
title: '培训账号未创建',
icon: 'none'
})
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this; let { pageNum, total, nothing = 'nothing', pageSize } = this;
uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' }) // uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=recommendation&index=${index}&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}` url: `/pages/common/studyCenter/courseDetail?apiType=getALlCourse&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}`
}) })
}, },
async asyncfindBeiSenSSOToken() { async asyncfindBeiSenSSOToken() {
......
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
<!-- 最高得分 --> <!-- 最高得分 -->
<view class="exam-score"> <view class="exam-score">
<text class="score-label">最高得分</text> <text class="score-label">最高得分</text>
<text class="score-value failed">{{ filterValue(item.highestScore, '分') }}|未通过</text> <text class="score-value failed">{{ filterValue(item.maxTotalScore, '分') }}|未通过</text>
</view> </view>
<!-- 重新考试按钮 --> <!-- 重新考试按钮 -->
<view v-if="item.remainingTimes > 0" class="retake-btn" @click.stop="retakeExam(item)"> <view v-if="item.remainingTimes > 0" class="retake-btn">
<text class="retake-text">重新考试</text> <text class="retake-text">重新考试</text>
</view> </view>
</view> </view>
...@@ -48,11 +48,32 @@ ...@@ -48,11 +48,32 @@
<view class="end-text">到底了!</view> <view class="end-text">到底了!</view>
</template> </template>
</scroll-view> </scroll-view>
<!-- 考试提交确认弹窗 -->
<StudyPopup
:show.sync="showExamPopup"
title=""
:width="848"
:closeButton="true"
:height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<ExamSubmitPopup
:isLoading="examPopInfo.isExamLoading"
:showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText"
@cancel="handleExamCancel"
@confirm="handleExamConfirm"
/>
</StudyPopup>
</view> </view>
</template> </template>
<script> <script>
import utils from '@/utils/utils' import utils from '@/utils/utils'
import StudyPopup from '../../../StudyPopup.vue'
import ExamSubmitPopup from '../../../ExamSubmitPopup.vue'
export default { export default {
name: 'FailedExam', name: 'FailedExam',
props: { props: {
...@@ -61,6 +82,10 @@ export default { ...@@ -61,6 +82,10 @@ export default {
default: 0 default: 0
} }
}, },
components: {
StudyPopup,
ExamSubmitPopup
},
data() { data() {
return { return {
examList: [], examList: [],
...@@ -69,6 +94,13 @@ export default { ...@@ -69,6 +94,13 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
scrollTop: 0, scrollTop: 0,
showExamPopup: false,
examPopInfo: {
isExamLoading: false,
showError: false,
confirmText: '确认提交'
},
currentExam: {}
} }
}, },
computed: { computed: {
...@@ -96,7 +128,7 @@ export default { ...@@ -96,7 +128,7 @@ export default {
}) })
const { pageNum, pageSize } = this const { pageNum, pageSize } = this
const params = { const params = {
examResult: 2, // 不通过 examResult: 2, // 2不通过
pageNum, pageNum,
pageSize, pageSize,
staffPhone: uni.$storage.get('userInfo').phone staffPhone: uni.$storage.get('userInfo').phone
...@@ -105,7 +137,7 @@ export default { ...@@ -105,7 +137,7 @@ export default {
const res = await uni.$api.commonApi.getExamPage(params) const res = await uni.$api.commonApi.getExamPage(params)
console.log(res) console.log(res)
if (pageNum == 1) { if (pageNum == 1) {
this.examList = res.list.concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list) this.examList = res.list
} else { } else {
this.examList = this.examList.concat(res.list) this.examList = this.examList.concat(res.list)
} }
...@@ -126,13 +158,95 @@ export default { ...@@ -126,13 +158,95 @@ export default {
this.pageNum++ this.pageNum++
this.getExamList() this.getExamList()
}, },
viewExam(item) { // 跳转北森考试详情页
async viewExam(item) {
console.log('查看考试', item) console.log('查看考试', item)
if (item.remainingTimes <= 0) return
// TODO: 跳转到考试详情页 // TODO: 跳转到考试详情页
this.showStudyPopup = false
this.currentExam = item
try {
// 获取北森 token
uni.showLoading({ title: '加载中...' })
const token = await this.findBeiSenSSOToken()
// const token = uni.$storage.get('beisenToken')
console.log('🔑 获取到的 token:', token)
uni.hideLoading()
if (token) {
// const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
const params = {
product: 'Learning',
keyName: 'Nusion',
pageCode: 'LearningExamTraineePage',
appCode: 'Learning',
examId: item.examination
};
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`;
uni.navigateTo({
url: `/pages/common/studyWebview?url=${encodeURIComponent(this.jumpUrl)}&pageTitle=学习测评`
})
} else {
throw new Error('获取 token 失败')
}
} catch (error) {
uni.hideLoading()
console.error('❌ 获取 token 失败:', error)
uni.showToast({
title: '培训账号未创建',
icon: 'none'
})
}
},
// 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken() {
return new Promise((resolve, reject) => {
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
uni.$storage.set('beisenToken', res.data)
resolve(res.data || '')
}).catch(err => {
reject(err)
})
})
},
// 处理考试确认(用户选择已提交)
async handleExamConfirm() {
console.log('确认提交考试:', this.currentExam)
this.examPopInfo.isExamLoading = true
this.examPopInfo.showError = false
const { examination } = this.currentExam
try {
const params = {
examId: examination,
invokeType: 1 // 0:等级考试 1:课后考试
}
// TODO: 这里后续调用后端查询接口
const result = await uni.$api.commonApi.getExamResult(params)
console.log('查询到的考试结果:', result)
// 查询完成后关闭弹窗
this.examPopInfo.isExamLoading = false
console.log('查询完成,关闭弹窗')
this.showExamPopup = false
if (result) {
// 查询成功刷新考试列表
this.pageNum = 1
this.getExamList()
}
} catch (error) {
uni.showToast({
title: '未查询到考试结果',
icon: 'none'
})
}
}, },
retakeExam(item) { handleExamCancel() {
console.log('重新考试', item) this.showExamPopup = false
// TODO: 跳转到考试页面
} }
} }
} }
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
<!-- 最高得分 --> <!-- 最高得分 -->
<view class="exam-score"> <view class="exam-score">
<text class="score-label">最高得分</text> <text class="score-label">最高得分</text>
<text class="score-value passed">{{ filterValue(item.highestScore, '分') }}|已通过</text> <text class="score-value passed">{{ filterValue(item.maxTotalScore, '分') }}|已通过</text>
</view> </view>
<!-- 重新考试按钮 --> <!-- 重新考试按钮 -->
<view class="retake-btn" @click.stop="retakeExam(item)"> <view v-if="item.remainingTimes > 0" class="retake-btn">
<text class="retake-text">重新考试</text> <text class="retake-text">重新考试</text>
</view> </view>
</view> </view>
...@@ -47,11 +47,33 @@ ...@@ -47,11 +47,33 @@
<view class="end-text">到底了!</view> <view class="end-text">到底了!</view>
</template> </template>
</scroll-view> </scroll-view>
<!-- 考试提交确认弹窗 -->
<StudyPopup
:show.sync="showExamPopup"
title=""
:width="848"
:closeButton="true"
:height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848"
:topImageHeight="248"
>
<ExamSubmitPopup
:isLoading="examPopInfo.isExamLoading"
:showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText"
@cancel="handleExamCancel"
@confirm="handleExamConfirm"
/>
</StudyPopup>
</view> </view>
</template> </template>
<script> <script>
import utils from '@/utils/utils' import utils from '@/utils/utils'
import StudyPopup from '../../../StudyPopup.vue'
import ExamSubmitPopup from '../../../ExamSubmitPopup.vue'
export default { export default {
name: 'PassedExam', name: 'PassedExam',
props: { props: {
...@@ -60,6 +82,10 @@ export default { ...@@ -60,6 +82,10 @@ export default {
default: 0 default: 0
} }
}, },
components: {
StudyPopup,
ExamSubmitPopup
},
data() { data() {
return { return {
examList: [], examList: [],
...@@ -68,6 +94,13 @@ export default { ...@@ -68,6 +94,13 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
scrollTop: 0, scrollTop: 0,
showExamPopup: false,
examPopInfo: {
isExamLoading: false,
showError: false,
confirmText: '确认提交'
},
currentExam: {}
} }
}, },
computed: { computed: {
...@@ -87,6 +120,7 @@ export default { ...@@ -87,6 +120,7 @@ export default {
filterValue(val, unit) { filterValue(val, unit) {
return utils.filterValue(val, unit) return utils.filterValue(val, unit)
}, },
// 获取考试列表
async getExamList() { async getExamList() {
console.log(11) console.log(11)
try { try {
...@@ -95,7 +129,7 @@ export default { ...@@ -95,7 +129,7 @@ export default {
}) })
const { pageNum, pageSize } = this const { pageNum, pageSize } = this
const params = { const params = {
examResult: 1, // 已通过 examResult: 1, // 1已通过
pageNum, pageNum,
pageSize, pageSize,
staffPhone: uni.$storage.get('userInfo').phone staffPhone: uni.$storage.get('userInfo').phone
...@@ -104,7 +138,7 @@ export default { ...@@ -104,7 +138,7 @@ export default {
const res = await uni.$api.commonApi.getExamPage(params) const res = await uni.$api.commonApi.getExamPage(params)
console.log(res) console.log(res)
if (pageNum == 1) { if (pageNum == 1) {
this.examList = res.list.concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list).concat(res.list) this.examList = res.list
} else { } else {
this.examList = this.examList.concat(res.list) this.examList = this.examList.concat(res.list)
} }
...@@ -116,6 +150,7 @@ export default { ...@@ -116,6 +150,7 @@ export default {
uni.hideLoading() uni.hideLoading()
} }
}, },
// 到底了
pageonReachBottom() { pageonReachBottom() {
if (this.nothing) return if (this.nothing) return
if (this.examList.length >= this.total && this.pageNum > 1) { if (this.examList.length >= this.total && this.pageNum > 1) {
...@@ -125,13 +160,95 @@ export default { ...@@ -125,13 +160,95 @@ export default {
this.pageNum++ this.pageNum++
this.getExamList() this.getExamList()
}, },
viewExam(item) { // 跳转北森考试详情页
async viewExam(item) {
console.log('查看考试', item) console.log('查看考试', item)
if (item.remainingTimes <= 0) return
// TODO: 跳转到考试详情页 // TODO: 跳转到考试详情页
this.showStudyPopup = false
this.currentExam = item
try {
// 获取北森 token
uni.showLoading({ title: '加载中...' })
const token = await this.findBeiSenSSOToken()
// const token = uni.$storage.get('beisenToken')
console.log('🔑 获取到的 token:', token)
uni.hideLoading()
if (token) {
// const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
const params = {
product: 'Learning',
keyName: 'Nusion',
pageCode: 'LearningExamTraineePage',
appCode: 'Learning',
examId: item.examination
};
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`;
uni.navigateTo({
url: `/pages/common/studyWebview?url=${encodeURIComponent(this.jumpUrl)}&pageTitle=学习测评`
})
} else {
throw new Error('获取 token 失败')
}
} catch (error) {
uni.hideLoading()
console.error('❌ 获取 token 失败:', error)
uni.showToast({
title: '培训账号未创建',
icon: 'none'
})
}
},
// 获取北森 SSO Token(参考 detail.vue 的方法)
findBeiSenSSOToken() {
return new Promise((resolve, reject) => {
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
uni.$storage.set('beisenToken', res.data)
resolve(res.data || '')
}).catch(err => {
reject(err)
})
})
},
// 处理考试确认(用户选择已提交)
async handleExamConfirm() {
console.log('确认提交考试:', this.currentExam)
this.examPopInfo.isExamLoading = true
this.examPopInfo.showError = false
const { examination } = this.currentExam
try {
const params = {
examId: examination,
invokeType: 1 // 0:等级考试 1:课后考试
}
// TODO: 这里后续调用后端查询接口
const result = await uni.$api.commonApi.getExamResult(params)
console.log('查询到的考试结果:', result)
// 查询完成后关闭弹窗
this.examPopInfo.isExamLoading = false
console.log('查询完成,关闭弹窗')
this.showExamPopup = false
if (result) {
// 查询成功刷新考试列表
this.pageNum = 1
this.getExamList()
}
} catch (error) {
uni.showToast({
title: '未查询到考试结果',
icon: 'none'
})
}
}, },
retakeExam(item) { handleExamCancel() {
console.log('重新考试', item) this.showExamPopup = false
// TODO: 跳转到考试页面
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
class="task-list-box"> class="task-list-box">
<template v-if="taskList.length"> <template v-if="taskList.length">
<view class="task-list"> <view class="task-list">
<view class="task-item" v-for="(item, index) in taskList" :key="index" @click="handleTaskItemClick(item)"> <view class="task-item" v-for="(item, index) in taskList" :key="index" @click="handleTaskItemClick(item, index)">
<!-- <view class="time-limit-tag"></view> --> <!-- <view class="time-limit-tag"></view> -->
<!-- 左上角:必修/选修标签 --> <!-- 左上角:必修/选修标签 -->
<template v-if="item.planCourseType"> <template v-if="item.planCourseType">
...@@ -52,36 +52,8 @@ ...@@ -52,36 +52,8 @@
</view> </view>
</template> </template>
<script> <script>
const COURSE_TYPE = {
10: { import { COURSE_TYPE } from '../../../../pages/common/studyCenter/contant'
name: '视频',
image: 'short-course-default'
},
80: {
name: '音频',
image: 'course-default-bg'
},
20: {
name: '混合',
image: 'short-course-default'
},
30: {
name: '文档',
image: 'course-default-bg'
},
40: {
name: 'H5',
image: 'course-default-bg'
},
70: {
name: 'URL',
image: 'course-default-bg'
},
120: {
name: '图文',
image: 'course-default-bg'
}
}
import dayjs from 'dayjs' import dayjs from 'dayjs'
export default { export default {
name: 'MyTask', name: 'MyTask',
...@@ -99,6 +71,7 @@ export default { ...@@ -99,6 +71,7 @@ export default {
}, },
mounted() { mounted() {
this.getCourseTaskPage(this.tabIndex) this.getCourseTaskPage(this.tabIndex)
this.asyncfindBeiSenSSOToken()
}, },
beforeDestroy() { beforeDestroy() {
// 移除事件监听,防止内存泄漏 // 移除事件监听,防止内存泄漏
...@@ -154,19 +127,36 @@ export default { ...@@ -154,19 +127,36 @@ export default {
this.nothing = true; this.nothing = true;
} }
}, },
handleTaskItemClick(item) { handleTaskItemClick(item, index) {
console.log(item) console.log(item)
}, const beisenToken = uni.$storage.get('beisenToken')
findBeiSenSSOToken() { if (!beisenToken) {
return new Promise(resolve => { uni.showToast({
const url = 'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2' title: '培训账号未创建',
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => { icon: 'none'
uni.$storage.set('beisenToken', res.data)
const studyUrl = res.data ? `${res.data}&return_url=${url}` : ''
resolve(studyUrl)
}) })
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this;
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
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`
}) })
}, },
async asyncfindBeiSenSSOToken() {
const res = await uni.$api.commonApi.findBeiSenSSOToken({})
uni.$storage.set('beisenToken', res.data)
},
// findBeiSenSSOToken() {
// return new Promise(resolve => {
// const url = 'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
// uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
// uni.$storage.set('beisenToken', res.data)
// const studyUrl = res.data ? `${res.data}&return_url=${url}` : ''
// resolve(studyUrl)
// })
// })
// },
} }
} }
</script> </script>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
red: dataInfo.monHourRatio > 0, red: dataInfo.monHourRatio > 0,
green: dataInfo.monHourRatio < 0, green: dataInfo.monHourRatio < 0,
normal: dataInfo.monHourRatio === 0 normal: dataInfo.monHourRatio === 0
}">{{ dataInfo.monHourRatio == null ? '-' : dataInfo.monHourRatio + '%' }}</text> }">{{ dataInfo.monHourRatio == null ? '-' : Math.abs(dataInfo.monHourRatio) + '%' }}</text>
<template v-if="dataInfo.monHourRatio != null"> <template v-if="dataInfo.monHourRatio != null">
<view v-if="dataInfo.monHourRatio > 0" class="sprite-icon icon-up-arrow"></view> <view v-if="dataInfo.monHourRatio > 0" class="sprite-icon icon-up-arrow"></view>
<view v-else-if="dataInfo.monHourRatio < 0" class="sprite-icon icon-green-arrow"></view> <view v-else-if="dataInfo.monHourRatio < 0" class="sprite-icon icon-green-arrow"></view>
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<view class="search-container"> <view class="search-container">
<view class="search-box" @click="focusSearch"> <view class="search-box" @click="focusSearch">
<view v-if="!searchKeyword" class="search-placeholder-wrapper"> <view v-show="!searchKeyword" class="search-placeholder-wrapper">
<uni-icons type="search" size="20" color="#999ea8" class="search-icon"></uni-icons>
<text class="placeholder-text">搜索课程</text> <text class="placeholder-text">搜索课程</text>
<uni-icons type="search" size="20" color="#999ea8" class="search-icon"></uni-icons>
</view> </view>
<input ref="searchInput" class="search-input" v-model="searchKeyword" placeholder="" confirm-type="search" <input ref="searchInput" class="search-input" v-model="searchKeyword" placeholder="" confirm-type="search"
@confirm="handleSearch" /> @confirm="handleSearch" />
<view class="clear-btn" @click.stop="clearSearch" v-if="searchKeyword"> <view class="clear-btn" @click.stop="clearSearch" v-show="searchKeyword">
<uni-icons type="closeempty" size="16" color="#999ea8"></uni-icons> <uni-icons type="closeempty" size="16" color="#999ea8"></uni-icons>
</view> </view>
</view> </view>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<view class="sprite-icon icon-study-tips"></view> <view class="sprite-icon icon-study-tips"></view>
<view class="tips-text">本周学习时长X小时,超过X%的人</view> <view class="tips-text">本周学习时长X小时,超过X%的人</view>
</view> --> </view> -->
<Course ref="recommendCourse" /> <Course ref="allCourse" :searchParams="searchParams" />
</template> </template>
</view> </view>
</view> </view>
...@@ -194,10 +194,10 @@ export default { ...@@ -194,10 +194,10 @@ export default {
}, },
courseConfig: courseConfig, // 课程筛选配置 courseConfig: courseConfig, // 课程筛选配置
sortOptions: [ sortOptions: [
{ label: '综合排序', value: 'default' }, // { label: '综合排序', value: 'default' },
{ label: '最多人学', value: 'popular' }, { label: '最多人学', value: 0 },
{ label: '最高评分', value: 'rating' }, { label: '最高评分', value: 1 },
{ label: '最新发布', value: 'latest' } { label: '最新发布', value: 2 }
], ],
categoryOptions: [ categoryOptions: [
{ {
...@@ -223,7 +223,10 @@ export default { ...@@ -223,7 +223,10 @@ export default {
] ]
} }
], ],
currentSortValue: 'default', currentSortValue: 0,
searchParams: {
sortType: 0
}
} }
}, },
created() { created() {
...@@ -264,7 +267,7 @@ export default { ...@@ -264,7 +267,7 @@ export default {
const res = await uni.$api.commonApi.getStudyCenterTimeStatistics({ const res = await uni.$api.commonApi.getStudyCenterTimeStatistics({
staffPhone: uni.$storage.get('userInfo').phone staffPhone: uni.$storage.get('userInfo').phone
}) })
console.log(res, 'res') console.log(res, 'getMyStudyTime')
if (res) { if (res) {
this.dataInfo = res || {} this.dataInfo = res || {}
} }
...@@ -284,7 +287,10 @@ export default { ...@@ -284,7 +287,10 @@ export default {
...((item.children && Array.isArray(item.children)) ? item.children : []) ...((item.children && Array.isArray(item.children)) ? item.children : [])
] ]
})) }))
this.categoryOptions = filtered this.categoryOptions = [
{ categoryName: '全部分类', children: [{ categoryName: '全部' }] },
...filtered
]
} }
}, },
// 聚焦搜索框 // 聚焦搜索框
...@@ -294,31 +300,55 @@ export default { ...@@ -294,31 +300,55 @@ export default {
// 处理搜索 // 处理搜索
handleSearch() { handleSearch() {
console.log('搜索关键词:', this.searchKeyword) console.log('搜索关键词:', this.searchKeyword)
this.searchParams.title = this.searchKeyword
this.$refs.allCourse.getALlCourse()
// TODO: 调用课程列表接口,传入搜索关键词 // TODO: 调用课程列表接口,传入搜索关键词
}, },
// 清空搜索 // 清空搜索
clearSearch() { clearSearch() {
this.searchKeyword = '' this.searchKeyword = ''
delete this.searchParams.title
this.handleSearch() this.handleSearch()
}, },
// 打开筛选弹窗 // 打开筛选弹窗
openFilter() { openFilter() {
this.$refs.orderScreen.open() this.$refs.orderScreen.open()
}, },
// 处理排序变化 // 处理排序变化 综合排序、最多人学、最高评分、最新发布
handleSortChange({ item, index }) { handleSortChange({ item, index }) {
console.log('排序变化:', item, index) console.log('排序变化:', item, index)
this.currentSortValue = item.value this.currentSortValue = item.value
// TODO: 调用课程列表接口,传入排序参数 // TODO: 调用课程列表接口,传入排序参数
// if (item.value == 'default') {
// // 综合排序不用传参数
// delete this.searchParams.sortType
// } else {
this.searchParams.sortType = item.value
// }
this.searchParams.title = this.searchKeyword
this.$refs.allCourse.getALlCourse()
}, },
// 处理分类变化 // 处理分类变化
handleCategoryChange({ item, level, parent }) { handleCategoryChange({ item, level, parent }) {
console.log('分类变化:', item, level, parent) console.log('分类变化:', item, level, parent)
this.searchParams.courseCategoryId = item.id
this.searchParams.title = this.searchKeyword
this.$refs.allCourse.getALlCourse()
// TODO: 调用课程列表接口,传入分类参数 // TODO: 调用课程列表接口,传入分类参数
}, },
// 处理筛选确认 // 处理筛选确认
handleFilterConfirm(filterData) { handleFilterConfirm(filterData) {
console.log('筛选条件:', filterData) console.log('筛选条件:', filterData)
const {planCourseType, courseFileType, totalStar} = this.searchParams
if (Object.keys(filterData).length === 0) {
planCourseType && delete this.searchParams.planCourseType
courseFileType && delete this.searchParams.courseFileType
totalStar && delete this.searchParams.totalStar
} else {
this.searchParams = Object.assign(this.searchParams, filterData)
}
this.searchParams.title = this.searchKeyword
this.$refs.allCourse.getALlCourse()
// TODO: 调用课程列表接口,传入筛选条件 // TODO: 调用课程列表接口,传入筛选条件
}, },
// 跳转到我的课程 // 跳转到我的课程
......
...@@ -162,23 +162,25 @@ ...@@ -162,23 +162,25 @@
v-if="showBeisen" v-if="showBeisen"
></web-view> --> ></web-view> -->
<!-- 学习中心弹窗 --> <!-- 学习中心 等级考试弹窗 -->
<StudyPopup <StudyPopup
:show.sync="showStudyPopup" :show.sync="showStudyPopup"
title="开始学习学之旅" title="开始您的学习之旅"
:topImage="require('@/assets/images/common/study-center-bg.webp')" :topImage="require('@/assets/images/common/study-center-bg.webp')"
:topImageWidth="848"
:topImageHeight="248"
> >
<StudyPopupContent <StudyPopupContent
cardTitle="个性化学习路径" cardTitle="个性化学习路径"
description="根据你的岗位和考卷,我们打造针对性的学习课程内容,帮助你循序渐进,实现快速通关" description="根据您当前的学习情况,我们将为您定制专属的学习计划,帮助您高效提升技能,实现职业突破。"
:listItems="[ :listItems="[
'基于当前岗位定制课程', '基于当前能力水平评估',
'根据你的发展规划匹配你的学习', '结合岗位发展目标制定',
'定期推送学习提醒与激励' '定期跟踪学习进度和效果'
]" ]"
tipText="true" tipText="true"
courseName="XXX" :courseName="courseInfo.title"
buttonText="开始学习" buttonText="开始测评"
@button-click="handleStartAssessment" @button-click="handleStartAssessment"
/> />
</StudyPopup> </StudyPopup>
...@@ -188,13 +190,15 @@ ...@@ -188,13 +190,15 @@
:show.sync="showExamPopup" :show.sync="showExamPopup"
title="" title=""
:width="848" :width="848"
:height="isExamLoading ? 740 : 656" :height="examPopInfo.isExamLoading ? 740 : 656"
:topImage="require('@/assets/images/common/warning-notice.png')" :topImage="require('@/assets/images/common/warning-notice.png')"
:topImageWidth="848" :topImageWidth="848"
:topImageHeight="248" :topImageHeight="248"
> >
<ExamSubmitPopup <ExamSubmitPopup
:isLoading="isExamLoading" :isLoading="examPopInfo.isExamLoading"
:showError="examPopInfo.showError"
:confirmText="examPopInfo.confirmText"
@cancel="handleExamCancel" @cancel="handleExamCancel"
@confirm="handleExamConfirm" @confirm="handleExamConfirm"
/> />
...@@ -212,6 +216,7 @@ ...@@ -212,6 +216,7 @@
style="overflow: hidden;" style="overflow: hidden;"
> >
<StudyCenterPermissionPopup <StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm" @confirm="handleStudyPermissionConfirm"
/> />
</StudyPopup> </StudyPopup>
...@@ -289,8 +294,16 @@ export default { ...@@ -289,8 +294,16 @@ export default {
previewOff: false, previewOff: false,
showStudyPopup: false, showStudyPopup: false,
showExamPopup: false, showExamPopup: false,
examPopInfo: {
isExamLoading: false, isExamLoading: false,
showStudyPermissionPopup: false showError: false,
confirmText: '确认已提交'
},
showStudyPermissionPopup: false,
courseInfo: {
title: ''
},
lockReason: 0
} }
}, },
created() { created() {
...@@ -335,29 +348,31 @@ export default { ...@@ -335,29 +348,31 @@ export default {
// 处理开始测评(参考 detail.vue 的实现) // 处理开始测评(参考 detail.vue 的实现)
async handleStartAssessment() { async handleStartAssessment() {
this.showStudyPopup = false this.showStudyPopup = false
try { try {
// 获取北森 token // 获取北森 token
uni.showLoading({ title: '加载中...' }) uni.showLoading({ title: '加载中...' })
const token = await this.findBeiSenSSOToken() const token = await this.findBeiSenSSOToken()
console.log('🔑 获取到的 token:', token) console.log('🔑 获取到的 token:', token)
uni.hideLoading() uni.hideLoading()
if (token) { if (token) {
// 将目标 URL 编码 // const COURSE_ID = 'c6d20419-fae9-4d35-a1d1-bd2b35c0c619';
const targetUrl = 'https://cloud.italent.cn/PageHome/Index?product=Learning&keyName=Nusion&pageCode=LearningExamList&appCode=Learning#/viewDynamic' const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
const params = {
console.log('🎯 目标 URL:', targetUrl) product: 'Learning',
keyName: 'Nusion',
const encodedUrl = encodeURIComponent(targetUrl) pageCode: 'LearningExamTraineePage',
console.log('📝 编码后的 URL:', encodedUrl) appCode: 'Learning',
examId: this.courseInfo.examId
// 拼接完整 URL:token&return_url=编码后的目标URL };
const fullUrl = `${token}&return_url=${encodedUrl}` const queryString = Object.entries(params)
console.log('✅ 完整拼接的 URL (直接传递给 webview):', fullUrl) .map(([key, value]) => `${key}=${value}`)
.join('&');
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`;
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyWebview?url=${encodeURIComponent(fullUrl)}&pageTitle=学习测评` url: `/pages/common/studyWebview?url=${encodeURIComponent(this.jumpUrl)}&pageTitle=学习测评`
}) })
} else { } else {
throw new Error('获取 token 失败') throw new Error('获取 token 失败')
...@@ -365,10 +380,10 @@ export default { ...@@ -365,10 +380,10 @@ export default {
} catch (error) { } catch (error) {
uni.hideLoading() uni.hideLoading()
console.error('❌ 获取 token 失败:', error) console.error('❌ 获取 token 失败:', error)
uni.showToast({ // uni.showToast({
title: '获取授权失败,请重试', // title: '获取授权失败,请重试',
icon: 'none' // icon: 'none'
}) // })
} }
}, },
// 获取北森 SSO Token(参考 detail.vue 的方法) // 获取北森 SSO Token(参考 detail.vue 的方法)
...@@ -385,6 +400,12 @@ export default { ...@@ -385,6 +400,12 @@ export default {
// 处理考试取消(用户选择未提交) // 处理考试取消(用户选择未提交)
handleExamCancel() { handleExamCancel() {
this.showExamPopup = false this.showExamPopup = false
this.examPopInfo = {
isExamLoading: false,
showError: false,
confirmText: '确认已提交'
}
this.getLevelExamInfo()
}, },
handleStudyPermissionConfirm() { handleStudyPermissionConfirm() {
this.showStudyPermissionPopup = false this.showStudyPermissionPopup = false
...@@ -434,25 +455,39 @@ export default { ...@@ -434,25 +455,39 @@ export default {
}, },
// 处理考试确认(用户选择已提交) // 处理考试确认(用户选择已提交)
async handleExamConfirm() { async handleExamConfirm() {
console.log('handleExamConfirm 执行开始') this.examPopInfo.isExamLoading = true
this.isExamLoading = true this.examPopInfo.showError = false
console.log('isExamLoading 设置为 true:', this.isExamLoading) const { examId, levelExamId } = this.courseInfo
try { try {
const params = {
examId,
invokeType: 0,
levelExamId
}
// TODO: 这里后续调用后端查询接口 // TODO: 这里后续调用后端查询接口
// const result = await uni.$api.commonApi.checkExamResult({...}) const result = await uni.$api.commonApi.getExamResult(params)
console.log('查询到的考试结果:', result)
// 模拟延迟 // 模拟延迟
await new Promise(resolve => setTimeout(resolve, 2000)) // await new Promise(resolve => setTimeout(resolve, 2000))
if (result) {
// 查询完成后关闭弹窗 // 查询完成后关闭弹窗
this.isExamLoading = false this.examPopInfo.isExamLoading = false
console.log('查询完成,关闭弹窗') console.log('查询完成,关闭弹窗')
this.showExamPopup = false this.showExamPopup = false
this.getLevelExamInfo()
// 关闭后刷新学习中心的学习时长
if (this.$refs.pointRef && typeof this.$refs.pointRef.getMyStudyTime === 'function') {
this.$refs.pointRef.getMyStudyTime()
}
} else {
this.examPopInfo.isExamLoading = false
this.examPopInfo.showError = true
this.examPopInfo.confirmText = '重新确认'
}
} catch (error) { } catch (error) {
console.error('查询考试结果失败:', error) console.error('查询考试结果失败:', error)
this.isExamLoading = false
uni.showToast({ uni.showToast({
title: '查询失败,请重试', title: '未查询到考试结果,请重新确认',
icon: 'none' icon: 'none'
}) })
} }
...@@ -464,10 +499,15 @@ export default { ...@@ -464,10 +499,15 @@ export default {
// 切换到学习中心时显示弹窗 // 切换到学习中心时显示弹窗
if (item.name === 'StudyCenter') { if (item.name === 'StudyCenter') {
this.getLevelExamInfo()
}
},
// 查询等级弹窗信息
async getLevelExamInfo() {
const res = await uni.$api.commonApi.startExam() const res = await uni.$api.commonApi.startExam()
if (res) { if (res) {
this.showStudyPopup = true this.showStudyPopup = true
} this.courseInfo = res
} }
}, },
handleFooter (val) { handleFooter (val) {
...@@ -607,6 +647,10 @@ export default { ...@@ -607,6 +647,10 @@ export default {
if (!noInterceptPage.includes(item.name)) { if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) { if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
if (await this.getLimitRecord()) {
this.showStudyPermissionPopup = true
return
}
} }
if (await this.checkDailyReport(sceneType != 7)) return if (await this.checkDailyReport(sceneType != 7)) return
} }
......
...@@ -419,11 +419,17 @@ export default { ...@@ -419,11 +419,17 @@ export default {
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str] let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中 //当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) { if (goodsArr.length == 1) {
let { chooseList } = this,
addIndex = -1
chooseList.map((item, ind) => {
if (item.goodsFlag == 2 && item.multipleSpecificationsGoods.id == goodsList[index].multipleSpecificationsGoods.id) addIndex = ind
})
goodsList[index].active = true goodsList[index].active = true
goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0] goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId goodsList[index].multipleSpecificationsGoods.goods.goodsId = goodsList[index].multipleSpecificationsGoods.goods.merchantGoodsId
goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/') goodsList[index].multipleSpecificationsGoods.goods.specificationStr = goodsList[index].multipleSpecificationsGoods.goods.specificationData.replace(/;~;/g, '/')
this.chooseList.push(goodsList[index]) if (addIndex == -1) this.chooseList.push(goodsList[index])
else this.chooseList[addIndex] = goodsList[index]
this.$emit('choose', this.chooseList) this.$emit('choose', this.chooseList)
} else { } else {
//多个多规格商品时出现弹窗 //多个多规格商品时出现弹窗
...@@ -450,12 +456,16 @@ export default { ...@@ -450,12 +456,16 @@ export default {
}) })
let { chooseList } = this let { chooseList } = this
chooseList.forEach((item, ind) => { chooseList.forEach((item, ind) => {
if (item.multipleSpecificationsGoods.id === goodsList[index].multipleSpecificationsGoods.id) { if (item.goodsFlag == 2 && item.multipleSpecificationsGoods.id == goodsList[index].multipleSpecificationsGoods.id) {
chooseList.splice(ind, 1) chooseList.splice(ind, 1)
console.log(chooseList)
} }
}) })
// this.chooseList = chooseList
console.log(this.chooseList)
this.$emit('choose', this.chooseList) this.$emit('choose', this.chooseList)
} }
// console.log(this.list, index, goodsList[index])
this.$set(this.list, index, goodsList[index]) this.$set(this.list, index, goodsList[index])
} else { } else {
if (goodsList[index].active) { if (goodsList[index].active) {
...@@ -466,7 +476,7 @@ export default { ...@@ -466,7 +476,7 @@ export default {
}) })
let { chooseList } = this let { chooseList } = this
chooseList.forEach((item, ind) => { chooseList.forEach((item, ind) => {
if (item.multipleSpecificationsGoods.id === goodsList[index].multipleSpecificationsGoods.id) { if (item.goodsFlag == 2 && item.multipleSpecificationsGoods.id === goodsList[index].multipleSpecificationsGoods.id) {
chooseList.splice(ind, 1) chooseList.splice(ind, 1)
} }
}) })
......
...@@ -221,7 +221,7 @@ const componentConfig = { ...@@ -221,7 +221,7 @@ const componentConfig = {
loadComplete: false, loadComplete: false,
placeholder: '查找', placeholder: '查找',
nullTips: '请选择客户', nullTips: '请选择客户',
idKey: 'phone', idKey: 'customerId',
cacheData: [], cacheData: [],
loadComplete: false, loadComplete: false,
searchValue: '', searchValue: '',
......
...@@ -3,10 +3,10 @@ const screenList = [ ...@@ -3,10 +3,10 @@ const screenList = [
title: '选必修', title: '选必修',
componentName: 'CourseOptionList', componentName: 'CourseOptionList',
params: { params: {
idKey: 'required', idKey: 'planCourseType',
options: [ options: [
{ label: '必修', value: 'required' }, { label: '必修', value: 1 },
{ label: '选修', value: 'optional' } { label: '选修', value: 2 }
] ]
} }
}, },
...@@ -14,10 +14,15 @@ const screenList = [ ...@@ -14,10 +14,15 @@ const screenList = [
title: '课程类型', title: '课程类型',
componentName: 'CourseOptionList', componentName: 'CourseOptionList',
params: { params: {
idKey: 'courseType', idKey: 'courseFileType',
options: [ options: [
{ label: '视频', value: 'video' }, { label: '视频', value: 10 },
{ label: '文档', value: 'document' } { label: '音频', value: 80 },
{ label: '混合', value: 20 },
{ label: '文档', value: 30 },
{ label: 'H5', value: 40 },
{ label: 'URL', value: 70 },
{ label: '图文', value: 120 }
] ]
} }
}, },
...@@ -25,10 +30,10 @@ const screenList = [ ...@@ -25,10 +30,10 @@ const screenList = [
title: '评分', title: '评分',
componentName: 'CourseOptionList', componentName: 'CourseOptionList',
params: { params: {
idKey: 'rating', idKey: 'totalStar',
options: [ options: [
{ label: '4星以上', value: '4' }, { label: '4星以上', value: 8 },
{ label: '3星以上', value: '3' } { label: '3星以上', value: 6 }
] ]
} }
} }
......
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
<!-- 第二段描述(橙色) --> <!-- 第二段描述(橙色) -->
<view class="highlight-text"> <view class="highlight-text">
<template v-if="lockReason === 0">
到学习中心-我的课程-待学习,完成课程学习后,即可解锁开单权限。 到学习中心-我的课程-待学习,完成课程学习后,即可解锁开单权限。
</template>
<template v-if="lockReason === 1">
到学习中心-我的任务,完成长课程学习任务后,即可解锁开单权限。
</template>
</view> </view>
<!-- 第三段描述 --> <!-- 第三段描述 -->
...@@ -27,6 +32,12 @@ ...@@ -27,6 +32,12 @@
<script> <script>
export default { export default {
props: {
lockReason: {
type: Number,
default: 0
}
},
name: 'StudyCenterPermissionPopup', name: 'StudyCenterPermissionPopup',
methods: { methods: {
handleGoToStudy() { handleGoToStudy() {
...@@ -42,6 +53,7 @@ export default { ...@@ -42,6 +53,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-bottom: toRpx(48);
} }
.popup-title { .popup-title {
...@@ -63,16 +75,18 @@ export default { ...@@ -63,16 +75,18 @@ export default {
font-family: "HarmonyOSSansSC"; font-family: "HarmonyOSSansSC";
text-align: center; text-align: center;
line-height: toRpx(48); line-height: toRpx(48);
margin-bottom: toRpx(48); margin-bottom: toRpx(40);
} }
.highlight-text { .highlight-text {
width: toRpx(656); background-color: #FEF5EA;
padding: toRpx(8) toRpx(32);
border-radius: toRpx(8);
width: toRpx(720);
min-height: toRpx(104); min-height: toRpx(104);
color: #ff9d0a; color: #ff9d0a;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: center; text-align: center;
line-height: toRpx(52); line-height: toRpx(52);
margin-bottom: toRpx(64); margin-bottom: toRpx(64);
...@@ -100,7 +114,8 @@ export default { ...@@ -100,7 +114,8 @@ export default {
font-family: "HarmonyOSSansSC"; font-family: "HarmonyOSSansSC";
text-align: center; text-align: center;
line-height: toRpx(80); line-height: toRpx(80);
margin-bottom: toRpx(48); // margin-bottom: toRpx(48);
margin-top: auto;
&:active { &:active {
opacity: 0.8; opacity: 0.8;
......
<!-- 开始学习之旅 -->
<template> <template>
<view v-if="show" class="study-popup-mask" @click="handleMaskClick"> <view v-if="show" class="study-popup-mask" @click="handleMaskClick">
<view <view
...@@ -11,9 +12,12 @@ ...@@ -11,9 +12,12 @@
class="top-image" class="top-image"
:src="topImage" :src="topImage"
:style="topImageStyle" :style="topImageStyle"
mode="aspectFill"
/> />
<view v-if="closeButton" @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
<!-- 标题 --> <!-- 标题 -->
<view v-if="title" class="popup-title">{{ title }}</view> <view v-if="title" class="popup-title">{{ title }}</view>
...@@ -63,6 +67,10 @@ export default { ...@@ -63,6 +67,10 @@ export default {
maskClosable: { maskClosable: {
type: Boolean, type: Boolean,
default: false default: false
},
closeButton: {
type: Boolean,
default: false
} }
}, },
computed: { computed: {
...@@ -91,6 +99,9 @@ export default { ...@@ -91,6 +99,9 @@ export default {
close() { close() {
this.$emit('update:show', false) this.$emit('update:show', false)
this.$emit('close') this.$emit('close')
},
closePopup() {
this.close()
} }
} }
} }
...@@ -120,7 +131,11 @@ export default { ...@@ -120,7 +131,11 @@ export default {
max-height: toRpx(740); max-height: toRpx(740);
overflow-y: auto; overflow-y: auto;
} }
.sprite-icon {
top: toRpx(48);
right: toRpx(48);
position: absolute;
}
.top-image { .top-image {
width: 100%; width: 100%;
display: block; display: block;
......
...@@ -82,47 +82,45 @@ export default { ...@@ -82,47 +82,45 @@ export default {
} }
.content-card { .content-card {
width: 720rpx; width: toRpx(720);
opacity: 1; opacity: 1;
border-radius: 20rpx; border-radius: toRpx(20);
background: rgba(247, 248, 250, 1); background: rgba(247, 248, 250, 1);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
padding: 32rpx 40rpx; padding: toRpx(32) toRpx(40);
box-sizing: border-box; box-sizing: border-box;
} }
.card-title { .card-title {
font-size: 36rpx; font-size: toRpx(36);
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
line-height: 40rpx; line-height: toRpx(40);
color: rgba(41, 45, 51, 1); color: rgba(41, 45, 51, 1);
text-align: left; text-align: left;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
} }
.description-text { .description-text {
width: 640rpx; width: toRpx(640);
font-size: 32rpx; font-size: toRpx(32);
font-weight: 400; font-weight: 400;
letter-spacing: 0; letter-spacing: 0;
line-height: 48rpx; line-height: toRpx(48);
color: rgba(108, 111, 117, 1); color: rgba(108, 111, 117, 1);
margin-bottom: 16rpx;
} }
.list-wrapper { .list-wrapper {
width: 100%; width: 100%;
margin-top: 16rpx; margin-top: toRpx(16);
} }
.list-item { .list-item {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: 8rpx;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
...@@ -130,32 +128,32 @@ export default { ...@@ -130,32 +128,32 @@ export default {
} }
.dot { .dot {
width: 8rpx; width: toRpx(8);
height: 8rpx; height: toRpx(8);
border-radius: 50%; border-radius: 50%;
background: rgba(108, 111, 117, 1); background: rgba(108, 111, 117, 1);
margin-top: 18rpx; margin-top: toRpx(18);
margin-right: 12rpx; margin-right: toRpx(12);
flex-shrink: 0; flex-shrink: 0;
} }
.list-text { .list-text {
flex: 1; flex: 1;
font-size: 32rpx; font-size: toRpx(32);
font-weight: 400; font-weight: 400;
letter-spacing: 0; letter-spacing: 0;
line-height: 52rpx; line-height: toRpx(52);
color: rgba(108, 111, 117, 1); color: rgba(108, 111, 117, 1);
} }
.tip-text { .tip-text {
width: 720rpx; width: toRpx(720);
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
line-height: 32.82rpx; line-height: toRpx(32.82);
color: rgba(108, 111, 117, 1); color: rgba(108, 111, 117, 1);
margin-top: 56rpx; margin-top: toRpx(56);
text-align: center; text-align: center;
.highlight { .highlight {
...@@ -164,19 +162,19 @@ export default { ...@@ -164,19 +162,19 @@ export default {
} }
.action-button { .action-button {
width: 720rpx; width: toRpx(720);
height: 80rpx; height: toRpx(80);
border-radius: 48rpx; border-radius: toRpx(48);
background: linear-gradient(180deg, rgba(44, 102, 247, 1) 0%, rgba(72, 166, 255, 1) 100%); background: linear-gradient(180deg, rgba(44, 102, 247, 1) 0%, rgba(72, 166, 255, 1) 100%);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-top: 16rpx; margin-top: toRpx(16);
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
letter-spacing: 0; letter-spacing: 0;
line-height: 40rpx; line-height: toRpx(40);
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
......
<template> <template>
<view class="two-level-select-box"> <view class="two-level-select-box">
<view <view class="select" @click.stop="toggleSelect">
class="select"
@click.stop="isSelect = !isSelect"
>
{{ currentLabel }} {{ currentLabel }}
<view class="sprite-icon icon-arrow-bottom"></view> <view class="sprite-icon icon-arrow-bottom"></view>
</view> </view>
<view <view class="pop-box" v-if="isSelect">
class="pop-box" <view class="first-level-box ">
v-if="isSelect" <view v-for="(item, index) in selectList" :key="index" class="type-item flex" :class="getItemClass(index, item)"
> @click="chooseFirstLevel(index, item)">
<view class="first-level-box">
<view
v-for="(item, index) in selectList"
:key="index"
class="type-item flex"
:class="getItemClass(index, item)"
@click="chooseFirstLevel(index, item)"
>
<view class="item-label">{{ item[labelKey] }}</view> <view class="item-label">{{ item[labelKey] }}</view>
</view> </view>
</view> </view>
<view <view class="second-level-box" v-if="showSecondLevel && currentFirstLevel && currentFirstLevel.children && currentFirstLevel.children.length">
class="second-level-box" <view v-for="(child, childIndex) in currentFirstLevel.children" :key="childIndex" class="type-item flex"
> :class="childIndex === selectSecondIndex ? 'active' : ''" @click.stop="chooseSecondLevel(childIndex, child)">
<view
v-for="(child, childIndex) in currentFirstLevel.children"
:key="childIndex"
class="type-item flex"
:class="childIndex === selectSecondIndex ? 'active' : ''"
@click.stop="chooseSecondLevel(childIndex, child)"
>
{{ child[labelKey] }} {{ child[labelKey] }}
</view> </view>
</view> </view>
...@@ -54,11 +36,27 @@ export default { ...@@ -54,11 +36,27 @@ export default {
selectFirstIndex: 0, selectFirstIndex: 0,
selectSecondIndex: -1, selectSecondIndex: -1,
isSelect: false, isSelect: false,
currentFirstLevel: [{ showSecondLevel: false,
categoryName: '全部分类', currentFirstLevel: null
id: 'all', }
children: [{ categoryName: '全部', id: 'all_all' }] },
}] watch: {
selectList: {
immediate: true,
handler (n) {
if (Array.isArray(n) && n.length) {
this.selectFirstIndex = 0
this.currentFirstLevel = n[0]
if (this.currentFirstLevel.children && this.currentFirstLevel.children.length) {
this.showSecondLevel = true
const idx = this.currentFirstLevel.children.findIndex(c => c[this.labelKey] === '全部')
this.selectSecondIndex = idx !== -1 ? idx : 0
} else {
this.showSecondLevel = false
this.selectSecondIndex = -1
}
}
}
} }
}, },
computed: { computed: {
...@@ -68,7 +66,11 @@ export default { ...@@ -68,7 +66,11 @@ export default {
// 如果有选中的二级分类 // 如果有选中的二级分类
if (this.selectSecondIndex >= 0 && firstItem.children && firstItem.children[this.selectSecondIndex]) { if (this.selectSecondIndex >= 0 && firstItem.children && firstItem.children[this.selectSecondIndex]) {
return firstItem.children[this.selectSecondIndex][this.labelKey] console.log(111111)
const child = firstItem.children[this.selectSecondIndex]
const childLabel = child[this.labelKey]
if (childLabel === '全部') return firstItem[this.labelKey]
return childLabel
} }
// 否则显示一级分类 // 否则显示一级分类
...@@ -78,7 +80,7 @@ export default { ...@@ -78,7 +80,7 @@ export default {
methods: { methods: {
getItemClass(index, item) { getItemClass(index, item) {
const classes = [] const classes = []
if (index === this.selectFirstIndex && this.selectSecondIndex === -1) { if (index === this.selectFirstIndex) {
classes.push('active') classes.push('active')
} }
if (item.children && item.children.length) { if (item.children && item.children.length) {
...@@ -89,12 +91,24 @@ export default { ...@@ -89,12 +91,24 @@ export default {
hideSelect() { hideSelect() {
this.isSelect = false this.isSelect = false
}, },
toggleSelect() {
this.isSelect = !this.isSelect
if (this.isSelect && this.currentFirstLevel && this.currentFirstLevel.children && this.currentFirstLevel.children.length) {
this.showSecondLevel = true
}
},
chooseFirstLevel(index, item) { chooseFirstLevel(index, item) {
// 如果有二级菜单,显示二级菜单 // 如果有二级菜单,显示二级菜单
if (item.children && item.children.length) { if (item.children && item.children.length) {
this.currentFirstLevel = item this.currentFirstLevel = item
this.selectFirstIndex = index this.selectFirstIndex = index
// this.selectSecondIndex = -1 this.showSecondLevel = true
const idx = item.children.findIndex(c => c[this.labelKey] === '全部')
this.selectSecondIndex = idx !== -1 ? idx : 0
if(item.children.length === 1 && item.children[0][this.labelKey] === '全部') {
this.isSelect = false
this.$emit('chooseType', { item, index, level: 1 })
}
} else { } else {
// 没有二级菜单,直接选中 // 没有二级菜单,直接选中
this.selectFirstIndex = index this.selectFirstIndex = index
...@@ -106,6 +120,14 @@ export default { ...@@ -106,6 +120,14 @@ export default {
chooseSecondLevel(childIndex, child) { chooseSecondLevel(childIndex, child) {
this.selectSecondIndex = childIndex this.selectSecondIndex = childIndex
this.isSelect = false this.isSelect = false
const isAll = child && child[this.labelKey] === '全部'
if (isAll) {
this.$emit('chooseType', {
item: this.currentFirstLevel,
index: this.selectFirstIndex,
level: 1
})
} else {
this.$emit('chooseType', { this.$emit('chooseType', {
item: child, item: child,
index: childIndex, index: childIndex,
...@@ -115,6 +137,7 @@ export default { ...@@ -115,6 +137,7 @@ export default {
}) })
} }
} }
}
} }
</script> </script>
...@@ -138,8 +161,6 @@ export default { ...@@ -138,8 +161,6 @@ export default {
position: absolute; position: absolute;
top: toRpx(100); top: toRpx(100);
left: 0; left: 0;
// width: 100%;
// width: toRpx(592);
background: #ffffff; background: #ffffff;
box-shadow: 0 0 toRpx(16) 0 #99999933; box-shadow: 0 0 toRpx(16) 0 #99999933;
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -148,26 +169,29 @@ export default { ...@@ -148,26 +169,29 @@ export default {
display: flex; display: flex;
.first-level-box { .first-level-box {
min-width: toRpx(176); text-align: left;
.item-label {
display: inline-block;
white-space: nowrap;
}
} }
.second-level-box { .second-level-box {
width: toRpx(400); width: toRpx(400);
// border-left: 1px solid #f0f0f0; max-height: toRpx(400);
overflow-y: auto
} }
.type-item { .type-item {
padding: 0 toRpx(28); padding: 0 toRpx(28);
margin-bottom: toRpx(8); margin-bottom: toRpx(8);
height: toRpx(84); height: toRpx(84);
justify-content: center; // justify-content: center;
align-items: center; align-items: center;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} } &.active {
&.active {
background-color: #ecf1ff; background-color: #ecf1ff;
} }
} }
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2 const index = 1
/** /**
* *
0本地 0本地
......
...@@ -68,7 +68,7 @@ uni.signHttpConfig = { ...@@ -68,7 +68,7 @@ uni.signHttpConfig = {
}, },
error: (error, config) => { error: (error, config) => {
console.log('error事件触发', error, config) console.log('error事件触发', error, config)
if(error && error.errMsg == 'request:fail') { if (error && error.errMsg == 'request:fail') {
return uni.showToast({ return uni.showToast({
title: '网络异常', title: '网络异常',
icon: 'none', icon: 'none',
......
...@@ -248,6 +248,21 @@ export default { ...@@ -248,6 +248,21 @@ export default {
confirmColor: '#347BFF' confirmColor: '#347BFF'
}) })
return Promise.resolve(data) return Promise.resolve(data)
} },
// 限制录单
async getLimitRecord () {
const data = await uni.$api.commonApi.getLimitRecord()
if (data)
console.log(data, '限制录单')
// uni.showModal({
// title: '温馨提示',
// content: '您已到学习次数上限,禁止录单!\n请在平板电脑上展业助手-学习中心完成学习。',
// showCancel: false,
// cancelColor: '#292D33',
// confirmText: '确定',
// confirmColor: '#347BFF'
// })
return Promise.resolve(data)
},
} }
} }
...@@ -140,6 +140,12 @@ ...@@ -140,6 +140,12 @@
} }
}, },
{ {
"path": "pages/common/studyCenter/courseDetail",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/msgwebview" "path": "pages/common/msgwebview"
}, },
{ {
......
...@@ -52,6 +52,7 @@ import Package from './Package.vue' ...@@ -52,6 +52,7 @@ import Package from './Package.vue'
import SkuGoods from './SkuGoods.vue' import SkuGoods from './SkuGoods.vue'
import { FORM_LIST, popupTypeEnum, payTypeList } from '../contant' import { FORM_LIST, popupTypeEnum, payTypeList } from '../contant'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
import { validateVin, formatVinInput } from '@/utils/vinVaildate'
export default { export default {
name: 'CreateOrder', name: 'CreateOrder',
mixins: [interceptionMixin], mixins: [interceptionMixin],
...@@ -216,6 +217,7 @@ export default { ...@@ -216,6 +217,7 @@ export default {
positionTypeList: [], positionTypeList: [],
valueKey: '', valueKey: '',
totalPrice: 0, totalPrice: 0,
validateState:null,
// 产品槽位配置,用于循环渲染产品组件 // 产品槽位配置,用于循环渲染产品组件
productSlots: { productSlots: {
frontGear: true, frontGear: true,
...@@ -382,6 +384,21 @@ export default { ...@@ -382,6 +384,21 @@ export default {
inputBlur(e, val) { inputBlur(e, val) {
console.log(e, val) console.log(e, val)
this.orderObj.customer[val.value] = this.orderObj[val.value] this.orderObj.customer[val.value] = this.orderObj[val.value]
// VIN车架号动态校验:车架号字段,动态转换为大写
let standNoVal = this.orderObj.standNo;
if (val.value === 'standNo' && standNoVal) {
this.orderObj.standNo = formatVinInput(standNoVal)
validateVin(this.orderObj.standNo).then(result => {
console.log("validateVin",result);
let { valid } = result.data;
this.validateState = valid
// 校验成功,所有提示已在公共方法中处理
console.log('车架号校验成功:', result)
}).catch(err => {
console.log("validateVinErr",result);
})
}
}, },
// 校验必填等规则 // 校验必填等规则
checkRequired() { checkRequired() {
...@@ -430,9 +447,9 @@ export default { ...@@ -430,9 +447,9 @@ export default {
} }
} }
if (this.orderObj.standNo) { // if (this.orderObj.standNo) {
if (!utils.validateVIN(this.orderObj.standNo)) throw '车架号校验不匹配,请核对后重新输入' // if (!utils.validateVIN(this.orderObj.standNo)) throw '车架号校验不匹配,请核对后重新输入'
} // }
// 处理onlyLabel为true的特殊校验 // 处理onlyLabel为true的特殊校验
if (onlyLabelItem.length > 0) { if (onlyLabelItem.length > 0) {
...@@ -458,8 +475,22 @@ export default { ...@@ -458,8 +475,22 @@ export default {
// 提交 // 提交
async submit() { async submit() {
console.log(this.orderObj) // VIN车架号-动态校验
if (!this.checkRequired()) return const carVin = this.orderObj.standNo
console.log("validateState",this.validateState);
if (carVin) {
// 前置判断
if (carVin.length !== 17) {
uni.showToast({title:'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)',icon:'none'})
return false
}
// 根据接口校验结果判断
if (carVin.length === 17 && !this.validateState) {
uni.showToast({title:'车架号校验不匹配,请核对后重新输入',icon:'none'})
return false
}
}
if (!(await this.checkDailyReport())) { if (!(await this.checkDailyReport())) {
const { orderCreateType } = this const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj) const obj = utils.deepClone(this.orderObj)
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
:placeholder="i.inputPlaceholder || '请输入'" :placeholder="i.inputPlaceholder || '请输入'"
placeholder-class="placeholder" placeholder-class="placeholder"
@blur="handleCarInputBlur($event, i , item , index)" @blur="handleCarInputBlur($event, i , item , index)"
:maxlength="3" :maxlength="i.maxlength || 3"
:key="dateKey[`${i.key}_${index}`]" :key="dateKey[`${i.key}_${index}`]"
auto-blur auto-blur
> >
...@@ -353,6 +353,7 @@ export default { ...@@ -353,6 +353,7 @@ export default {
required: true, required: true,
min: 0, min: 0,
max: 3000, max: 3000,
maxlength: 4,
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
...@@ -362,6 +363,7 @@ export default { ...@@ -362,6 +363,7 @@ export default {
required: true, required: true,
min: 0, min: 0,
max: 3000, max: 3000,
maxlength: 4,
inputPlaceholder: '' inputPlaceholder: ''
}, },
]), ]),
...@@ -635,11 +637,11 @@ export default { ...@@ -635,11 +637,11 @@ export default {
handleCarInputBlur (e, i, item, index) { handleCarInputBlur (e, i, item, index) {
let { value } = e.detail let { value } = e.detail
if (value) { if (value) {
let { key } = i, let { key, max } = i,
numbers = value.match(/\d+/g) numbers = value.match(/\d+/g)
numbers = numbers ? numbers.join('') : '' numbers = numbers ? numbers.join('') : ''
if (numbers.length > 1) numbers = numbers.replace(/^0+/, '') if (numbers.length > 1) numbers = numbers.replace(/^0+/, '')
item[key] = Math.min(Math.max(Number(numbers), 0), 100).toString() item[key] = Math.min(Math.max(Number(numbers), 0), max).toString()
this.dateKey[`${key}_${index}`] = Date.now() this.dateKey[`${key}_${index}`] = Date.now()
} }
}, },
......
...@@ -62,6 +62,7 @@ import SkuGoods from './SkuGoods.vue' ...@@ -62,6 +62,7 @@ import SkuGoods from './SkuGoods.vue'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils' import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import { DEFEAT_FORM_LIST, popupTypeEnum, payTypeList } from '../contant' import { DEFEAT_FORM_LIST, popupTypeEnum, payTypeList } from '../contant'
import { debounce } from 'lodash' import { debounce } from 'lodash'
import { validateVin, formatVinInput } from '@/utils/vinVaildate'
export default { export default {
name: 'DefeatOrder', name: 'DefeatOrder',
components: { components: {
...@@ -182,6 +183,7 @@ export default { ...@@ -182,6 +183,7 @@ export default {
positionTypeList: [], positionTypeList: [],
valueKey: '', valueKey: '',
totalPrice: 0, totalPrice: 0,
validateState:null,
// 产品槽位配置,用于循环渲染产品组件 // 产品槽位配置,用于循环渲染产品组件
productSlots: { productSlots: {
frontGear: true, frontGear: true,
...@@ -333,6 +335,20 @@ export default { ...@@ -333,6 +335,20 @@ export default {
console.log(e, val) console.log(e, val)
console.log(this.orderObj) console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value] this.orderObj.customer[val.value] = this.orderObj[val.value]
// VIN车架号动态校验:车架号字段,动态转换为大写
let standNoVal = this.orderObj.standNo;
if (val.value === 'standNo' && standNoVal) {
this.orderObj.standNo = formatVinInput(standNoVal)
validateVin(this.orderObj.standNo).then(result => {
console.log("validateVin",result);
let { valid } = result.data;
this.validateState = valid
// 校验成功,所有提示已在公共方法中处理
console.log('车架号校验成功:', result)
}).catch(err => {
console.log("validateVinErr",result);
})
}
}, },
checkRequired() { checkRequired() {
const phoneRex = /^[1]([3-9])[0-9]{9}$/ const phoneRex = /^[1]([3-9])[0-9]{9}$/
...@@ -352,6 +368,21 @@ export default { ...@@ -352,6 +368,21 @@ export default {
}) })
}) })
// VIN车架号-动态校验
const carVin = this.orderObj.standNo
console.log("validateState",this.validateState);
if (carVin) {
// 前置判断
if (carVin.length !== 17) {
uni.showToast({title:'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)',icon:'none'})
return false
}
// 根据接口校验结果判断
if (carVin.length === 17 && !this.validateState) {
uni.showToast({title:'车架号校验不匹配,请核对后重新输入',icon:'none'})
return false
}
}
// 遍历requiredArr,检查orderObj中是否有对应的值 // 遍历requiredArr,检查orderObj中是否有对应的值
for (let i = 0; i < requiredArr.length; i++) { for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i] const item = requiredArr[i]
...@@ -380,18 +411,17 @@ export default { ...@@ -380,18 +411,17 @@ export default {
} }
} }
if (this.orderObj.standNo) { // if (this.orderObj.standNo) {
const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/ // const vinRex = /^(?=.*[A-Za-z])[A-Za-z0-9]{17}$/
console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo)) // console.log(this.orderObj.standNo, vinRex.test(this.orderObj.standNo))
if (!vinRex.test(this.orderObj.standNo)) { // if (!vinRex.test(this.orderObj.standNo)) {
uni.showToast({ // uni.showToast({
title: `请输入正确的VIN码`, // title: `请输入正确的VIN码`,
icon: 'none' // icon: 'none'
}) // })
return false // return false
} // }
} // }
// 处理onlyLabel为true的特殊校验 // 处理onlyLabel为true的特殊校验
if (onlyLabelItem.length > 0) { if (onlyLabelItem.length > 0) {
// 检查frontGear、frontWindow、rearGear、rearWindow、sunRoof和couponInfo字段中是否至少有一个不为空 // 检查frontGear、frontWindow、rearGear、rearWindow、sunRoof和couponInfo字段中是否至少有一个不为空
...@@ -419,6 +449,7 @@ export default { ...@@ -419,6 +449,7 @@ export default {
// 校验是否填写昨日日报 // 校验是否填写昨日日报
let staffCheck = await checkDailyReport() let staffCheck = await checkDailyReport()
if (staffCheck) return false if (staffCheck) return false
console.log("this.checkRequired()",this.checkRequired());
if (!this.checkRequired()) return if (!this.checkRequired()) return
const { orderCreateType } = this const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj) const obj = utils.deepClone(this.orderObj)
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../../assets/images/boutique/nothing.png" /> <image class="icon" src="../../../../assets/images/common/noData.png" />
暂无数据 暂无数据
</view> </view>
</template> </template>
...@@ -118,12 +118,20 @@ export default { ...@@ -118,12 +118,20 @@ export default {
} }
}, },
startStudy(item, index) { startStudy(item, index) {
const beisenToken = uni.$storage.get('beisenToken')
if (!beisenToken) {
uni.showToast({
title: '培训账号未创建',
icon: 'none'
})
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this; let { pageNum, total, nothing = 'nothing', pageSize } = this;
uni.$track.add({ eventCode: 'app_completed_course', businessId: item.id, pagePath: '/pages/common/studyCenter/myCourse' }) // uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=completed&index=${index}&completedCourseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}` url: `/pages/common/studyCenter/courseDetail?apiType=getMyCourseList&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}&learnStatus=2`
}) })
} },
} }
} }
</script> </script>
...@@ -237,19 +245,20 @@ export default { ...@@ -237,19 +245,20 @@ export default {
} }
} }
.nothing { .nothing {
width: 100%; display: flex;
align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
margin-top: toRpx(380); height: toRpx(1000);
font-size: toRpx(28);
color: #999999; color: #999999;
font-size: toRpx(24);
.icon { .icon {
width: toRpx(678); width: toRpx(344);
height: toRpx(284); height: toRpx(208);
margin-bottom: toRpx(24); }
} }
}
.end-text { .end-text {
color: #999; color: #999;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
class="task-list-box"> class="task-list-box">
<template v-if="taskList.length"> <template v-if="taskList.length">
<view class="task-list"> <view class="task-list">
<view class="task-item" v-for="(item, index) in taskList" :key="index" @click="handleTaskItemClick(item)"> <view class="task-item" v-for="(item, index) in taskList" :key="index" @click="handleTaskItemClick(item, index)">
<!-- 左上角:必修/选修标签 --> <!-- 左上角:必修/选修标签 -->
<template v-if="item.planCourseType"> <template v-if="item.planCourseType">
<image class="course-tag-left" <image class="course-tag-left"
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../../assets/images/boutique/nothing.png" /> <image class="icon" src="../../../../assets/images/common/noData.png" />
暂无数据 暂无数据
</view> </view>
</template> </template>
...@@ -153,17 +153,20 @@ export default { ...@@ -153,17 +153,20 @@ export default {
this.nothing = true; this.nothing = true;
} }
}, },
handleTaskItemClick(item) { handleTaskItemClick(item, index) {
console.log(item) console.log(item)
}, const beisenToken = uni.$storage.get('beisenToken')
findBeiSenSSOToken() { if (!beisenToken) {
return new Promise(resolve => { uni.showToast({
const url = 'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2' title: '培训账号未创建',
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => { icon: 'none'
uni.$storage.set('beisenToken', res.data)
const studyUrl = res.data ? `${res.data}&return_url=${url}` : ''
resolve(studyUrl)
}) })
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this;
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
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`
}) })
}, },
} }
...@@ -254,7 +257,7 @@ export default { ...@@ -254,7 +257,7 @@ export default {
} }
.task-list-box { .task-list-box {
// margin-top: toRpx(24); margin-top: toRpx(40);
height: 100%; height: 100%;
} }
...@@ -397,16 +400,17 @@ export default { ...@@ -397,16 +400,17 @@ export default {
} }
.nothing { .nothing {
width: 100%; display: flex;
align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
margin-top: toRpx(270); height: toRpx(1000);
font-size: toRpx(28);
color: #999999; color: #999999;
font-size: toRpx(24);
.icon { .icon {
width: toRpx(678); width: toRpx(344);
height: toRpx(284); height: toRpx(208);
margin-bottom: toRpx(24);
} }
} }
......
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
</view> </view>
<!-- 评分星星 --> <!-- 评分星星 -->
<view v-if="!simplified && item.rating !== undefined" class="course-rating"> <view v-if="item.totalStar !== undefined" class="course-rating">
<view class="star-list"> <view class="star-list">
<image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.rating, star)" <image v-for="star in 5" :key="star" class="star-icon" :src="getStarIcon(item.totalStar, star)"
mode="aspectFit" /> mode="aspectFit" />
</view> </view>
<text class="rating-text">{{ item.rating }}</text> <text class="rating-text">{{ item.totalStar / 2 }}</text>
</view> </view>
<!-- 学习人数 --> <!-- 学习人数 -->
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image class="icon" src="../../../../assets/images/boutique/nothing.png" /> <image class="icon" src="../../../../assets/images/common/noData.png" />
暂无数据 暂无数据
</view> </view>
</template> </template>
...@@ -100,12 +100,11 @@ export default { ...@@ -100,12 +100,11 @@ export default {
}, },
mounted() { mounted() {
this.getALlCourse() this.getALlCourse()
this.asyncfindBeiSenSSOToken()
}, },
methods: { methods: {
// 获取星星图标 // 获取星星图标
getStarIcon(rating, position) { getStarIcon(rating, position) {
const roundedRating = Math.round(rating * 2) / 2 // 四舍五入到0.5 const roundedRating = Math.round(rating) / 2 // 四舍五入到0.5
const diff = roundedRating - (position - 1) const diff = roundedRating - (position - 1)
if (diff >= 1) { if (diff >= 1) {
...@@ -127,11 +126,11 @@ export default { ...@@ -127,11 +126,11 @@ export default {
}) })
const { pageNum, pageSize } = this const { pageNum, pageSize } = this
const params = { const params = {
staffPhone: uni.$storage.get('userInfo').phone, // 推荐状态 0=无推荐 1=推荐课程 learnStatus: 0, // 学习状态 0:待学习 1: 正在学习 2:已学完
pageNum, pageNum,
pageSize pageSize
} }
const res = await uni.$api.commonApi.getALlCourse(params) const res = await uni.$api.commonApi.getMyCourseList(params)
console.log(res, '全部课程') console.log(res, '全部课程')
// 临时添加测试数据字段 // 临时添加测试数据字段
const listWithTestData = res.list.map((item, index) => ({ const listWithTestData = res.list.map((item, index) => ({
...@@ -169,16 +168,21 @@ export default { ...@@ -169,16 +168,21 @@ export default {
} }
}, },
startStudy(item, index) { startStudy(item, index) {
console.log(item)
const beisenToken = uni.$storage.get('beisenToken')
if (!beisenToken) {
uni.showToast({
title: '培训账号未创建',
icon: 'none'
})
return
}
let { pageNum, total, nothing = 'nothing', pageSize } = this; let { pageNum, total, nothing = 'nothing', pageSize } = this;
uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' }) // uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/equity/index' })
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=recommendation&index=${index}&recommendCourseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}` url: `/pages/common/studyCenter/courseDetail?apiType=getMyCourseList&index=${index}&courseList=${encodeURIComponent(JSON.stringify(this.recommendCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}&learnStatus=0`
}) })
}, },
async asyncfindBeiSenSSOToken() {
const res = await uni.$api.commonApi.findBeiSenSSOToken({})
uni.$storage.set('beisenToken', res.data)
},
} }
} }
</script> </script>
...@@ -357,19 +361,20 @@ export default { ...@@ -357,19 +361,20 @@ export default {
} }
} }
.nothing { .nothing {
width: 100%; display: flex;
align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
margin-top: toRpx(280); height: toRpx(1000);
font-size: toRpx(28);
color: #999999; color: #999999;
font-size: toRpx(24);
.icon { .icon {
width: toRpx(678); width: toRpx(344);
height: toRpx(284); height: toRpx(208);
margin-bottom: toRpx(24); }
} }
}
.end-text { .end-text {
color: #999; color: #999;
......
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">课程详情</view>
</view>
<view class="detail-content">
<view class="detail-content-left">
<view class="title">课程列表</view>
<view class="scroll-view-box">
<scroll-view class="scroll-view" scroll-y @scrolltolower="pageonReachBottom">
<view :class="['scroll-view-item', selectedIndex == index ? 'active' : '']"
v-for="(item, index) in courseList" :key="index" @click="openCourse(index, item)">
<image class="recommendation-img" src="../../../assets/images/common/recommend-course-default2.webp"
mode="scaleToFill" />
<view class="item-content">
<view class="recommendation-title">{{ item.title }}</view>
<view class="item-info">
<view class="item-info-label">{{ (item.totalDuration || item.totalDuration === 0) ?
`${item.totalDuration}min` : '-' }}</view>
</view>
</view>
<view class="item-btn">
学习
</view>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
<view class="detail-content-right">
<view class="web-view-box">
<web-view ref="studyWebview" v-if="jumpUrl" :src="jumpUrl"></web-view>
</view>
</view>
</view>
</view>
</template>
<script>
const statusMap = {
1: '未学习',
2: '未完成',
3: '待考核',
4: '未通过',
5: '已完成'
}
export default {
data() {
return {
statusMap,
courseList: [],
recommendCourseList: [],
apiType: '',
selectedIndex: 0,
jumpUrl: '',
webviewHistory: [],
pageData: {},
nothing: false,
tokenUrl: '',
otherParams: {}
}
},
onLoad(options) {
this.apiType = options.apiType;
this.pageData = {
pageNum: options.pageNum,
pageSize: options.pageSize,
total: options.total
}
if (options.apiType == 'getMyCourseList') {
this.otherParams = {
learnStatus: options.learnStatus
}
}
this.selectedIndex = options.index;
let courseId = null;
if (options.courseList) {
this.courseList = JSON.parse(decodeURIComponent(options.courseList));
courseId = this.courseList[options.index].courseId;
}
console.log(this.courseList, 'this.courseList')
this.handleOperation(courseId);
// 只在页面初始化时设置webview的样式
this.setWebviewStyle();
},
onBackPress(options) {
if (options.from === "backbutton") {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
this.backPage();
return true;
}
// 其他情况允许正常返回
return false;
},
methods: {
backPage() {
// const currentWebview = this.$scope.$getAppWebview().children()[0];
// if(currentWebview){
// currentWebview.close()
// }
uni.navigateBack()
},
async openCourse(index, item) {
console.log(index, 'index')
this.selectedIndex = index;
this.tokenUrl = await this.findBeiSenSSOToken() // 每次都重新获取token,防止过期
// const arr = ['80cb90d7-1609-4360-8f23-6c47ddba41c0', '17983a1a-5bcd-4e7d-a180-061ef3f9a49d']
// 只更换url
this.handleOperation(item.courseId);
// if (this.type === 'recommendation') {
// uni.$track.add({ eventCode: 'app_recommend_course', businessId: item.id, pagePath: '/pages/common/studyDetail/detail' })
// } else if (this.type === 'long') {
// uni.$track.add({ eventCode: 'app_long_course', businessId: item.id, pagePath: '/pages/common/studyDetail/detail' })
// }
},
findBeiSenSSOToken() {
return new Promise(resolve => {
uni.$api.commonApi.findBeiSenSSOToken({}).then(res => {
uni.$storage.set('beisenToken', res.data)
resolve(res.data)
})
})
},
handleOperation(courseId) {
// 只处理课程详情,设置jumpUrl
const COURSE_ID = courseId;
const baseUrl = 'https://cloud.italent.cn/PageHome/Index';
const params = {
product: 'Learning',
keyName: 'Nusion',
pageCode: 'LearningCourseTraineeDetailPage',
appCode: 'Learning',
id: COURSE_ID
};
this.jumpUrl = ''
const queryString = Object.entries(params)
.map(([key, value]) => `${key}=${value}`)
.join('&');
const tokenUrl = this.tokenUrl || uni.$storage.get('beisenToken')
// this.setWebviewStyle()
const url = encodeURIComponent(`${baseUrl}?${queryString}#/viewDynamic?1=1`);
this.jumpUrl = `${tokenUrl}&return_url=${url}`;
},
setWebviewStyle() {
// 只在页面初始化时设置webview的样式
// plus.navigator.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0')
const setWebviewStyleWithRetry = () => {
console.log(this.$scope.$getAppWebview(), 'this.$parent.$scope')
const currentWebview = this.$scope.$getAppWebview();
const wv = currentWebview.children()[0];
console.log(wv, 'wv')
if (wv) {
wv.setStyle({
left: '470',
top: '100',
height: '620',
width: '653',
borderRadius: '24',
overflow: 'hidden'
});
return true; // 成功设置样式
} else {
return false; // 未找到wv
}
};
const retrySetWebviewStyle = () => {
if (!setWebviewStyleWithRetry()) {
// 如果未成功,继续重试
setTimeout(retrySetWebviewStyle, 50);
} else {
// 成功设置样式,结束循环
console.log('Webview样式设置成功');
}
};
setTimeout(retrySetWebviewStyle, 100);
},
pageonReachBottom() {
console.log('到底了', this.pageData, pageNum < Math.ceil(total / pageSize));
const { pageNum, pageSize, total } = this.pageData;
if (pageNum < Math.ceil(total / pageSize)) {
this.pageData.pageNum = Number(this.pageData.pageNum) + 1;
this.getCourseTaskPage();
} else {
this.nothing = true;
}
},
// 获取我的任务接口, completeStatus: 完成状态 0=待完成 1=已完成, courseType: 课程类型 1=短课程 2=长课程
async getCourseTaskPage() {
try {
uni.showLoading({
mask: true
})
const { apiType } = this
const { pageNum, pageSize } = this.pageData
const params = {
pageNum,
pageSize,
staffPhone: uni.$storage.get('userInfo').phone
}
const res = await uni.$api.commonApi[apiType]({...params, ...this.otherParams})
if (pageNum == 1) {
this.courseList = res.list
} else {
this.courseList = this.courseList.concat(res.list)
}
uni.hideLoading()
this.total = res.total
this.nothing = res.length ? true : false
} catch (error) {
uni.showToast({
title: error,
icon: "none",
});
}
},
}
}
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) 0;
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.detail-content {
display: flex;
height: calc(100vh - #{toRpx(214)});
.detail-content-left {
width: toRpx(800);
height: 100%;
background: #fff;
border-radius: toRpx(32);
background: #ffffff59;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
margin-right: toRpx(32);
z-index: 999999;
.title {
font-size: toRpx(34);
color: #292D33;
font-weight: 700;
padding: toRpx(32) toRpx(48);
}
.scroll-view-box {
display: flex;
padding: 0 toRpx(32) toRpx(32);
height: calc(100% - #{toRpx(110)});
}
.scroll-view {
border-radius: toRpx(24);
background-color: #fff;
height: 100%;
.scroll-view-item {
position: relative;
display: flex;
padding: toRpx(24);
align-items: center;
&:first-child {
border-radius: toRpx(24) toRpx(24) 0 0;
}
&:last-child {
border-radius: 0 0 toRpx(24) toRpx(24);
}
&:first-child:last-child {
/* 只有一个元素时,四个角都圆角 */
border-radius: toRpx(24);
}
&.active {
background: #EBF0FF;
}
.item-img {
width: toRpx(128);
height: toRpx(160);
border-radius: toRpx(16);
}
.recommendation-img {
width: toRpx(128);
height: toRpx(144);
border-radius: toRpx(16);
}
.item-content {
display: flex;
flex-direction: column;
margin-left: toRpx(24);
width: toRpx(364);
.item-title {
font-size: toRpx(30);
color: #333333;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
margin-bottom: toRpx(16);
}
.recommendation-title {
color: #292D33;
font-size: toRpx(30);
margin-bottom: toRpx(8);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
}
.item-info {
display: flex;
align-items: center;
font-size: toRpx(24);
&:not(:last-child) {
margin-bottom: toRpx(10);
}
.item-info-label {
color: #999EA8;
margin-right: toRpx(24);
}
.item-info-value {
display: inline-flex;
align-items: center;
justify-content: center;
color: #666666;
&.orange {
color: #F59619;
}
&.green {
color: #2CCA74;
}
.dot-value {
width: toRpx(12);
height: toRpx(12);
border-radius: 50%;
background: #F59619;
margin-right: toRpx(8);
}
}
}
}
.item-btn {
margin-left: auto;
width: toRpx(148);
height: toRpx(64);
border-radius: toRpx(24);
background: #F1F7FE;
font-size: toRpx(26);
color: #3B73FF;
text-align: center;
line-height: toRpx(64);
}
.completed-bg {
width: toRpx(112);
height: toRpx(112);
position: absolute;
bottom: toRpx(56);
right: toRpx(40);
top: 50%;
transform: translateY(-50%);
}
}
}
}
.detail-content-right {
flex: 1;
background: #fff;
border-radius: toRpx(32);
background: #ffffff;
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
.web-view-box {
border-radius: toRpx(32);
overflow: hidden;
}
}
}
.end-text {
color: #999;
text-align: center;
padding: toRpx(30) 0;
font-size: toRpx(24);
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="back" @click="back"> <view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000000"></uni-icons> <uni-icons type="left" :size="20" color="#000000"></uni-icons>
</view> </view>
<view class="title">我的课程1</view> <view class="title">我的课程</view>
</view> </view>
</view> </view>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
</view> </view>
<!-- 提示信息 --> <!-- 提示信息-->
<view class="tips" v-if="residueInfo.remindType != 0"> <view class="tips" v-if="residueInfo.remindType != 0">
<view class="sprite-icon icon-study-tips"></view> <view class="sprite-icon icon-study-tips"></view>
<view class="tips-text" v-if="residueInfo.remindType == '1'">剩余{{ residueInfo.residueDays }}天完成必修课学习及通过课后考试,过期将锁定开单权限</view> <view class="tips-text" v-if="residueInfo.remindType == '1'">剩余{{ residueInfo.residueDays }}天完成必修课学习及通过课后考试,过期将锁定开单权限</view>
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
console.log('MyCoursePage mounted') console.log('MyCoursePage mounted')
this.getMyCourseTabCount() this.getMyCourseTabCount()
this.getStudyCenterResidueTime() this.getStudyCenterResidueTime()
this.asyncfindBeiSenSSOToken() // 获取北森权限
}, },
methods: { methods: {
back() { back() {
...@@ -87,7 +88,11 @@ export default { ...@@ -87,7 +88,11 @@ export default {
async getStudyCenterResidueTime() { async getStudyCenterResidueTime() {
const res = await uni.$api.commonApi.getStudyCenterResidueTime() const res = await uni.$api.commonApi.getStudyCenterResidueTime()
this.residueInfo = res this.residueInfo = res
} },
async asyncfindBeiSenSSOToken() {
const res = await uni.$api.commonApi.findBeiSenSSOToken({})
uni.$storage.set('beisenToken', res.data)
},
} }
} }
</script> </script>
......
...@@ -44,11 +44,26 @@ export default { ...@@ -44,11 +44,26 @@ export default {
return { return {
currentTab: 0, currentTab: 0,
tabList: [ tabList: [
{ label: '已通过', count: '3' }, { label: '已通过', count: '0' },
{ label: '未通过', count: '2' } { label: '未通过', count: '0' }
] ]
} }
}, },
created() {
// 在组件创建时就开始监听,确保事件能被捕获
uni.$on('showExamSubmitPopup', () => {
console.log('接收到考试提交弹窗事件')
if (this.currentTab === 1) {
this.$refs.failedExam.showExamPopup = true
} else if (this.currentTab === 0) {
this.$refs.passedExam.showExamPopup = true
}
})
},
beforeDestroy() {
// 组件销毁前移除监听
uni.$off('showExamSubmitPopup')
},
mounted() { mounted() {
this.getExamStatistics() this.getExamStatistics()
}, },
......
...@@ -120,10 +120,10 @@ export default { ...@@ -120,10 +120,10 @@ export default {
this.wv = wv this.wv = wv
// 设置 webview 从导航栏下方开始显示 // 设置 webview 从导航栏下方开始显示
wv.setStyle({ wv.setStyle({
top: '56', // 状态栏(48) + 导航栏(88) = 136rpx 转换为 68px top: '26', // 状态栏(48) + 导航栏(88) = 136rpx 转换为 68px
left: '0', left: '0',
width: '100%', width: '100%',
height: 'calc(100% - 136rpx)' // 减去顶部导航栏高度 height: '724' // 减去顶部导航栏高度
}) })
console.log('✅ webview 样式设置成功') console.log('✅ webview 样式设置成功')
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
<!-- 支付弹框 --> <!-- 支付弹框 -->
<OrderPay <OrderPay
ref="OrderPay" ref="OrderPay"
@closePopup="closePopup"
@jumpSuccess="jumpSuccess" @jumpSuccess="jumpSuccess"
/> />
</view> </view>
...@@ -109,7 +110,7 @@ import UploadProofOfPayment from './UploadProofOfPayment.vue' ...@@ -109,7 +110,7 @@ import UploadProofOfPayment from './UploadProofOfPayment.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import OrderPay from './OrderPay.vue' import OrderPay from './OrderPay.vue'
import NP from 'number-precision' import NP from 'number-precision'
import { validateVin, formatVinInput } from '@/utils/vinVaildate'
export default { export default {
name: 'CreateOrder', name: 'CreateOrder',
mixins: [interceptionMixin], mixins: [interceptionMixin],
...@@ -201,7 +202,8 @@ export default { ...@@ -201,7 +202,8 @@ export default {
valueKey: '', valueKey: '',
popupTitle: '', popupTitle: '',
pointsMultiRole: 'Y', pointsMultiRole: 'Y',
formKey: Date.now() formKey: Date.now(),
validateState:null
} }
...@@ -354,7 +356,7 @@ export default { ...@@ -354,7 +356,7 @@ export default {
customerKeyList.map(key => { customerKeyList.map(key => {
if (owner[key] != null) orderObj[key] = owner[key] if (owner[key] != null) orderObj[key] = owner[key]
}) })
if (owner.id) orderObj.customerId = owner.id if (owner.id) orderObj.ownerId = owner.id
this.orderObj = orderObj this.orderObj = orderObj
this.getConfig() this.getConfig()
setTimeout(() => { setTimeout(() => {
...@@ -448,7 +450,7 @@ export default { ...@@ -448,7 +450,7 @@ export default {
if (val.value == 'payee') this.changePayee() if (val.value == 'payee') this.changePayee()
}, },
// 弹窗确认回调 // 弹窗确认回调
onConfirm (val) { onConfirm (val, flag) {
console.log(val, 'onConfirm') console.log(val, 'onConfirm')
this.externalData = [] this.externalData = []
// // const { chooseContent } = val // // const { chooseContent } = val
...@@ -473,14 +475,13 @@ export default { ...@@ -473,14 +475,13 @@ export default {
this.$set(this.orderObj, 'skuGoods', chooseContent) this.$set(this.orderObj, 'skuGoods', chooseContent)
} else { } else {
// 过滤出已选的goodFlag为2的对象 // 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj.skuGoods.filter(item => item.goodsFlag === 2) const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = chooseContent.filter(item => item.goodsFlag != 2) const singleGoods = flag ? this.orderObj[_typeValue.key].filter(item => item.goodsFlag != 2) : chooseContent.filter(item => item.goodsFlag != 2)
const moreGoods = chooseContent const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2) .filter(item => item.goodsFlag === 2)
.filter(item => { .filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.goods.goodsId === item.multipleSpecificationsGoods.goods.goodsId) return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.goods.goodsId === item.multipleSpecificationsGoods.goods.goodsId)
}) })
console.log(singleGoods, '===') console.log(singleGoods, '===')
// 合并已选的goodFlag为2的对象 // 合并已选的goodFlag为2的对象
this.orderObj.skuGoods = [...singleGoods, ...moreGoods, ...selectedGoods] this.orderObj.skuGoods = [...singleGoods, ...moreGoods, ...selectedGoods]
...@@ -507,12 +508,27 @@ export default { ...@@ -507,12 +508,27 @@ export default {
}, },
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur (e, val) { inputBlur (e, val) {
console.log("SSSSSS");
console.log(e, val) console.log(e, val)
if (val.value == 'price') { if (val.value == 'price') {
this.orderObj[val.value] = parseFloat(this.orderObj[val.value]) > 2000000 ? 2000000 : this.orderObj[val.value] this.orderObj[val.value] = parseFloat(this.orderObj[val.value]) > 2000000 ? 2000000 : this.orderObj[val.value]
return return
} }
this.orderObj[val.value] = this.orderObj[val.value] this.orderObj[val.value] = this.orderObj[val.value]
// VIN车架号动态校验:车架号字段,动态转换为大写
let carVinVal = this.orderObj.carVin;
if (val.value === 'carVin' && carVinVal) {
this.orderObj.carVin = formatVinInput(carVinVal)
validateVin(this.orderObj.carVin).then(result => {
console.log("validateVin",result);
let { valid } = result.data;
this.validateState = valid
// 校验成功,所有提示已在公共方法中处理
console.log('车架号校验成功:', result)
}).catch(err => {
console.log("validateVinErr",result);
})
}
}, },
// 校验必填等规则 // 校验必填等规则
checkRequired () { checkRequired () {
...@@ -530,6 +546,21 @@ export default { ...@@ -530,6 +546,21 @@ export default {
} }
}) })
}) })
// VIN车架号-动态校验
const carVin = this.orderObj.carVin
console.log("validateState",this.validateState);
if (carVin) {
// 前置判断
if (carVin.length !== 17) {
uni.showToast({title:'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)',icon:'none'})
return false
}
// 根据接口校验结果判断
if (carVin.length === 17 && !this.validateState) {
uni.showToast({title:'车架号校验不匹配,请核对后重新输入',icon:'none'})
return false
}
}
// 遍历requiredArr,检查orderObj中是否有对应的值 // 遍历requiredArr,检查orderObj中是否有对应的值
for (let i = 0; i < requiredArr.length; i++) { for (let i = 0; i < requiredArr.length; i++) {
const item = requiredArr[i] const item = requiredArr[i]
...@@ -539,9 +570,9 @@ export default { ...@@ -539,9 +570,9 @@ export default {
// 如果是customerPhone,添加phoneRex校验 // 如果是customerPhone,添加phoneRex校验
if (item.value === 'phone' && !phoneRex.test(value)) throw `请输入正确的${item.label}` if (item.value === 'phone' && !phoneRex.test(value)) throw `请输入正确的${item.label}`
} }
if (orderObj.carVin) { // if (orderObj.carVin) {
if (!utils.validateVIN(orderObj.carVin)) throw '车架号校验不匹配,请核对后重新输入' // if (!utils.validateVIN(orderObj.carVin)) throw '车架号校验不匹配,请核对后重新输入'
} // }
if (onlyLabelItem.length) { if (onlyLabelItem.length) {
const labelFields = ['skuGoods'] const labelFields = ['skuGoods']
...@@ -712,7 +743,7 @@ export default { ...@@ -712,7 +743,7 @@ export default {
customerKeyList.map(key => { customerKeyList.map(key => {
if (orderInfo[key] != null) params.owner[key] = orderInfo[key] if (orderInfo[key] != null) params.owner[key] = orderInfo[key]
}) })
if (orderInfo.customerId) params.owner.id = orderInfo.customerId if (orderInfo.ownerId) params.owner.id = orderInfo.ownerId
return params return params
}, },
// 乘以100保留两位小数点 // 乘以100保留两位小数点
...@@ -874,6 +905,7 @@ export default { ...@@ -874,6 +905,7 @@ export default {
salesType = customerInfo.salesType || '0', salesType = customerInfo.salesType || '0',
city = customerInfo.customerCity city = customerInfo.customerCity
Object.assign(orderObj, { Object.assign(orderObj, {
customerId: customerInfo.id,
owner: customerInfo.customerName, owner: customerInfo.customerName,
phone: customerInfo.customerPhone, phone: customerInfo.customerPhone,
ownerGender, ownerGender,
...@@ -948,6 +980,9 @@ export default { ...@@ -948,6 +980,9 @@ export default {
} }
return parseFloat(strVal) return parseFloat(strVal)
}, },
closePopup(){
this.$emit('jump', 'OrderManagement')
}
} }
} }
</script> </script>
......
...@@ -637,6 +637,8 @@ export default { ...@@ -637,6 +637,8 @@ export default {
...carBand, ...carBand,
firstBrandId, firstBrandId,
firstBrandName, firstBrandName,
deliveryCountRecord: carBand.deliveryCount,
notDeliveryCountRecord: carBand.notDeliveryCount,
brandId, brandId,
brandName, brandName,
brandType, brandType,
...@@ -687,9 +689,9 @@ export default { ...@@ -687,9 +689,9 @@ export default {
if (numbers.length > 1) numbers = numbers.replace(/^0+/, '') if (numbers.length > 1) numbers = numbers.replace(/^0+/, '')
this.orderObj[key] = Math.min(Math.max(Number(numbers), 0), 100).toString() this.orderObj[key] = Math.min(Math.max(Number(numbers), 0), 100).toString()
this.dateKey[key] = Date.now() this.dateKey[key] = Date.now()
console.log(key)
if ( if (
this.isNotEmpty(orderObj.recordStaffCount) && this.isNotEmpty(orderObj.recordStaffCount) &&
this.isNotEmpty(value) &&
orderObj.recordStaffCount != value && orderObj.recordStaffCount != value &&
orderObj.lastStaffUuid && orderObj.lastStaffUuid &&
userInfo.uuid != orderObj.lastStaffUuid userInfo.uuid != orderObj.lastStaffUuid
...@@ -718,6 +720,11 @@ export default { ...@@ -718,6 +720,11 @@ export default {
) )
}, },
handleCarInputBlur (e, i, item, index) { handleCarInputBlur (e, i, item, index) {
const { orderObj,
userInfo,
carBandList
} = this
console.log(carBandList,'===')
let { value } = e.detail let { value } = e.detail
if (value) { if (value) {
let { key, max } = i, let { key, max } = i,
...@@ -726,6 +733,31 @@ export default { ...@@ -726,6 +733,31 @@ export default {
if (numbers.length > 1) numbers = numbers.replace(/^0+/, '') if (numbers.length > 1) numbers = numbers.replace(/^0+/, '')
item[key] = Math.min(Math.max(Number(numbers), 0), max).toString() item[key] = Math.min(Math.max(Number(numbers), 0), max).toString()
this.dateKey[`${key}_${index}`] = Date.now() this.dateKey[`${key}_${index}`] = Date.now()
if (['deliveryCount', 'notDeliveryCount'].includes(key) && orderObj.onBreak == 'N') {
let checkName = `${key}Record`,
checkValue = carBandList[index][checkName]
if (
this.isNotEmpty(item[key]) &&
this.isNotEmpty(carBandList[index][checkName]) &&
checkValue != value &&
orderObj.lastStaffUuid &&
userInfo.uuid != orderObj.lastStaffUuid) {
let context = i.label
this.noticeObj = {
title: '重要提示',
text: `${context}与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,${context}将被清空。`,
type: 'warning',
buttons: [
{
text: '确定',
type: 'primary',
}
]
}
this.$nextTick(() => this.$refs.reportNotice.open())
}
}
console.log(key)
} }
}, },
async submit () { async submit () {
...@@ -842,7 +874,7 @@ export default { ...@@ -842,7 +874,7 @@ export default {
showModal = true showModal = true
carBandList.forEach(el => { carBandList.forEach(el => {
if (el.brandType == item.brandType) { if (el.brandType == item.brandType) {
context += `【${item.brandName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue context += `【${item.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n` },请相关驻店销售对齐核销再次提交\t\n`
} }
}) })
......
...@@ -143,6 +143,7 @@ export default { ...@@ -143,6 +143,7 @@ export default {
closePopup () { closePopup () {
this.show = false this.show = false
this.$refs.payPopup.closePopup() this.$refs.payPopup.closePopup()
this.$emit('closePopup')
} }
} }
......
...@@ -151,6 +151,7 @@ import dayjs from 'dayjs' ...@@ -151,6 +151,7 @@ import dayjs from 'dayjs'
import permision from '@/js_sdk/wa-permission/permission.js' import permision from '@/js_sdk/wa-permission/permission.js'
import { sign, md532, md516 } from 'utils/common' import { sign, md532, md516 } from 'utils/common'
import { signSecretKey } from '@/env.js' import { signSecretKey } from '@/env.js'
import { validateVin, formatVinInput } from '@/utils/vinVaildate'
export default { export default {
name: 'AddEvaluationFrom', name: 'AddEvaluationFrom',
components: { components: {
...@@ -548,7 +549,8 @@ export default { ...@@ -548,7 +549,8 @@ export default {
], ],
uploadOtherFields: [{ key: 41, label: '其他图片', required: false, accept: 'image', maxCount: 30, fullwidth: true }], uploadOtherFields: [{ key: 41, label: '其他图片', required: false, accept: 'image', maxCount: 30, fullwidth: true }],
currentField: null, currentField: null,
query: {} query: {},
validateVinState:null
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -872,22 +874,38 @@ export default { ...@@ -872,22 +874,38 @@ export default {
} }
// 车架号验证 - 长度17且只能包含数字和大写字母 // 车架号验证 - 长度17且只能包含数字和大写字母
const vin = this.formData.carBaseReqDTO.vin // const vin = this.formData.carBaseReqDTO.vin
const vinRegex = /^[A-Z0-9]+$/ // const vinRegex = /^[A-Z0-9]+$/
if (!vinRegex.test(vin)) { // if (!vinRegex.test(vin)) {
uni.showToast({ // uni.showToast({
title: '车架号只能包含数字和大写字母', // title: '车架号只能包含数字和大写字母',
icon: 'none' // icon: 'none'
}) // })
return // return
// }
// if (vin.length != 17) {
// uni.showToast({
// title: '车架号必须为17位',
// icon: 'none'
// })
// return
// }
// VIN车架号-动态校验
const carVin = this.formData.carBaseReqDTO.vin
console.log("validateState",this.validateState);
if (carVin) {
// 前置判断
if (carVin.length !== 17) {
uni.showToast({title:'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)',icon:'none'})
return false
}
// 根据接口校验结果判断
if (carVin.length === 17 && !this.validateState) {
uni.showToast({title:'车架号校验不匹配,请核对后重新输入',icon:'none'})
return false
} }
if (vin.length != 17) {
uni.showToast({
title: '车架号必须为17位',
icon: 'none'
})
return
} }
const engineNumber = this.formData.carBaseReqDTO.engineNumber const engineNumber = this.formData.carBaseReqDTO.engineNumber
const engineNumberRegex = /^[A-Za-z0-9]+$/ const engineNumberRegex = /^[A-Za-z0-9]+$/
...@@ -990,7 +1008,7 @@ export default { ...@@ -990,7 +1008,7 @@ export default {
}, },
handleCell(field) { handleCell(field) {
const that = this const that = this
console.log("handleCellAAAAA");
if (field.isCar) { if (field.isCar) {
this.openSelectCar() this.openSelectCar()
} else if (field.isCity) { } else if (field.isCity) {
...@@ -1110,6 +1128,17 @@ export default { ...@@ -1110,6 +1128,17 @@ export default {
if (upperValue !== value) { if (upperValue !== value) {
this.$set(this.formData.carBaseReqDTO, 'vin', upperValue) this.$set(this.formData.carBaseReqDTO, 'vin', upperValue)
} }
// VIN车架号动态校验:车架号字段,动态转换为大写
validateVin(upperValue).then(result => {
console.log("validateVin",result);
let { valid } = result.data;
this.validateState = valid
// 校验成功,所有提示已在公共方法中处理
console.log('车架号校验成功:', result)
}).catch(err => {
console.log("validateVinErr",result);
})
} }
if (field.key === 'mileage') { if (field.key === 'mileage') {
let numValue = Number(value) let numValue = Number(value)
...@@ -1285,6 +1314,15 @@ export default { ...@@ -1285,6 +1314,15 @@ export default {
if (res.data.code == 0) { if (res.data.code == 0) {
if (res.data.data.status == 1) { if (res.data.data.status == 1) {
this.formData.carBaseReqDTO.vin = res.data.data.vin this.formData.carBaseReqDTO.vin = res.data.data.vin
validateVin(this.formData.carBaseReqDTO.vin).then(result => {
console.log("validateVin",result);
let { valid } = result.data;
this.validateState = valid
// 校验成功,所有提示已在公共方法中处理
console.log('车架号校验成功:', result)
}).catch(err => {
console.log("validateVinErr",result);
})
uni.showToast({ title: '车架号识别完成并已自动填写到表单中', icon: 'none' }) uni.showToast({ title: '车架号识别完成并已自动填写到表单中', icon: 'none' })
uni.hideLoading() uni.hideLoading()
} else { } else {
......
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
'@js-preview/docx':
specifier: ^1.6.4
version: 1.6.4(core-js@3.47.0)
'@js-preview/excel':
specifier: ^1.7.14
version: 1.7.14
'@js-preview/pdf':
specifier: ^2.0.10
version: 2.0.10
core-js:
specifier: ^3.44.0
version: 3.47.0
dayjs:
specifier: ^1.11.11
version: 1.11.19
eslint-config-prettier:
specifier: ^9.1.0
version: 9.1.2(eslint@9.39.1)
eslint-plugin-prettier:
specifier: ^5.1.3
version: 5.5.4(eslint-config-prettier@9.1.2(eslint@9.39.1))(eslint@9.39.1)(prettier@3.7.4)
glsk-toolkit:
specifier: 1.0.4
version: 1.0.4
hammerjs:
specifier: ^2.0.8
version: 2.0.8
lodash:
specifier: ^4.17.21
version: 4.17.21
number-precision:
specifier: ^1.6.0
version: 1.6.0
pinyin.js:
specifier: ^2.0.0
version: 2.0.0
prettier:
specifier: ^3.3.2
version: 3.7.4
uview-ui:
specifier: ^2.0.38
version: 2.0.38
webpack-spritesmith:
specifier: ^1.1.0
version: 1.1.0
packages:
'@eslint-community/eslint-utils@4.9.0':
resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
'@eslint-community/regexpp@4.12.2':
resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
'@eslint/config-array@0.21.1':
resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/config-helpers@0.4.2':
resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/core@0.17.0':
resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/eslintrc@3.3.3':
resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/js@9.39.1':
resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/object-schema@2.1.7':
resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/plugin-kit@0.4.1':
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@humanfs/core@0.19.1':
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
engines: {node: '>=18.18.0'}
'@humanfs/node@0.16.7':
resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
engines: {node: '>=18.18.0'}
'@humanwhocodes/module-importer@1.0.1':
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
engines: {node: '>=12.22'}
'@humanwhocodes/retry@0.4.3':
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
engines: {node: '>=18.18'}
'@js-preview/docx@1.6.4':
resolution: {integrity: sha512-F6Yzac5NWnXp7cKzcUYGSLQHdp5ELgpdgTzrj5i4QZkZHv4ASGHhVY0MZF4YRjpY/MwirD8C1W14CIRUcdvL7g==}
peerDependencies:
core-js: ^3.0.0
'@js-preview/excel@1.7.14':
resolution: {integrity: sha512-7QHtuRalWQzWIKARc/IRN8+kj1S5eWV4+cAQipzZngE3mVxMPL1RHXKJt/ONmpcKZ410egYkaBuOOs9+LctBkA==}
'@js-preview/pdf@2.0.10':
resolution: {integrity: sha512-S1PYUIfHQGPqEwgGk8TQ8wf5rec2ubE7nixSd0iQGO7ecm+B7BNkAAPkotnUCNAaDo16NL+fw07mblhU3t9eZw==}
'@pkgr/core@0.2.9':
resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
'@sentry-internal/feedback@7.120.4':
resolution: {integrity: sha512-eSwgvTdrh03zYYaI6UVOjI9p4VmKg6+c2+CBQfRZX++6wwnCVsNv7XF7WUIpVGBAkJ0N2oapjQmCzJKGKBRWQg==}
engines: {node: '>=12'}
'@sentry-internal/replay-canvas@7.120.4':
resolution: {integrity: sha512-2+W4CgUL1VzrPjArbTid4WhKh7HH21vREVilZdvffQPVwOEpgNTPAb69loQuTlhJVveh9hWTj2nE5UXLbLP+AA==}
engines: {node: '>=12'}
'@sentry-internal/tracing@7.120.4':
resolution: {integrity: sha512-Fz5+4XCg3akeoFK+K7g+d7HqGMjmnLoY2eJlpONJmaeT9pXY7yfUyXKZMmMajdE2LxxKJgQ2YKvSCaGVamTjHw==}
engines: {node: '>=8'}
'@sentry/browser@7.120.4':
resolution: {integrity: sha512-ymlNtIPG6HAKzM/JXpWVGCzCNufZNADfy+O/olZuVJW5Be1DtOFyRnBvz0LeKbmxJbXb2lX/XMhuen6PXPdoQw==}
engines: {node: '>=8'}
'@sentry/core@7.120.4':
resolution: {integrity: sha512-TXu3Q5kKiq8db9OXGkWyXUbIxMMuttB5vJ031yolOl5T/B69JRyAoKuojLBjRv1XX583gS1rSSoX8YXX7ATFGA==}
engines: {node: '>=8'}
'@sentry/integrations@7.120.4':
resolution: {integrity: sha512-kkBTLk053XlhDCg7OkBQTIMF4puqFibeRO3E3YiVc4PGLnocXMaVpOSCkMqAc1k1kZ09UgGi8DxfQhnFEjUkpA==}
engines: {node: '>=8'}
'@sentry/replay@7.120.4':
resolution: {integrity: sha512-FW8sPenNFfnO/K7sncsSTX4rIVak9j7VUiLIagJrcqZIC7d1dInFNjy8CdVJUlyz3Y3TOgIl3L3+ZpjfyMnaZg==}
engines: {node: '>=12'}
'@sentry/types@7.120.4':
resolution: {integrity: sha512-cUq2hSSe6/qrU6oZsEP4InMI5VVdD86aypE+ENrQ6eZEVLTCYm1w6XhW1NvIu3UuWh7gZec4a9J7AFpYxki88Q==}
engines: {node: '>=8'}
'@sentry/utils@7.120.4':
resolution: {integrity: sha512-zCKpyDIWKHwtervNK2ZlaK8mMV7gVUijAgFeJStH+CU/imcdquizV3pFLlSQYRswG+Lbyd6CT/LGRh3IbtkCFw==}
engines: {node: '>=8'}
'@types/estree@1.0.8':
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies:
acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
acorn@8.15.0:
resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
engines: {node: '>=0.4.0'}
hasBin: true
ajv@6.12.6:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
ansi-styles@4.3.0:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
engines: {node: '>=8'}
any-promise@1.3.0:
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
asn1@0.2.6:
resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==}
assert-plus@1.0.0:
resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==}
engines: {node: '>=0.8'}
async@3.2.6:
resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
asynckit@0.4.0:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
aws-sign2@0.7.0:
resolution: {integrity: sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==}
aws4@1.13.2:
resolution: {integrity: sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==}
balanced-match@1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
bcrypt-pbkdf@1.0.2:
resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==}
big.js@5.2.2:
resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
bin-pack@1.0.2:
resolution: {integrity: sha512-aOk0SxEon5LF9cMxQFViSKb4qccG6rs7XKyMXIb1J8f8LA2acTIWnHdT0IOTe4gYBbqgjdbuTZ5f+UP+vlh4Mw==}
brace-expansion@1.1.12:
resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
callsites@3.1.0:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
caseless@0.12.0:
resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==}
chalk@4.1.2:
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
engines: {node: '>=10'}
clone-stats@0.0.1:
resolution: {integrity: sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==}
clone@1.0.4:
resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==}
engines: {node: '>=0.8'}
color-convert@2.0.1:
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
engines: {node: '>=7.0.0'}
color-name@1.1.4:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
combined-stream@1.0.8:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
concat-stream@1.5.2:
resolution: {integrity: sha512-H6xsIBfQ94aESBG8jGHXQ7i5AEpy5ZeVaLDOisDICiTCKpqEfr34/KmTrspKQNoLKNu9gTkovlpQcUi630AKiQ==}
engines: {'0': node >= 0.8}
contentstream@1.0.0:
resolution: {integrity: sha512-jqWbfFZFG9tZbdej7+TzXI4kanABh3BLtTWY6NxqTK5zo6iTIeo5aq4iRVfYsLQ0y8ccQqmJR/J4NeMmEdnR2w==}
engines: {node: '>= 0.8.0'}
core-js@3.47.0:
resolution: {integrity: sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg==}
core-util-is@1.0.2:
resolution: {integrity: sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==}
core-util-is@1.0.3:
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
cross-spawn@7.0.6:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
crypto-js@4.2.0:
resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==}
cwise-compiler@1.1.3:
resolution: {integrity: sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ==}
dashdash@1.14.1:
resolution: {integrity: sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==}
engines: {node: '>=0.10'}
data-uri-to-buffer@0.0.3:
resolution: {integrity: sha512-Cp+jOa8QJef5nXS5hU7M1DWzXPEIoVR3kbV0dQuVGwROZg8bGf1DcCnkmajBTnvghTtSNMUdRrPjgaT6ZQucbw==}
dayjs@1.11.19:
resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==}
debug@4.4.3:
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
deep-is@0.1.4:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
delayed-stream@1.0.0:
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
engines: {node: '>=0.4.0'}
ecc-jsbn@0.1.2:
resolution: {integrity: sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==}
emojis-list@3.0.0:
resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==}
engines: {node: '>= 4'}
escape-string-regexp@4.0.0:
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
eslint-config-prettier@9.1.2:
resolution: {integrity: sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
eslint-plugin-prettier@5.5.4:
resolution: {integrity: sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
'@types/eslint': '>=8.0.0'
eslint: '>=8.0.0'
eslint-config-prettier: '>= 7.0.0 <10.0.0 || >=10.1.0'
prettier: '>=3.0.0'
peerDependenciesMeta:
'@types/eslint':
optional: true
eslint-config-prettier:
optional: true
eslint-scope@8.4.0:
resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint-visitor-keys@3.4.3:
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
eslint-visitor-keys@4.2.1:
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
eslint@9.39.1:
resolution: {integrity: sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true
peerDependencies:
jiti: '*'
peerDependenciesMeta:
jiti:
optional: true
espree@10.4.0:
resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
esquery@1.6.0:
resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
engines: {node: '>=0.10'}
esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
engines: {node: '>=4.0'}
estraverse@5.3.0:
resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
engines: {node: '>=4.0'}
esutils@2.0.3:
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
engines: {node: '>=0.10.0'}
extend@3.0.2:
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
extsprintf@1.3.0:
resolution: {integrity: sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==}
engines: {'0': node >=0.6.0}
fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
fast-diff@1.3.0:
resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
fast-json-stable-stringify@2.1.0:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
fast-levenshtein@2.0.6:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
file-entry-cache@8.0.0:
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
engines: {node: '>=16.0.0'}
find-up@5.0.0:
resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
engines: {node: '>=10'}
first-chunk-stream@1.0.0:
resolution: {integrity: sha512-ArRi5axuv66gEsyl3UuK80CzW7t56hem73YGNYxNWTGNKFJUadSb9Gu9SHijYEUi8ulQMf1bJomYNwSCPHhtTQ==}
engines: {node: '>=0.10.0'}
flat-cache@4.0.1:
resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
engines: {node: '>=16'}
flatted@3.3.3:
resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
forever-agent@0.6.1:
resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==}
form-data@2.3.3:
resolution: {integrity: sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==}
engines: {node: '>= 0.12'}
fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
gaze@1.1.3:
resolution: {integrity: sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==}
engines: {node: '>= 4.0.0'}
get-pixels@3.3.3:
resolution: {integrity: sha512-5kyGBn90i9tSMUVHTqkgCHsoWoR+/lGbl4yC83Gefyr0HLIhgSWEx/2F/3YgsZ7UpYNuM6pDhDK7zebrUJ5nXg==}
getpass@0.1.7:
resolution: {integrity: sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==}
gif-encoder@0.4.3:
resolution: {integrity: sha512-HMfSa+EIng62NbDhM63QGYoc49/m8DcZ9hhBtw+CXX9mKboSpeFVxjZ2WEWaMFZ14MUjfACK7jsrxrJffIVrCg==}
engines: {node: '>= 0.8.0'}
glob-parent@6.0.2:
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
engines: {node: '>=10.13.0'}
glob@7.1.7:
resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==}
deprecated: Glob versions prior to v9 are no longer supported
globals@14.0.0:
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
globule@1.3.4:
resolution: {integrity: sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg==}
engines: {node: '>= 0.10'}
glsk-toolkit@1.0.4:
resolution: {integrity: sha512-43g3qaYtSfxzSG4dVjr0gDmD/tvVnCZuQ+ONK2mkmuqzhclsTsuSLfn6enjQZELmvWQGj45YhEU7XdQ8sTKroA==}
graceful-fs@4.2.11:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
hammerjs@2.0.8:
resolution: {integrity: sha512-tSQXBXS/MWQOn/RKckawJ61vvsDpCom87JgxiYdGwHdOa0ht0vzUWDlfioofFCRU0L+6NGDt6XzbgoJvZkMeRQ==}
engines: {node: '>=0.8.0'}
handlebars-layouts@3.1.4:
resolution: {integrity: sha512-2llBmvnj8ueOfxNHdRzJOcgalzZjYVd9+WAl93kPYmlX4WGx7FTHTzNxhK+i9YKY2OSjzfehgpLiIwP/OJr6tw==}
engines: {node: '>= 0.10'}
handlebars@4.7.8:
resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==}
engines: {node: '>=0.4.7'}
hasBin: true
har-schema@2.0.0:
resolution: {integrity: sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==}
engines: {node: '>=4'}
har-validator@5.1.5:
resolution: {integrity: sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==}
engines: {node: '>=6'}
deprecated: this library is no longer supported
has-flag@4.0.0:
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
http-signature@1.2.0:
resolution: {integrity: sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==}
engines: {node: '>=0.8', npm: '>=1.3.7'}
ignore@5.3.2:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
immediate@3.0.6:
resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==}
import-fresh@3.3.1:
resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
engines: {node: '>=6'}
imurmurhash@0.1.4:
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
engines: {node: '>=0.8.19'}
inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
iota-array@1.0.0:
resolution: {integrity: sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA==}
is-buffer@1.1.6:
resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}
is-extglob@2.1.1:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
is-glob@4.0.3:
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
is-typedarray@1.0.0:
resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}
is-utf8@0.2.1:
resolution: {integrity: sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==}
isarray@0.0.1:
resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==}
isarray@1.0.0:
resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==}
isexe@2.0.0:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
isstream@0.1.2:
resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==}
jpeg-js@0.4.4:
resolution: {integrity: sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==}
js-yaml@4.1.1:
resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}
hasBin: true
jsbn@0.1.1:
resolution: {integrity: sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==}
json-buffer@3.0.1:
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
json-content-demux@0.1.4:
resolution: {integrity: sha512-3GqPH2O0+8qBMTa1YTuL+7L24YJYNDjdXfa798y9S6GetScZAY2iAOGCdFkEPZJZdafPKv8ZUnp18VCCPTs0Nw==}
engines: {node: '>= 0.6.0'}
json-schema-traverse@0.4.1:
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
json-schema@0.4.0:
resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}
json-stable-stringify-without-jsonify@1.0.1:
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
json-stringify-safe@5.0.1:
resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}
json5@1.0.2:
resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
hasBin: true
jsprim@1.4.2:
resolution: {integrity: sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==}
engines: {node: '>=0.6.0'}
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
layout@2.2.0:
resolution: {integrity: sha512-+kdgg25XW11BA4cl9vF+SH01HaBipld2Nf/PlU2kSYncAbdUbDoahzrlh6yhR93N/wR2TGgcFoxebzR1LKmZUg==}
engines: {node: '>= 0.8.0'}
levn@0.4.1:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
lie@3.1.1:
resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==}
loader-utils@1.4.2:
resolution: {integrity: sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==}
engines: {node: '>=4.0.0'}
localforage@1.10.0:
resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==}
locate-path@6.0.0:
resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
engines: {node: '>=10'}
lodash.merge@4.6.2:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
lodash@4.17.21:
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
mime-db@1.52.0:
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
engines: {node: '>= 0.6'}
mime-types@2.1.35:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
minimatch@3.0.8:
resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==}
minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
minimist@1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
mkdirp@0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
hasBin: true
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
mz@2.7.0:
resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
natural-compare@1.4.0:
resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
ndarray-ops@1.2.2:
resolution: {integrity: sha512-BppWAFRjMYF7N/r6Ie51q6D4fs0iiGmeXIACKY66fLpnwIui3Wc3CXiD/30mgLbDjPpSLrsqcp3Z62+IcHZsDw==}
ndarray-pack@1.2.1:
resolution: {integrity: sha512-51cECUJMT0rUZNQa09EoKsnFeDL4x2dHRT0VR5U2H5ZgEcm95ZDWcMA5JShroXjHOejmAD/fg8+H+OvUnVXz2g==}
ndarray@1.0.19:
resolution: {integrity: sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ==}
neo-async@2.6.2:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
node-bitmap@0.0.1:
resolution: {integrity: sha512-Jx5lPaaLdIaOsj2mVLWMWulXF6GQVdyLvNSxmiYCvZ8Ma2hfKX0POoR2kgKOqz+oFsRreq0yYZjQ2wjE9VNzCA==}
engines: {node: '>=v0.6.5'}
number-precision@1.6.0:
resolution: {integrity: sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ==}
oauth-sign@0.9.0:
resolution: {integrity: sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==}
obj-extend@0.1.0:
resolution: {integrity: sha512-or9c7Ue2wWCun41DuLP3+LKEUjSZcDSxfCM4HZQSX9tcjLL/yuzTW7MmtVNs+MmN16uDRpDrFmFK/WVSm4vklg==}
object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
omggif@1.0.10:
resolution: {integrity: sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==}
once@1.4.0:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
optionator@0.9.4:
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
engines: {node: '>= 0.8.0'}
p-limit@3.1.0:
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
p-locate@5.0.0:
resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
engines: {node: '>=10'}
parent-module@1.0.1:
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'}
parse-data-uri@0.2.0:
resolution: {integrity: sha512-uOtts8NqDcaCt1rIsO3VFDRsAfgE4c6osG4d9z3l4dCBlxYFzni6Di/oNU270SDrjkfZuUvLZx1rxMyqh46Y9w==}
path-exists@4.0.0:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
path-is-absolute@1.0.1:
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
engines: {node: '>=0.10.0'}
path-key@3.1.1:
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
engines: {node: '>=8'}
performance-now@2.1.0:
resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==}
pinyin.js@2.0.0:
resolution: {integrity: sha512-HpljMH6dDmySP+uoll8AkejePNKzoCiSq6rQAv6Fif9Kp3PZsEwrEt+vC9oBC0O/Nf7e6kQ6Lxfv+BQQ48jbjg==}
pixelsmith@2.6.0:
resolution: {integrity: sha512-1W0C8EVxAPJwsCodw/+dfeEtdSc8JuHFipVylf51PIvh7S7Q33qmVCCzeWQp1y1sXpZ52iXGY2D/ICMyHPIULw==}
engines: {node: '>= 12.0.0'}
pngjs-nozlib@1.0.0:
resolution: {integrity: sha512-N1PggqLp9xDqwAoKvGohmZ3m4/N9xpY0nDZivFqQLcpLHmliHnCp9BuNCsOeqHWMuEEgFjpEaq9dZq6RZyy0fA==}
engines: {iojs: '>= 1.0.0', node: '>=0.10.0'}
pngjs@3.4.0:
resolution: {integrity: sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==}
engines: {node: '>=4.0.0'}
prelude-ls@1.2.1:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
prettier-linter-helpers@1.0.0:
resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
engines: {node: '>=6.0.0'}
prettier@3.7.4:
resolution: {integrity: sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==}
engines: {node: '>=14'}
hasBin: true
process-nextick-args@1.0.7:
resolution: {integrity: sha512-yN0WQmuCX63LP/TMvAg31nvT6m4vDqJEiiv2CAZqWOGNWutc9DfDk1NPYYmKUFmaVM2UwDowH4u5AHWYP/jxKw==}
process-nextick-args@2.0.1:
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
psl@1.15.0:
resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==}
punycode@2.3.1:
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'}
qs@6.5.3:
resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==}
engines: {node: '>=0.6'}
readable-stream@1.0.34:
resolution: {integrity: sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==}
readable-stream@1.1.14:
resolution: {integrity: sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==}
readable-stream@2.0.6:
resolution: {integrity: sha512-TXcFfb63BQe1+ySzsHZI/5v1aJPCShfqvWJ64ayNImXMsN1Cd0YGk/wm8KB7/OeessgPc9QvS9Zou8QTkFzsLw==}
readable-stream@2.3.8:
resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}
replace-ext@0.0.1:
resolution: {integrity: sha512-AFBWBy9EVRTa/LhEcG8QDP3FvpwZqmvN2QFDuJswFeaVhWnZMp8q3E6Zd90SR04PlIwfGdyVjNyLPyen/ek5CQ==}
engines: {node: '>= 0.4'}
request@2.88.2:
resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==}
engines: {node: '>= 6'}
deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
resolve-from@4.0.0:
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
safe-buffer@5.1.2:
resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
safe-buffer@5.2.1:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
save-pixels@2.3.6:
resolution: {integrity: sha512-/ayfEWBxt0tFpf5lxSU1S0+/TBn7EiaTZD+6GL+mwizHm3BKCBysnzT6Js7BusDUVcNVLkeJJKLZcBgdpM2leQ==}
semver@5.7.2:
resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}
hasBin: true
shebang-command@2.0.0:
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
engines: {node: '>=8'}
shebang-regex@3.0.0:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
sprintf-js@1.1.3:
resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}
spritesheet-templates@10.5.2:
resolution: {integrity: sha512-dMrLgS5eHCEDWqo1c3mDM5rGdJpBNf1JAJrxTKA4qR54trNTtxqGZlH3ZppS5FHTgjKgOtEmycqE2vGSkCYiVw==}
engines: {node: '>= 8.0.0'}
spritesmith@3.5.1:
resolution: {integrity: sha512-FrzGx9cD5SkH3Kxuk24vJJLBYHLyDskUJ2t6DSWfWkCd8+yFQAfBGVE7F0IhOpKu+aq1CZ9rgXnpaa4luIQgGg==}
engines: {node: '>= 4.0.0'}
sshpk@1.18.0:
resolution: {integrity: sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==}
engines: {node: '>=0.10.0'}
hasBin: true
string_decoder@0.10.31:
resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==}
string_decoder@1.1.1:
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
strip-bom-stream@1.0.0:
resolution: {integrity: sha512-7jfJB9YpI2Z0aH3wu10ZqitvYJaE0s5IzFuWE+0pbb4Q/armTloEUShymkDO47YSLnjAW52mlXT//hs9wXNNJQ==}
engines: {node: '>=0.10.0'}
strip-bom@2.0.0:
resolution: {integrity: sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==}
engines: {node: '>=0.10.0'}
strip-json-comments@3.1.1:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
supports-color@7.2.0:
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
synckit@0.11.11:
resolution: {integrity: sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==}
engines: {node: ^14.18.0 || >=16.0.0}
thenify-all@1.6.0:
resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
engines: {node: '>=0.8'}
thenify@3.3.1:
resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
through2@2.0.5:
resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==}
through@2.3.8:
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
tough-cookie@2.5.0:
resolution: {integrity: sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==}
engines: {node: '>=0.8'}
tunnel-agent@0.6.0:
resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}
tweetnacl@0.14.5:
resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==}
type-check@0.4.0:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
typedarray@0.0.7:
resolution: {integrity: sha512-ueeb9YybpjhivjbHP2LdFDAjbS948fGEPj+ACAMs4xCMmh72OCOMQWBQKlaN4ZNQ04yfLSDLSx1tGRIoWimObQ==}
uglify-js@3.19.3:
resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==}
engines: {node: '>=0.8.0'}
hasBin: true
underscore.string@3.3.6:
resolution: {integrity: sha512-VoC83HWXmCrF6rgkyxS9GHv8W9Q5nhMKho+OadDJGzL2oDYbYEppBaCMH6pFlwLeqj2QS+hhkw2kpXkSdD1JxQ==}
underscore@1.13.7:
resolution: {integrity: sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==}
uniq@1.0.1:
resolution: {integrity: sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==}
uri-js@4.4.1:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
uuid@3.4.0:
resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==}
deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
hasBin: true
uview-ui@2.0.38:
resolution: {integrity: sha512-6egHDf9lXHKpG3hEjRE0vMx4+VWwKk/ReTf5x18KrIKqdvdPRqO3+B8Unh7vYYwrIxzAWIlmhZ9RJpKI/4UqPQ==}
engines: {HBuilderX: ^3.1.0}
verror@1.10.0:
resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==}
engines: {'0': node >=0.6.0}
vinyl-file@1.3.0:
resolution: {integrity: sha512-i1CGRaiDs3qJ+Yc8cgtOnrZOwlhY02oDBrWSBKD9uYSsxqQG1RhNXLmR/orke0ye0sbKpVtAUHwhF2rs9A46cQ==}
engines: {node: '>=0.10.0'}
vinyl@1.2.0:
resolution: {integrity: sha512-Ci3wnR2uuSAWFMSglZuB8Z2apBdtOyz8CV7dC6/U1XbltXBC+IuutUkXQISz01P+US2ouBuesSbV6zILZ6BuzQ==}
engines: {node: '>= 0.9'}
webpack-spritesmith@1.1.0:
resolution: {integrity: sha512-VEuk3VbZA3FXKFwEVwnxLlosqEkvwJx3kh0P2MRb7vSR8T24dhas3bicH42/wg1FyrUMWoUgcG1NuDfm4vITYQ==}
which@2.0.2:
resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
engines: {node: '>= 8'}
hasBin: true
word-wrap@1.2.5:
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
engines: {node: '>=0.10.0'}
wordwrap@1.0.0:
resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}
wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
xtend@4.0.2:
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}
yocto-queue@0.1.0:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
snapshots:
'@eslint-community/eslint-utils@4.9.0(eslint@9.39.1)':
dependencies:
eslint: 9.39.1
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.2': {}
'@eslint/config-array@0.21.1':
dependencies:
'@eslint/object-schema': 2.1.7
debug: 4.4.3
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
'@eslint/config-helpers@0.4.2':
dependencies:
'@eslint/core': 0.17.0
'@eslint/core@0.17.0':
dependencies:
'@types/json-schema': 7.0.15
'@eslint/eslintrc@3.3.3':
dependencies:
ajv: 6.12.6
debug: 4.4.3
espree: 10.4.0
globals: 14.0.0
ignore: 5.3.2
import-fresh: 3.3.1
js-yaml: 4.1.1
minimatch: 3.1.2
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
'@eslint/js@9.39.1': {}
'@eslint/object-schema@2.1.7': {}
'@eslint/plugin-kit@0.4.1':
dependencies:
'@eslint/core': 0.17.0
levn: 0.4.1
'@humanfs/core@0.19.1': {}
'@humanfs/node@0.16.7':
dependencies:
'@humanfs/core': 0.19.1
'@humanwhocodes/retry': 0.4.3
'@humanwhocodes/module-importer@1.0.1': {}
'@humanwhocodes/retry@0.4.3': {}
'@js-preview/docx@1.6.4(core-js@3.47.0)':
dependencies:
core-js: 3.47.0
'@js-preview/excel@1.7.14': {}
'@js-preview/pdf@2.0.10': {}
'@pkgr/core@0.2.9': {}
'@sentry-internal/feedback@7.120.4':
dependencies:
'@sentry/core': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry-internal/replay-canvas@7.120.4':
dependencies:
'@sentry/core': 7.120.4
'@sentry/replay': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry-internal/tracing@7.120.4':
dependencies:
'@sentry/core': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/browser@7.120.4':
dependencies:
'@sentry-internal/feedback': 7.120.4
'@sentry-internal/replay-canvas': 7.120.4
'@sentry-internal/tracing': 7.120.4
'@sentry/core': 7.120.4
'@sentry/integrations': 7.120.4
'@sentry/replay': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/core@7.120.4':
dependencies:
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/integrations@7.120.4':
dependencies:
'@sentry/core': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
localforage: 1.10.0
'@sentry/replay@7.120.4':
dependencies:
'@sentry-internal/tracing': 7.120.4
'@sentry/core': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/types@7.120.4': {}
'@sentry/utils@7.120.4':
dependencies:
'@sentry/types': 7.120.4
'@types/estree@1.0.8': {}
'@types/json-schema@7.0.15': {}
acorn-jsx@5.3.2(acorn@8.15.0):
dependencies:
acorn: 8.15.0
acorn@8.15.0: {}
ajv@6.12.6:
dependencies:
fast-deep-equal: 3.1.3
fast-json-stable-stringify: 2.1.0
json-schema-traverse: 0.4.1
uri-js: 4.4.1
ansi-styles@4.3.0:
dependencies:
color-convert: 2.0.1
any-promise@1.3.0: {}
argparse@2.0.1: {}
asn1@0.2.6:
dependencies:
safer-buffer: 2.1.2
assert-plus@1.0.0: {}
async@3.2.6: {}
asynckit@0.4.0: {}
aws-sign2@0.7.0: {}
aws4@1.13.2: {}
balanced-match@1.0.2: {}
bcrypt-pbkdf@1.0.2:
dependencies:
tweetnacl: 0.14.5
big.js@5.2.2: {}
bin-pack@1.0.2: {}
brace-expansion@1.1.12:
dependencies:
balanced-match: 1.0.2
concat-map: 0.0.1
callsites@3.1.0: {}
caseless@0.12.0: {}
chalk@4.1.2:
dependencies:
ansi-styles: 4.3.0
supports-color: 7.2.0
clone-stats@0.0.1: {}
clone@1.0.4: {}
color-convert@2.0.1:
dependencies:
color-name: 1.1.4
color-name@1.1.4: {}
combined-stream@1.0.8:
dependencies:
delayed-stream: 1.0.0
concat-map@0.0.1: {}
concat-stream@1.5.2:
dependencies:
inherits: 2.0.4
readable-stream: 2.0.6
typedarray: 0.0.7
contentstream@1.0.0:
dependencies:
readable-stream: 1.0.34
core-js@3.47.0: {}
core-util-is@1.0.2: {}
core-util-is@1.0.3: {}
cross-spawn@7.0.6:
dependencies:
path-key: 3.1.1
shebang-command: 2.0.0
which: 2.0.2
crypto-js@4.2.0: {}
cwise-compiler@1.1.3:
dependencies:
uniq: 1.0.1
dashdash@1.14.1:
dependencies:
assert-plus: 1.0.0
data-uri-to-buffer@0.0.3: {}
dayjs@1.11.19: {}
debug@4.4.3:
dependencies:
ms: 2.1.3
deep-is@0.1.4: {}
delayed-stream@1.0.0: {}
ecc-jsbn@0.1.2:
dependencies:
jsbn: 0.1.1
safer-buffer: 2.1.2
emojis-list@3.0.0: {}
escape-string-regexp@4.0.0: {}
eslint-config-prettier@9.1.2(eslint@9.39.1):
dependencies:
eslint: 9.39.1
eslint-plugin-prettier@5.5.4(eslint-config-prettier@9.1.2(eslint@9.39.1))(eslint@9.39.1)(prettier@3.7.4):
dependencies:
eslint: 9.39.1
prettier: 3.7.4
prettier-linter-helpers: 1.0.0
synckit: 0.11.11
optionalDependencies:
eslint-config-prettier: 9.1.2(eslint@9.39.1)
eslint-scope@8.4.0:
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
eslint-visitor-keys@3.4.3: {}
eslint-visitor-keys@4.2.1: {}
eslint@9.39.1:
dependencies:
'@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1)
'@eslint-community/regexpp': 4.12.2
'@eslint/config-array': 0.21.1
'@eslint/config-helpers': 0.4.2
'@eslint/core': 0.17.0
'@eslint/eslintrc': 3.3.3
'@eslint/js': 9.39.1
'@eslint/plugin-kit': 0.4.1
'@humanfs/node': 0.16.7
'@humanwhocodes/module-importer': 1.0.1
'@humanwhocodes/retry': 0.4.3
'@types/estree': 1.0.8
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.6
debug: 4.4.3
escape-string-regexp: 4.0.0
eslint-scope: 8.4.0
eslint-visitor-keys: 4.2.1
espree: 10.4.0
esquery: 1.6.0
esutils: 2.0.3
fast-deep-equal: 3.1.3
file-entry-cache: 8.0.0
find-up: 5.0.0
glob-parent: 6.0.2
ignore: 5.3.2
imurmurhash: 0.1.4
is-glob: 4.0.3
json-stable-stringify-without-jsonify: 1.0.1
lodash.merge: 4.6.2
minimatch: 3.1.2
natural-compare: 1.4.0
optionator: 0.9.4
transitivePeerDependencies:
- supports-color
espree@10.4.0:
dependencies:
acorn: 8.15.0
acorn-jsx: 5.3.2(acorn@8.15.0)
eslint-visitor-keys: 4.2.1
esquery@1.6.0:
dependencies:
estraverse: 5.3.0
esrecurse@4.3.0:
dependencies:
estraverse: 5.3.0
estraverse@5.3.0: {}
esutils@2.0.3: {}
extend@3.0.2: {}
extsprintf@1.3.0: {}
fast-deep-equal@3.1.3: {}
fast-diff@1.3.0: {}
fast-json-stable-stringify@2.1.0: {}
fast-levenshtein@2.0.6: {}
file-entry-cache@8.0.0:
dependencies:
flat-cache: 4.0.1
find-up@5.0.0:
dependencies:
locate-path: 6.0.0
path-exists: 4.0.0
first-chunk-stream@1.0.0: {}
flat-cache@4.0.1:
dependencies:
flatted: 3.3.3
keyv: 4.5.4
flatted@3.3.3: {}
forever-agent@0.6.1: {}
form-data@2.3.3:
dependencies:
asynckit: 0.4.0
combined-stream: 1.0.8
mime-types: 2.1.35
fs.realpath@1.0.0: {}
gaze@1.1.3:
dependencies:
globule: 1.3.4
get-pixels@3.3.3:
dependencies:
data-uri-to-buffer: 0.0.3
jpeg-js: 0.4.4
mime-types: 2.1.35
ndarray: 1.0.19
ndarray-pack: 1.2.1
node-bitmap: 0.0.1
omggif: 1.0.10
parse-data-uri: 0.2.0
pngjs: 3.4.0
request: 2.88.2
through: 2.3.8
getpass@0.1.7:
dependencies:
assert-plus: 1.0.0
gif-encoder@0.4.3:
dependencies:
readable-stream: 1.1.14
glob-parent@6.0.2:
dependencies:
is-glob: 4.0.3
glob@7.1.7:
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
minimatch: 3.0.8
once: 1.4.0
path-is-absolute: 1.0.1
globals@14.0.0: {}
globule@1.3.4:
dependencies:
glob: 7.1.7
lodash: 4.17.21
minimatch: 3.0.8
glsk-toolkit@1.0.4:
dependencies:
'@sentry/browser': 7.120.4
crypto-js: 4.2.0
graceful-fs@4.2.11: {}
hammerjs@2.0.8: {}
handlebars-layouts@3.1.4: {}
handlebars@4.7.8:
dependencies:
minimist: 1.2.8
neo-async: 2.6.2
source-map: 0.6.1
wordwrap: 1.0.0
optionalDependencies:
uglify-js: 3.19.3
har-schema@2.0.0: {}
har-validator@5.1.5:
dependencies:
ajv: 6.12.6
har-schema: 2.0.0
has-flag@4.0.0: {}
http-signature@1.2.0:
dependencies:
assert-plus: 1.0.0
jsprim: 1.4.2
sshpk: 1.18.0
ignore@5.3.2: {}
immediate@3.0.6: {}
import-fresh@3.3.1:
dependencies:
parent-module: 1.0.1
resolve-from: 4.0.0
imurmurhash@0.1.4: {}
inflight@1.0.6:
dependencies:
once: 1.4.0
wrappy: 1.0.2
inherits@2.0.4: {}
iota-array@1.0.0: {}
is-buffer@1.1.6: {}
is-extglob@2.1.1: {}
is-glob@4.0.3:
dependencies:
is-extglob: 2.1.1
is-typedarray@1.0.0: {}
is-utf8@0.2.1: {}
isarray@0.0.1: {}
isarray@1.0.0: {}
isexe@2.0.0: {}
isstream@0.1.2: {}
jpeg-js@0.4.4: {}
js-yaml@4.1.1:
dependencies:
argparse: 2.0.1
jsbn@0.1.1: {}
json-buffer@3.0.1: {}
json-content-demux@0.1.4: {}
json-schema-traverse@0.4.1: {}
json-schema@0.4.0: {}
json-stable-stringify-without-jsonify@1.0.1: {}
json-stringify-safe@5.0.1: {}
json5@1.0.2:
dependencies:
minimist: 1.2.8
jsprim@1.4.2:
dependencies:
assert-plus: 1.0.0
extsprintf: 1.3.0
json-schema: 0.4.0
verror: 1.10.0
keyv@4.5.4:
dependencies:
json-buffer: 3.0.1
layout@2.2.0:
dependencies:
bin-pack: 1.0.2
levn@0.4.1:
dependencies:
prelude-ls: 1.2.1
type-check: 0.4.0
lie@3.1.1:
dependencies:
immediate: 3.0.6
loader-utils@1.4.2:
dependencies:
big.js: 5.2.2
emojis-list: 3.0.0
json5: 1.0.2
localforage@1.10.0:
dependencies:
lie: 3.1.1
locate-path@6.0.0:
dependencies:
p-locate: 5.0.0
lodash.merge@4.6.2: {}
lodash@4.17.21: {}
mime-db@1.52.0: {}
mime-types@2.1.35:
dependencies:
mime-db: 1.52.0
minimatch@3.0.8:
dependencies:
brace-expansion: 1.1.12
minimatch@3.1.2:
dependencies:
brace-expansion: 1.1.12
minimist@1.2.8: {}
mkdirp@0.5.6:
dependencies:
minimist: 1.2.8
ms@2.1.3: {}
mz@2.7.0:
dependencies:
any-promise: 1.3.0
object-assign: 4.1.1
thenify-all: 1.6.0
natural-compare@1.4.0: {}
ndarray-ops@1.2.2:
dependencies:
cwise-compiler: 1.1.3
ndarray-pack@1.2.1:
dependencies:
cwise-compiler: 1.1.3
ndarray: 1.0.19
ndarray@1.0.19:
dependencies:
iota-array: 1.0.0
is-buffer: 1.1.6
neo-async@2.6.2: {}
node-bitmap@0.0.1: {}
number-precision@1.6.0: {}
oauth-sign@0.9.0: {}
obj-extend@0.1.0: {}
object-assign@4.1.1: {}
omggif@1.0.10: {}
once@1.4.0:
dependencies:
wrappy: 1.0.2
optionator@0.9.4:
dependencies:
deep-is: 0.1.4
fast-levenshtein: 2.0.6
levn: 0.4.1
prelude-ls: 1.2.1
type-check: 0.4.0
word-wrap: 1.2.5
p-limit@3.1.0:
dependencies:
yocto-queue: 0.1.0
p-locate@5.0.0:
dependencies:
p-limit: 3.1.0
parent-module@1.0.1:
dependencies:
callsites: 3.1.0
parse-data-uri@0.2.0:
dependencies:
data-uri-to-buffer: 0.0.3
path-exists@4.0.0: {}
path-is-absolute@1.0.1: {}
path-key@3.1.1: {}
performance-now@2.1.0: {}
pinyin.js@2.0.0: {}
pixelsmith@2.6.0:
dependencies:
async: 3.2.6
concat-stream: 1.5.2
get-pixels: 3.3.3
mime-types: 2.1.35
ndarray: 1.0.19
obj-extend: 0.1.0
save-pixels: 2.3.6
vinyl-file: 1.3.0
pngjs-nozlib@1.0.0: {}
pngjs@3.4.0: {}
prelude-ls@1.2.1: {}
prettier-linter-helpers@1.0.0:
dependencies:
fast-diff: 1.3.0
prettier@3.7.4: {}
process-nextick-args@1.0.7: {}
process-nextick-args@2.0.1: {}
psl@1.15.0:
dependencies:
punycode: 2.3.1
punycode@2.3.1: {}
qs@6.5.3: {}
readable-stream@1.0.34:
dependencies:
core-util-is: 1.0.3
inherits: 2.0.4
isarray: 0.0.1
string_decoder: 0.10.31
readable-stream@1.1.14:
dependencies:
core-util-is: 1.0.3
inherits: 2.0.4
isarray: 0.0.1
string_decoder: 0.10.31
readable-stream@2.0.6:
dependencies:
core-util-is: 1.0.3
inherits: 2.0.4
isarray: 1.0.0
process-nextick-args: 1.0.7
string_decoder: 0.10.31
util-deprecate: 1.0.2
readable-stream@2.3.8:
dependencies:
core-util-is: 1.0.3
inherits: 2.0.4
isarray: 1.0.0
process-nextick-args: 2.0.1
safe-buffer: 5.1.2
string_decoder: 1.1.1
util-deprecate: 1.0.2
replace-ext@0.0.1: {}
request@2.88.2:
dependencies:
aws-sign2: 0.7.0
aws4: 1.13.2
caseless: 0.12.0
combined-stream: 1.0.8
extend: 3.0.2
forever-agent: 0.6.1
form-data: 2.3.3
har-validator: 5.1.5
http-signature: 1.2.0
is-typedarray: 1.0.0
isstream: 0.1.2
json-stringify-safe: 5.0.1
mime-types: 2.1.35
oauth-sign: 0.9.0
performance-now: 2.1.0
qs: 6.5.3
safe-buffer: 5.2.1
tough-cookie: 2.5.0
tunnel-agent: 0.6.0
uuid: 3.4.0
resolve-from@4.0.0: {}
safe-buffer@5.1.2: {}
safe-buffer@5.2.1: {}
safer-buffer@2.1.2: {}
save-pixels@2.3.6:
dependencies:
contentstream: 1.0.0
gif-encoder: 0.4.3
jpeg-js: 0.4.4
ndarray: 1.0.19
ndarray-ops: 1.2.2
pngjs-nozlib: 1.0.0
through: 2.3.8
semver@5.7.2: {}
shebang-command@2.0.0:
dependencies:
shebang-regex: 3.0.0
shebang-regex@3.0.0: {}
source-map@0.6.1: {}
sprintf-js@1.1.3: {}
spritesheet-templates@10.5.2:
dependencies:
handlebars: 4.7.8
handlebars-layouts: 3.1.4
json-content-demux: 0.1.4
underscore: 1.13.7
underscore.string: 3.3.6
spritesmith@3.5.1:
dependencies:
concat-stream: 1.5.2
layout: 2.2.0
pixelsmith: 2.6.0
semver: 5.7.2
through2: 2.0.5
sshpk@1.18.0:
dependencies:
asn1: 0.2.6
assert-plus: 1.0.0
bcrypt-pbkdf: 1.0.2
dashdash: 1.14.1
ecc-jsbn: 0.1.2
getpass: 0.1.7
jsbn: 0.1.1
safer-buffer: 2.1.2
tweetnacl: 0.14.5
string_decoder@0.10.31: {}
string_decoder@1.1.1:
dependencies:
safe-buffer: 5.1.2
strip-bom-stream@1.0.0:
dependencies:
first-chunk-stream: 1.0.0
strip-bom: 2.0.0
strip-bom@2.0.0:
dependencies:
is-utf8: 0.2.1
strip-json-comments@3.1.1: {}
supports-color@7.2.0:
dependencies:
has-flag: 4.0.0
synckit@0.11.11:
dependencies:
'@pkgr/core': 0.2.9
thenify-all@1.6.0:
dependencies:
thenify: 3.3.1
thenify@3.3.1:
dependencies:
any-promise: 1.3.0
through2@2.0.5:
dependencies:
readable-stream: 2.3.8
xtend: 4.0.2
through@2.3.8: {}
tough-cookie@2.5.0:
dependencies:
psl: 1.15.0
punycode: 2.3.1
tunnel-agent@0.6.0:
dependencies:
safe-buffer: 5.2.1
tweetnacl@0.14.5: {}
type-check@0.4.0:
dependencies:
prelude-ls: 1.2.1
typedarray@0.0.7: {}
uglify-js@3.19.3:
optional: true
underscore.string@3.3.6:
dependencies:
sprintf-js: 1.1.3
util-deprecate: 1.0.2
underscore@1.13.7: {}
uniq@1.0.1: {}
uri-js@4.4.1:
dependencies:
punycode: 2.3.1
util-deprecate@1.0.2: {}
uuid@3.4.0: {}
uview-ui@2.0.38: {}
verror@1.10.0:
dependencies:
assert-plus: 1.0.0
core-util-is: 1.0.2
extsprintf: 1.3.0
vinyl-file@1.3.0:
dependencies:
graceful-fs: 4.2.11
strip-bom: 2.0.0
strip-bom-stream: 1.0.0
vinyl: 1.2.0
vinyl@1.2.0:
dependencies:
clone: 1.0.4
clone-stats: 0.0.1
replace-ext: 0.0.1
webpack-spritesmith@1.1.0:
dependencies:
gaze: 1.1.3
loader-utils: 1.4.2
lodash: 4.17.21
mkdirp: 0.5.6
mz: 2.7.0
spritesheet-templates: 10.5.2
spritesmith: 3.5.1
which@2.0.2:
dependencies:
isexe: 2.0.0
word-wrap@1.2.5: {}
wordwrap@1.0.0: {}
wrappy@1.0.2: {}
xtend@4.0.2: {}
yocto-queue@0.1.0: {}
import api from '@/api/index.js'
// 有效字符:大写 A-H/J-N/P-Z、0-9(排除 I、O、Q)
const VALID_VIN_REG = /^[A-HJ-NPR-Z0-9]{17}$/
const ERROR_MSG = '请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)'
// 防抖相关变量
let debounceTimer = null
let pendingResolve = null
let pendingReject = null
let pendingVin = null
const DEBOUNCE_DELAY = 500 // 防抖延迟时间(毫秒)
/**
* 车架号校验(统一处理版本)
* @param {string} vin - 车架号
* @returns {Promise<Object>} 返回校验结果 { success: boolean, message: string, data?: any, vin?: string }
*/
export function validateVin(vin) {
console.log("工具调用",vin);
return new Promise((resolve, reject) => {
const upperVin = vin ? vin.toUpperCase() : ''
// 格式校验失败
if (!upperVin || upperVin.length !== 17 || !VALID_VIN_REG.test(upperVin)) {
uni.showToast({
title: ERROR_MSG,
icon: 'none'
})
reject({
success: false,
message: ERROR_MSG
})
return
}
// 保存当前调用的 resolve 和 reject
pendingResolve = resolve
pendingReject = reject
pendingVin = upperVin
// 清除之前的定时器
if (debounceTimer) {
clearTimeout(debounceTimer)
}
// 设置防抖定时器
debounceTimer = setTimeout(() => {
// 执行接口调用
const currentVin = pendingVin
const currentResolve = pendingResolve
const currentReject = pendingReject
// 清空待处理变量
pendingVin = null
pendingResolve = null
pendingReject = null
debounceTimer = null
// 调用后端接口校验
api.commonApi.checkVinValidate({ vin: currentVin })
.then(res => {
console.log("checkVinValidate接口校验",res);
let { valid,message } = res
if (valid) {
// 校验成功但有提示信息
if (message) {
uni.showToast({
title: message,
icon: 'none'
})
}
currentResolve({
success: true,
message: message || '校验成功',
data: res,
vin: currentVin
})
} else {
// 接口返回失败
const errorMsg = message || '车架号校验失败'
uni.showToast({
title: errorMsg,
icon: 'none'
})
currentResolve({
success: false,
message: errorMsg,
data: res
})
}
})
.catch(err => {
const errorMsg = err.message || '车架号校验异常'
uni.showToast({
title: errorMsg,
icon: 'none'
})
currentReject({
success: false,
message: errorMsg
})
})
}, DEBOUNCE_DELAY)
})
}
/**
* 实时输入处理:自动转大写
*/
export function formatVinInput(value) {
return value ? value.toUpperCase() : ''
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!