diff --git a/src/api/article.js b/src/api/article.js
index 3db87b8..7be2527 100644
--- a/src/api/article.js
+++ b/src/api/article.js
@@ -28,7 +28,9 @@ export const articlePageByTopReq = (params) => http.get('/cms/article/page-by-to
export const articleListForPolicyReq = (params) => http.get('/cms/article/list-for-policy', {params})
export const pageMatchArticleReq = (params) => http.post('/match/match-article/page-for-front', params)
+export const pageMatchArticleForUserReq = (params) => http.post('/match/match-article/list-for-user', params)
export const matchArticleActionReq = (params) => http.post('/match/match-article/action', params)
+export const matchArticleInfoReq = (id) => http.get(`/match/match-article/${id}`)
export const matchArticleLikeAction = (params) => http.post('/match/match-article-like/action', params)
export const matchArticleCommentListReq = (params) => http.post('/match/match-article-comment/list-for-front', params)
export const matchArticleCommentActionReq = (params) => http.post('/match/match-article-comment/action', params)
diff --git a/src/api/common.js b/src/api/common.js
index addabf8..aadb21b 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -29,4 +29,5 @@ export const getCodeReq = (data) => http.post('/sms/get-code', data)
export const checkCodeReq = (data) => http.post('/sms/check-code', data)
export const regReq = (data) => http.post('/sys/user-detail/reg', data)
+export const userInfoByIdCardPhoneReq = (data) => http.post('/sys/user-detail/info-by-id-card-phone', data)
diff --git a/src/api/exam.js b/src/api/exam.js
index 99c1ce6..c4be027 100644
--- a/src/api/exam.js
+++ b/src/api/exam.js
@@ -40,6 +40,12 @@ export const addExamCorrectionReq = data => http.post('/exam/correction', data)
export const addExamUpgradeReq = data => http.post('/exam/upgrade', data)
export const getExamReq = id => http.get(`/exam/paper-detail/${id}`)
+export const trainExamStaffListReq = () => http.get(`/train/train-exam-staff/user-list`)
+export const operatePaperDetailReq = params => http.get(`/exam/operate-paper-detail`, {params})
+export const operateScoreActionReq = (data) => http.post(`/exam/operate-score`, data)
+export const operateScoreListReq = (params) => http.get(`/exam/operate-score`, {params})
+export const operateScoreCheckReq = (data) => http.post(`/exam/operate-score/check-score`, data)
+export const operateScoreRefuseReq = (data) => http.post(`/exam/operate-score/check-score-refuse`, data)
export const TASK_TYPE_LIST = [
diff --git a/src/api/signUp.js b/src/api/signUp.js
index 98adb4f..3070dee 100644
--- a/src/api/signUp.js
+++ b/src/api/signUp.js
@@ -4,6 +4,7 @@ export const signUpListReq = () => http.get('/train/train-sign-up')
export const signUpSelfListReq = () => http.get('/train/train-sign-up-self')
export const signUpInfoReq = id => http.get(`/train/train-sign-up/${id}`)
export const signUpUserListReq = () => http.post(`/train/train-sign-up/user-list`)
+export const signUpUserSelfListReq = () => http.post(`/train/train-sign-up-self/user-list`)
export const signUpJoinReq = data => http.post(`/train/train-sign-up-people/join`, data)
export const signUpPeopleListReq = params => http.get(`/train/train-sign-up-people`, {params})
export const signUpUpdateReq = data => http.put(`/train/train-sign-up-people`, data)
diff --git a/src/components/MessageItem.vue b/src/components/MessageItem.vue
new file mode 100644
index 0000000..8bcd8b9
--- /dev/null
+++ b/src/components/MessageItem.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+ {{ item.title }}
+
+ {{ TYPE_LIST.find(t => t.type === item.type).title }}
+ {{
+ dayjs(item.createTime).format('YYYY-MM-DD HH:mm')
+ }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/manifest.json b/src/manifest.json
index 9196bcc..79d9030 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -3,8 +3,8 @@
"appid" : "__UNI__06C03D0",
//__UNI__06C03D0
"description" : "",
- "versionName" : "1.35.0",
- "versionCode" : "254",
+ "versionName" : "2.2.0",
+ "versionCode" : "275",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/src/pages.json b/src/pages.json
index 3402689..241d61d 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -656,6 +656,30 @@
"style": {
"navigationBarTitleText": "钱包"
}
+ },
+ {
+ "path": "pages/user/shareList",
+ "style": {
+ "navigationBarTitleText": "我的分享"
+ }
+ },
+ {
+ "path": "pages/exam/makeScoreList",
+ "style": {
+ "navigationBarTitleText": "实操考试打分"
+ }
+ },
+ {
+ "path": "pages/exam/makeScore",
+ "style": {
+ "navigationBarTitleText": "实操考试打分"
+ }
+ },
+ {
+ "path": "pages/exam/checkScore",
+ "style": {
+ "navigationBarTitleText": "实操考试核分"
+ }
}
],
"tabBar": {
diff --git a/src/pages/exam/checkScore.vue b/src/pages/exam/checkScore.vue
new file mode 100644
index 0000000..bd38700
--- /dev/null
+++ b/src/pages/exam/checkScore.vue
@@ -0,0 +1,201 @@
+
+
+
+
+ 考生姓名: {{ realnameVal }}
+ 考生身份证: {{ idCardVal }}
+
+
+ 打分人: {{ scoreUserNameVal }}
+
+ 总分: {{ totalScore }}
+ 分数: {{ totalGetScore }}
+
+
+ 确认
+
+
+ 退回
+
+
+
+
+
+
+
+ {{ item.showAll ? '折叠' : '展开详情' }}
+
+ {{ item.title }}
+
+
+ 考试内容
+
+ 评分表
+
+ {{ content.title }}(分数: {{
+ content.score
+ }}/{{ content.totalScore }})
+
+
+ {{ contentItem.content }}
+
+ 分数: {{ list[index].examContent[contentIndex].list[contentItemIndex].rating }}
+
+ 配分:{{ contentItem.score }}
+ 最大扣分:{{ contentItem.maxReduce }}
+ 扣分步长:{{ contentItem.step }}
+ 评分标准:{{ contentItem.standard }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/exam/exam.vue b/src/pages/exam/exam.vue
index 4a32023..6aaa3a6 100644
--- a/src/pages/exam/exam.vue
+++ b/src/pages/exam/exam.vue
@@ -1,7 +1,10 @@
- {{ (parseInt(timeLimitVal / 60)).toString().padStart(2, '0') }}:{{ (timeLimitVal % 60).toString().padStart(2, '0') }}
+ {{
+ (parseInt(timeLimitVal / 60)).toString().padStart(2, '0')
+ }}:{{ (timeLimitVal % 60).toString().padStart(2, '0') }}
+
{{ currentIndex + 1 }}
/{{ examList.length }}
@@ -31,9 +34,22 @@
下一题
-
-
+
+
+
+
+
+ 正确答案:
+ {{ correctContent }}
+
+ 下一题
+
+
+
+
@@ -53,14 +69,34 @@ const getExamList = async (paperId) => {
const res = await paperDetailListReq({
paperId,
num: numVal,
- id: detailIdVal
+ id: detailIdVal,
+ type: typeVal
})
examList.value = []
if (res) {
- examList.value = res.data
+ examList.value = res.data.map(item => {
+ if (['cal', 'answer', 'essay', 'explain'].includes(item.type)) {
+ const correct = JSON.parse(item.answer).find(item => item.isCorrect)
+ item.userAnswer = correct.content
+ }
+ return item
+ })
}
}
+const popup = ref()
+
+const doNext = () => {
+ popup.value.close()
+ correctContent.value = ''
+ if (currentIndex.value < examList.value.length - 1) {
+ currentIndex.value++
+ selectedAnswerIndex.value = []
+ } else saveResult()
+}
+
+const correctContent = ref('')
+
const selectedAnswerIndex = ref([])
const selectAnswer = (index) => {
const currentExam = examList.value[currentIndex.value]
@@ -76,21 +112,32 @@ let correctNum = 0
let resultList = []
const next = () => {
- if (!selectedAnswerIndex.value.length) return $toast('请选择答案')
const currentExam = examList.value[currentIndex.value]
+ if (['single', 'multi', 'single'].includes(currentExam.type)) {
+ if (!selectedAnswerIndex.value.length) return $toast('请选择答案')
+ }
const answerList = JSON.parse(currentExam.answer)
+ let toNext = true
if (!['multi'].includes(currentExam.type)) {
if (['single', 'judge'].includes(currentExam.type)) {
hasResultNum++
const answer = answerList[selectedAnswerIndex.value[0]]
if (!answer.isCorrect) {
- // let correct
- // for (let i = 0; i < answerList.length; i++) {
- // if (answerList[i].isCorrect) {
- // correct = answerList[i]
- // break
- // }
- // }
+ if (isSim) {
+ let correct
+ for (let i = 0; i < answerList.length; i++) {
+ if (answerList[i].isCorrect) {
+ if (currentExam.type === 'single')
+ correct = `${ANSWER_CHAR[i]}、${answerList[i].content}`
+ else correct = answerList[i].content
+ break
+ }
+ }
+ correctContent.value = correct
+ popup.value.open()
+ toNext = false
+ }
+
examUserWrongActionReq({
courseId: examList.value[0].courseId,
examDetailId: currentExam.id,
@@ -106,10 +153,12 @@ const next = () => {
type: currentExam.type,
userAnswer: answer.content
})
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- selectedAnswerIndex.value = []
- } else saveResult()
+ if (toNext) {
+ if (currentIndex.value < examList.value.length - 1) {
+ currentIndex.value++
+ selectedAnswerIndex.value = []
+ } else saveResult()
+ }
} else {
resultList.push({
paperId: paperIdVal,
@@ -126,15 +175,17 @@ const next = () => {
resultList.push({
paperId: paperIdVal,
detailId: currentExam.id,
- getScore: null,
+ getScore: currentExam.score,
examType: examTypeVal,
examId: examIdVal,
type: currentExam.type,
- userAnswer: examList.value[currentIndex.value].content
+ userAnswer: currentExam.userAnswer
})
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- } else saveResult()
+ if (toNext) {
+ if (currentIndex.value < examList.value.length - 1) {
+ currentIndex.value++
+ } else saveResult()
+ }
}
} else {
hasResultNum++
@@ -158,6 +209,11 @@ const next = () => {
})
correctNext()
} else {
+ if (isSim) {
+ correctContent.value = correctList.map(i => i.content).join(', ')
+ popup.value.open()
+ toNext = false
+ }
examUserWrongActionReq({
courseId: examList.value[0].courseId,
examDetailId: currentExam.id,
@@ -173,10 +229,12 @@ const next = () => {
type: currentExam.type,
userAnswer: JSON.stringify(answerList.filter((_, index) => selectedAnswerIndex.value.includes(index)).map(i => i.content))
})
- if (currentIndex.value < examList.value.length - 1) {
- selectedAnswerIndex.value = []
- currentIndex.value++
- } else saveResult()
+ if (toNext) {
+ if (currentIndex.value < examList.value.length - 1) {
+ selectedAnswerIndex.value = []
+ currentIndex.value++
+ } else saveResult()
+ }
}
}
}
@@ -230,9 +288,10 @@ const countDown = () => {
}
}
-let paperIdVal = null, examTypeVal = null, examIdVal = null, numVal = null, detailIdVal = null
+let paperIdVal = null, examTypeVal = null, examIdVal = null, numVal = null, detailIdVal = null, isSim = false,
+ typeVal = null
const timeLimitVal = ref(null)
-onLoad(({title, paperId, examType, examId, num, timeLimit, detailId}) => {
+onLoad(({title, paperId, examType, examId, num, timeLimit, detailId, type}) => {
currentIndex.value = 0
correctNum = 0
selectedAnswerIndex.value = []
@@ -243,11 +302,13 @@ onLoad(({title, paperId, examType, examId, num, timeLimit, detailId}) => {
examIdVal = examId
if (num) numVal = num
if (detailId) detailIdVal = detailId
+ if (type) typeVal = type
if (timeLimit) {
timeLimitVal.value = parseInt(timeLimit * 60)
countDown()
}
getExamList(paperId)
+ isSim = title === '模拟考试'
uni.setNavigationBarTitle({title})
})
diff --git a/src/pages/exam/makeScore.vue b/src/pages/exam/makeScore.vue
new file mode 100644
index 0000000..799e9d5
--- /dev/null
+++ b/src/pages/exam/makeScore.vue
@@ -0,0 +1,154 @@
+
+
+
+
+ 考生姓名: {{ realnameVal }}
+ 考生身份证: {{ idCardVal }}
+
+ 总分: {{ totalScore }}
+ 分数: {{ totalGetScore }}
+ 提交
+
+
+
+
+
+ {{ item.showAll ? '折叠' : '展开详情' }}
+
+ {{ item.title }}
+
+
+ 考试内容
+
+ 评分表
+
+ {{ content.title }}(分数: {{
+ content.score
+ }}/{{ content.totalScore }})
+
+
+ {{ contentItem.content }}
+
+ 分数:
+
+
+ 配分:{{ contentItem.score }}
+ 最大扣分:{{ contentItem.maxReduce }}
+ 扣分步长:{{ contentItem.step }}
+ 评分标准:{{ contentItem.standard }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/exam/makeScoreList.vue b/src/pages/exam/makeScoreList.vue
new file mode 100644
index 0000000..42291a9
--- /dev/null
+++ b/src/pages/exam/makeScoreList.vue
@@ -0,0 +1,77 @@
+
+
+
+
+ {{ item.title }}
+ 考试时长: {{ item.examTime }}分钟
+ 考试企业: {{ item.orgName }}
+ {{ item.level }}
+
+ 试卷:
+
+ {{ item.paperList[0].operatePaper.title }}
+
+
+
+ {{ item.showPeople ? '收起' : '查看考试人员' }}
+
+
+
+
+ {{ people.userDetail.realname }}
+ 去打分
+
+ 总分: {{ people.operateScore }}分
+
+
+
+
+ 打分人:{{ score.scoreUserName }}
+ 评分:{{ score.totalScore }}
+
+ 核分
+
+ 核分人:{{ score.checkUserName }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/exam/train/randExam.vue b/src/pages/exam/train/randExam.vue
index c228854..73a4226 100644
--- a/src/pages/exam/train/randExam.vue
+++ b/src/pages/exam/train/randExam.vue
@@ -39,6 +39,17 @@
+
+
+
+ 正确答案:
+ {{ correctContent }}
+
+ 下一题
+
+
+
+
@@ -62,6 +73,16 @@ import {$toast} from "@/utils";
const currentIndex = ref(0)
const progress = ref(0)
+const popup = ref()
+const correctContent = ref('')
+const doNext = () => {
+ popup.value.close()
+ correctContent.value = ''
+ if (currentIndex.value < examList.value.length - 1) {
+ currentIndex.value++
+ selectedAnswerIndex.value = []
+ } else done()
+}
const selectedAnswerIndex = ref([])
const selectAnswer = (index) => {
@@ -94,8 +115,9 @@ const next = () => {
paperId: paperIdVal,
detailId: currentExam.id,
getScore: currentExam.score,
- examType: 3,
+ examType: 4,
examId: examIdVal,
+ startTime,
userAnswer: JSON.stringify(answerList.map(i => i.content))
})
correctNext()
@@ -110,24 +132,32 @@ const next = () => {
paperId: paperIdVal,
detailId: currentExam.id,
getScore: 0,
- examType: 3,
+ examType: 4,
+ startTime,
examId: examIdVal,
userAnswer: JSON.stringify(answerList.filter((_, index) => selectedAnswerIndex.value.includes(index)).map(i => i.content))
})
- uni.showModal({
- title: '答题错误',
- content: `正确答案为: ${correctList.map(i => i.content).join(', ')}`,
- showCancel: false,
- confirmText: '知道了',
- success: async ({confirm}) => {
- if (confirm) {
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- selectedAnswerIndex.value = []
- } else await done()
- }
+ // uni.showModal({
+ // title: '答题错误',
+ // content: `正确答案为: ${correctList.map(i => i.content).join(', ')}`,
+ // showCancel: false,
+ // confirmText: '知道了',
+ // success: async ({confirm}) => {
+ // if (confirm) {
+ // if (currentIndex.value < examList.value.length - 1) {
+ // currentIndex.value++
+ // selectedAnswerIndex.value = []
+ // } else await done()
+ // }
+ // }
+ // })
+ for (let i = 0; i < answerList.length; i++) {
+ if (answerList[i].isCorrect) {
+ correctContent.value += `${ANSWER_CHAR[i]}、${answerList[i].content}, `
}
- })
+ }
+ correctContent.value = correctContent.value.slice(0, -2)
+ popup.value.open()
}
} else {
const answer = answerList[selectedAnswerIndex.value[0]]
@@ -145,36 +175,48 @@ const next = () => {
courseId: examList.value[0].courseId,
type: 1
})
- uni.showModal({
- title: '答题错误',
- content: `正确答案为: ${correct.content}`,
- showCancel: false,
- confirmText: '知道了',
- success: async ({confirm}) => {
- if (confirm) {
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- selectedAnswerIndex.value = []
- } else await done()
- }
+ // uni.showModal({
+ // title: '答题错误',
+ // content: `正确答案为: ${correct.content}`,
+ // showCancel: false,
+ // confirmText: '知道了',
+ // success: async ({confirm}) => {
+ // if (confirm) {
+ // if (currentIndex.value < examList.value.length - 1) {
+ // currentIndex.value++
+ // selectedAnswerIndex.value = []
+ // } else await done()
+ // }
+ // }
+ // })
+ for (let i = 0; i < answerList.length; i++) {
+ if (answerList[i].isCorrect) {
+ if (currentExam.type === 'single')
+ correct = `${ANSWER_CHAR[i]}、${answerList[i].content}`
+ else correct = answerList[i].content
+ break
}
- })
+ }
+ correctContent.value = correct
+ popup.value.open()
resultList.push({
paperId: paperIdVal,
detailId: currentExam.id,
getScore: 0,
- examType: 3,
+ examType: 4,
examId: examIdVal,
- userAnswer: answer.content
+ userAnswer: answer.content,
+ startTime
})
} else {
resultList.push({
paperId: paperIdVal,
detailId: currentExam.id,
getScore: currentExam.score,
- examType: 3,
+ examType: 4,
examId: examIdVal,
- userAnswer: answer.content
+ userAnswer: answer.content,
+ startTime
})
correctNext()
}
@@ -192,11 +234,10 @@ const correctNext = () => {
const resultList = []
const done = async () => {
uni.showLoading({title: '正在提交'})
- await examResultActionReq(resultList)
- await trainExamAddTimeReq({
- examId: examIdVal,
- learnUseTime: dayjs().unix() - startTime
- })
+ await examResultActionReq(resultList.map(i => {
+ i.addTime = true
+ return i
+ }))
uni.hideLoading()
await uni.navigateTo({url: `/pages/match/result?correctNum=${correctNum}&mode=rand`})
}
@@ -238,7 +279,7 @@ const getExamList = async (paperId, takeDiffNumList, takeTypeNumList) => {
const back = async () => {
await uni.navigateBack()
}
-let paperIdVal = null, examIdVal = null, startTime = null, endTime = null, takeDiffNumListVal = null,
+let paperIdVal = null, examIdVal = null, startTime = dayjs().unix(), endTime = null, takeDiffNumListVal = null,
takeTypeNumListVal = null
onLoad(({paperId, examId, takeTypeNumList}) => {
currentIndex.value = 0
@@ -247,6 +288,10 @@ onLoad(({paperId, examId, takeTypeNumList}) => {
correctNum = 0
selectedAnswerIndex.value = []
takeTypeNumListVal = takeTypeNumList
+ // trainExamAddTimeReq({
+ // examId: examIdVal,
+ // learnUseTime: dayjs().unix() - startTime
+ // })
})
onShow(() => {
diff --git a/src/pages/exam/train/sortExam.vue b/src/pages/exam/train/sortExam.vue
index 889e9df..0f59aa4 100644
--- a/src/pages/exam/train/sortExam.vue
+++ b/src/pages/exam/train/sortExam.vue
@@ -39,6 +39,17 @@
+
+
+
+ 正确答案:
+ {{ correctContent }}
+
+ 下一题
+
+
+
+
@@ -75,9 +86,20 @@ const selectAnswer = (index) => {
}
let correctNum = 0
+const popup = ref()
+const correctContent = ref('')
+const doNext = () => {
+ popup.value.close()
+ correctContent.value = ''
+ if (currentIndex.value < examList.value.length - 1) {
+ currentIndex.value++
+ selectedAnswerIndex.value = []
+ } else saveRes()
+}
const next = () => {
if (!selectedAnswerIndex.value.length) return $toast('请选择答案')
+ correctContent.value = ''
const currentExam = examList.value[currentIndex.value]
const answerList = JSON.parse(currentExam.answer)
if (['multi'].includes(currentExam.type)) {
@@ -97,6 +119,7 @@ const next = () => {
getScore: currentExam.score,
examType: 3,
examId: examIdVal,
+ startTime,
userAnswer: JSON.stringify(answerList.map(i => i.content))
})
correctNext()
@@ -114,23 +137,31 @@ const next = () => {
examType: 3,
examId: examIdVal,
userAnswer: JSON.stringify(answerList.filter((_, index) => selectedAnswerIndex.value.includes(index)).map(i => i.content)),
- isCorrect: true
+ isCorrect: true,
+ startTime
})
- uni.showModal({
- title: '答题错误',
- content: `正确答案为: ${correctList.map(i => i.content).join(', ')}`,
- showCancel: false,
- confirmText: '知道了',
- success: async ({confirm}) => {
- if (confirm) {
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- selectedAnswerIndex.value = []
- saveRes()
- } else await done()
- }
+ for (let i = 0; i < answerList.length; i++) {
+ if (answerList[i].isCorrect) {
+ correctContent.value += `${ANSWER_CHAR[i]}、${answerList[i].content}, `
}
- })
+ }
+ correctContent.value = correctContent.value.slice(0, -2)
+ popup.value.open()
+ // uni.showModal({
+ // title: '答题错误',
+ // content: `正确答案为: ${correctList.map(i => i.content).join(', ')}`,
+ // showCancel: false,
+ // confirmText: '知道了',
+ // success: async ({confirm}) => {
+ // if (confirm) {
+ // if (currentIndex.value < examList.value.length - 1) {
+ // currentIndex.value++
+ // selectedAnswerIndex.value = []
+ // saveRes()
+ // } else await done()
+ // }
+ // }
+ // })
}
} else {
const answer = answerList[selectedAnswerIndex.value[0]]
@@ -148,28 +179,39 @@ const next = () => {
courseId: examList.value[0].courseId,
type: 1
})
- uni.showModal({
- title: '答题错误',
- content: `正确答案为: ${correct.content}`,
- showCancel: false,
- confirmText: '知道了',
- success: async ({confirm}) => {
- if (confirm) {
- if (currentIndex.value < examList.value.length - 1) {
- currentIndex.value++
- selectedAnswerIndex.value = []
- saveRes()
- } else await done()
- }
+ // uni.showModal({
+ // title: '答题错误',
+ // content: `正确答案为: ${correct.content}`,
+ // showCancel: false,
+ // confirmText: '知道了',
+ // success: async ({confirm}) => {
+ // if (confirm) {
+ // if (currentIndex.value < examList.value.length - 1) {
+ // currentIndex.value++
+ // selectedAnswerIndex.value = []
+ // saveRes()
+ // } else await done()
+ // }
+ // }
+ // })
+ for (let i = 0; i < answerList.length; i++) {
+ if (answerList[i].isCorrect) {
+ if (currentExam.type === 'single')
+ correct = `${ANSWER_CHAR[i]}、${answerList[i].content}`
+ else correct = answerList[i].content
+ break
}
- })
+ }
+ correctContent.value = correct
+ popup.value.open()
resultList.push({
paperId: paperIdVal,
detailId: currentExam.id,
getScore: 0,
examType: 3,
examId: examIdVal,
- userAnswer: answer.content
+ userAnswer: answer.content,
+ startTime
})
} else {
resultList.push({
@@ -179,7 +221,8 @@ const next = () => {
examType: 3,
examId: examIdVal,
userAnswer: answer.content,
- isCorrect: true
+ isCorrect: true,
+ startTime
})
correctNext()
}
@@ -189,7 +232,12 @@ const next = () => {
const saveRes = () => {
if (resultList.length % 3 === 0) {
// 每3条提交一次
- examResultActionReq(resultList.filter((_, i) => i > resultList.length - 4))
+ const list = resultList.filter((_, i) => i > resultList.length - 4).map(i => {
+ i.addTime = false
+ return i
+ })
+ examResultActionReq(list)
+ startTime = dayjs().unix()
}
}
@@ -205,11 +253,10 @@ const correctNext = () => {
const resultList = []
const done = async () => {
uni.showLoading({title: '正在提交'})
- await examResultActionReq(resultList)
- await trainExamAddTimeReq({
- examId: examIdVal,
- learnUseTime: dayjs().unix() - startTime
- })
+ await examResultActionReq(resultList.map(i => {
+ i.addTime = true
+ return i
+ }))
uni.hideLoading()
await uni.navigateTo({url: `/pages/match/result?correctNum=${correctNum}&mode=sort`})
}
@@ -217,7 +264,10 @@ const done = async () => {
const examList = ref([])
const getExamList = async (paperId) => {
- const res = await paperDetailListReq({paperId})
+ const res = await paperDetailListReq({
+ paperId,
+ type: typeVal ?? null
+ })
examList.value = []
if (res) {
examList.value = res.data
@@ -227,11 +277,12 @@ const getExamList = async (paperId) => {
const back = async () => {
await uni.navigateBack()
}
-let paperIdVal = null, examIdVal = null, startTime = null, endTime = null
-onLoad(({paperId, index, examId}) => {
+let paperIdVal = null, examIdVal = null, startTime = dayjs().unix(), endTime = null, typeVal = null
+onLoad(({paperId, index, examId, type}) => {
currentIndex.value = parseInt(index)
paperIdVal = parseInt(paperId)
examIdVal = parseInt(examId)
+ if (type) typeVal = type
correctNum = 0
selectedAnswerIndex.value = []
getExamList(paperId)
diff --git a/src/pages/index/components/articleListComponent.vue b/src/pages/index/components/articleListComponent.vue
index 94e0ae8..17117bf 100644
--- a/src/pages/index/components/articleListComponent.vue
+++ b/src/pages/index/components/articleListComponent.vue
@@ -1,151 +1,170 @@
-
-
-
-
-
- {{ item.userDetail.realname }}
- {{
- item.hasFollow ? '已关注' : '关注'
- }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.friendlyTime }}
-
-
-
- {{ item.commentNumbers }}
-
-
-
-
- {{ item.likes }}
-
-
-
+
+
+
+
+
+ **{{ item.userDetail.realname.slice(-2) }}
+ {{
+ item.hasFollow ? '已关注' : '关注'
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.friendlyTime }}
+
+
+
+ {{ item.commentNumbers }}
+
+
+
+
+ {{ item.likes }}
+
+
+
+
+ 编辑
-
-
-
-
-
-
-
-
-
- {{ item.userDetail.realname }}
-
- {{ item.content }}
-
- {{ dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss') }}
-
-
-
-
- 发表评论
-
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.userDetail.realname }}
-
-
-
-
-
+ {{ item.content }}
+
+ {{ dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss') }}
-
-
+
+
+
+ 发表评论
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/promote/components/ReviewList.vue b/src/pages/promote/components/ReviewList.vue
new file mode 100644
index 0000000..bd6dfbe
--- /dev/null
+++ b/src/pages/promote/components/ReviewList.vue
@@ -0,0 +1,190 @@
+
+
+
+ 复习任务({{ examList.length }})
+ {{
+ showAllExam ? '折叠' : '展开'
+ }}
+
+
+
+
+
+
+
+
+
+
+ 复习截止日期: {{ item.examDate }}
+
+ 复习时间段:
+
+ {{ item.date.join('~') }}
+
+
+
+ 复习科目:
+ {{
+ item.workTypeLists[0].course.title
+ }}({{
+ ['初级', '中级', '高级', '技师', '高级技师'][item.workTypeLists[0].course.level]
+ }})
+
+
+ 复习次数: {{ item.trainExamPeopleInfo.learnTime }}
+ 复习时长: {{ Math.floor(item.trainExamPeopleInfo.learnUseTime / 3600) }}小时
+ {{ Math.floor(item.trainExamPeopleInfo.learnUseTime % 3600 / 60) }}分
+ {{ item.trainExamPeopleInfo.learnUseTime % 60 }}秒
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/promote/exam.vue b/src/pages/promote/exam.vue
index 848fb8a..e7b9ee5 100644
--- a/src/pages/promote/exam.vue
+++ b/src/pages/promote/exam.vue
@@ -18,7 +18,7 @@
-
+
diff --git a/src/pages/promote/promote.vue b/src/pages/promote/promote.vue
index cf7001f..c8a3029 100644
--- a/src/pages/promote/promote.vue
+++ b/src/pages/promote/promote.vue
@@ -20,7 +20,7 @@
当前培训作业学时统计(小时)
{{ (trainData.learnSec / 3600).toFixed(2) }}
-
+
当前培训作业完成比例
-
+
通知
-
+
-
-
-
- {{ item.title }}
- {{ item.createTime }}
-
-
-
+
+
+
+
+
+
-
+
+
+
+
- 培训计划
+ 考试任务({{ examList.length }})
+ {{
+ showAllExam ? '折叠' : '展开'
+ }}
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+ 考试类型: {{ ['线上', '线下'][item.type] }}
+
+ 考场:
+ {{ item.trainExamPeopleInRoom.roomConfig.position }}
+
+ 考试时间:
+ {{ item.trainExamPeopleInRoom.examSession.startTime }} ~
+ {{ item.trainExamPeopleInRoom.examSession.endTime }}
+
+
+
+ 考试截止日期: {{ item.examDate }}
+
+ 考试时间段:
+
+ {{ item.date.join('~') }}
+
+
+
+ 考试科目:
+ {{
+ item.workTypeLists[0].course.title
+ }}({{
+ ['初级', '中级', '高级', '技师', '高级技师'][item.workTypeLists[0].course.level]
+ }})
+
+ 总分 {{ item.paper.totalPoint }} 合格分
+ {{ item.paper.passPoint }}
+
+
+
+
+ 考试得分 {{ item.trainExamPeopleInfo.score }}
+ 平时分
+ {{ item.trainExamPeopleInfo.normalScore }}
+
+ 总分
+ {{ item.trainExamPeopleInfo.totalScore }}
+
+ 实际得分
+ {{ item.trainExamPeopleInfo.totalScore }}
+
+
+
+ 考试得分 {{ item.trainExamPeopleInfo.score }}
+ 实操得分 {{
+ item.trainExamPeopleInfo.operateScore
+ }}
+
+ 总分
+ {{ item.trainExamPeopleInfo.realScore }}
+
+
+ {{
+ item.trainExamPeopleInfo.totalScore >= 60 ? '合格' : '不合格'
+ }}
+
+
+
+
+ 专家评审结果:
+
+ {{ ['待审核', '已通过', '未通过'][item.trainExamPeopleInfo.highLevelStatus] }}
+
+
+
- 查看
-
+
+
-
+
@@ -127,106 +218,27 @@
+
-
+
- 考试任务
-
+ 培训计划
-
-
-
-
-
-
-
-
+
+
-
-
- 考试类型: {{ ['线上', '线下'][item.type] }}
-
- 考场:
- {{ item.trainExamPeopleInRoom.roomConfig.position }}
-
- 考试时间:
- {{ item.trainExamPeopleInRoom.examSession.startTime }} ~
- {{ item.trainExamPeopleInRoom.examSession.endTime }}
-
-
-
- 考试截止日期: {{ item.examDate }}
-
- 考试时间段:
-
- {{ item.date.join('~') }}
-
-
-
- 考试科目:
- {{
- item.workTypeLists[0].course.title
- }}({{
- ['初级', '中级', '高级', '技师', '高级技师'][item.workTypeLists[0].course.level]
- }})
-
- 总分 {{ item.paper.totalPoint }} 合格分
- {{ item.paper.passPoint }}
-
-
-
-
- 考试得分 {{ item.trainExamPeopleInfo.score }}
- 平时分
- {{ item.trainExamPeopleInfo.normalScore }}
-
- 总分
- {{ item.trainExamPeopleInfo.totalScore }}
-
- 实际得分
- {{ item.trainExamPeopleInfo.totalScore }}
-
-
-
- 考试得分 {{ item.trainExamPeopleInfo.score }}
- 实操得分 {{ item.trainExamPeopleInfo.operateScore }}
- 总分
- {{ item.trainExamPeopleInfo.realScore }}
-
-
- {{
- item.trainExamPeopleInfo.totalScore >= 60 ? '合格' : '不合格'
- }}
-
-
-
-
- 专家评审结果:
-
- {{ ['待审核', '已通过', '未通过'][item.trainExamPeopleInfo.highLevelStatus] }}
-
+
-
+ 查看
-
+
@@ -344,6 +356,9 @@ import isBetween from 'dayjs/plugin/isBetween'
import {listCategory} from "@/api/categoty";
import {userDetailReq} from "@/api/user";
import {$toast} from "@/utils";
+import ReviewList from "@/pages/promote/components/ReviewList.vue";
+import {messageListReq} from "@/api/shop";
+import MessageItem from "@/components/MessageItem.vue";
dayjs.extend(isSameOrBefore)
dayjs.extend(isBetween)
@@ -363,6 +378,8 @@ export default {
}
},
components: {
+ MessageItem,
+ ReviewList,
mprogress
},
data() {
@@ -387,6 +404,7 @@ export default {
],
trainList: [],
examList: [],
+ showAllExam: false,
trainInfoList: [],
trainTaskList: [],
userTrainList: [],
@@ -543,7 +561,14 @@ export default {
uni.navigateTo({url})
},
async getNewsList() {
- const {data} = await listArticle({categoryId: 273, page: 1, limit: 10})
+ // const {data} = await listArticle({categoryId: 273, page: 1, limit: 10})
+ // this.newsList = data.map(item => {
+ // item.createTime = dayjs(item.createTime).format('YYYY-MM-DD')
+ // return item
+ // })
+ const {data} = await messageListReq({
+ sendFrom: 1
+ })
this.newsList = data.map(item => {
item.createTime = dayjs(item.createTime).format('YYYY-MM-DD')
return item
diff --git a/src/pages/promote/result.vue b/src/pages/promote/result.vue
index faede1a..87dc07b 100644
--- a/src/pages/promote/result.vue
+++ b/src/pages/promote/result.vue
@@ -80,8 +80,8 @@ import {getUserInfo} from "@/utils/user";
const user = getUserInfo()
const paperInfo = ref(null)
-const getPaperInfo = async (paperId) => {
- const {data} = await paperInfoReq({paperId})
+const getPaperInfo = async (id) => {
+ const {data} = await paperInfoReq({id})
paperInfo.value = data
}
@@ -97,7 +97,7 @@ const getResultList = async (paperId, examType, examId) => {
})
totalGetScore.value = 0
resultList.value = data.map(item => {
- totalGetScore.value += parseInt(item.getScore)
+ totalGetScore.value += parseFloat(item.getScore)
return item
})
for (let i in resultList.value) {
@@ -105,16 +105,16 @@ const getResultList = async (paperId, examType, examId) => {
if (index === -1) {
const type = resultList.value[i].paperDetail.type
listByType.value.push({
- correctNum: parseInt(resultList.value[i].getScore) > 0 ? 1 : 0,
+ correctNum: parseFloat(resultList.value[i].getScore) > 0 ? 1 : 0,
num: 1,
type,
title: TASK_TYPE_LIST.find(item => item.value === type).label,
getScore: resultList.value[i].getScore
})
} else {
- if (parseInt(resultList.value[i].getScore) > 0) listByType.value[index].correctNum++
+ if (parseFloat(resultList.value[i].getScore) > 0) listByType.value[index].correctNum++
listByType.value[index].num++
- listByType.value[index].getScore += parseInt(resultList.value[i].getScore)
+ listByType.value[index].getScore += parseFloat(resultList.value[i].getScore)
}
}
}
diff --git a/src/pages/signUp/info.vue b/src/pages/signUp/info.vue
index 8c139bd..9d82a76 100644
--- a/src/pages/signUp/info.vue
+++ b/src/pages/signUp/info.vue
@@ -22,7 +22,7 @@
- {{ info.hasOpen === 1 ? '已开课' : '提交' }}
+ {{ info.hasOpen === 1 ? '已开课' : '点击填写' }}
diff --git a/src/pages/signUp/self.vue b/src/pages/signUp/self.vue
index 40558c2..08366c4 100644
--- a/src/pages/signUp/self.vue
+++ b/src/pages/signUp/self.vue
@@ -22,7 +22,7 @@
- {{ info.hasOpen === 1 ? '已开课' : '提交' }}
+ {{ info.hasOpen === 1 ? '已开课' : '点击填写' }}
@@ -641,7 +641,9 @@ const confirmReqWorkType = ({value}) => {
const jobList = ref([])
const getJobList = async () => {
jobList.value = []
- const res = await workTypePositionListReq()
+ const res = await workTypePositionListReq({
+ groupName: true
+ })
if (res.data) jobList.value = res.data
}
@@ -652,19 +654,27 @@ const openJobPicker = () => {
const confirmJob = ({value}) => {
if (value[0]) {
form.value.job = value[0].position
- const children = workTypeListOriginTmp.value.filter(item => item.id === value[0].workTypeId)
+ const children = workTypeListOriginTmp.value.filter(item => value[0].workTypeIdList.includes(item.id))
const parent = workTypeListOriginTmp.value.find(item => item.id === children[0].parentId)
+ console.log(children, parent)
+ // workTypeListOrigin.value = [
+ // {
+ // title: parent.title,
+ // id: parent.id,
+ // children: [
+ // {
+ // title: children[0].title,
+ // id: children[0].id,
+ // children: children[0].children
+ // }
+ // ]
+ // }
+ // ]
workTypeListOrigin.value = [
{
title: parent.title,
id: parent.id,
- children: [
- {
- title: children[0].title,
- id: children[0].id,
- children: children[0].children
- }
- ]
+ children
}
]
}
@@ -900,8 +910,8 @@ const join = async () => {
if (form.value.titleType !== '无' && !form.value.titlePaper) {
return $toast('请上传职称等级证书')
}
- if (form.value.titleType !== '无' && !form.value.paperNo) {
- return $toast('请输入职称等级编号')
+ if (form.value.workTypeName !== '无' && !form.value.paperNo) {
+ return $toast('请输入工种证书编号')
}
if (!workExp.value.length) {
return $toast('请填写工作经历')
diff --git a/src/pages/user/message.vue b/src/pages/user/message.vue
index e29a855..111a65d 100644
--- a/src/pages/user/message.vue
+++ b/src/pages/user/message.vue
@@ -1,24 +1,7 @@
-
-
-
-
- {{ item.title }}
-
-
-
-
- {{ TYPE_LIST.find(t => t.type === item.type).title }}
- {{
- dayjs(item.createTime).format('YYYY-MM-DD HH:mm')
- }}
-
-
-
-
+
@@ -29,6 +12,7 @@ import {ref} from 'vue'
import {messageListReq, messageReadReq} from "@/api/shop";
import {onShow} from "@dcloudio/uni-app";
import dayjs from "dayjs";
+import MessageItem from "@/components/MessageItem.vue";
const list = ref([])
const getList = async () => {
@@ -36,101 +20,8 @@ const getList = async () => {
list.value = data
}
-const jump = (item, index) => {
- let url
- switch (item.type) {
- case 'exam' : {
- uni.switchTab({url: '/pages/promote/promote'})
- }
- break;
- case 'matchEnd' :
- case 'matchStart' : {
- url = `/pages/match/ing`
- }
- break;
- case 'trainEnd' :
- case 'trainStart' : {
- url = `/pages/promote/learn?courseId=${item.train.courseId}&trainId=${item.pk}`
- }
- break;
- case 'express' : {
- url = `/pages/user/order/detail?orderId=${item.pk}`
- }
- break;
- case 'activity' : {
- url = `/pages/activity/info?id=${item.pk}`
- }
- break;
- case 'signUp' :
- case 'signUpSelf' :
- case 'activityNotice':
- case 'trainEndNotice' : {
- url = `/pages/user/trainEndNotice?id=${item.id}`
- }
- break;
- }
- if (url) uni.redirectTo({url})
- read(item.id, index)
-}
-
-const read = async (id, index) => {
- await messageReadReq({id, hasRead: 1})
- list.value[index].hasRead = true
-}
-
-const TYPE_LIST = [
- {
- type: 'exam',
- title: '考试即将开始'
- },
- {
- type: 'matchEnd',
- title: '竞赛即将结束'
- },
- {
- type: 'matchStart',
- title: '竞赛即将开始'
- },
- {
- type: 'trainEnd',
- title: '培训即将结束'
- },
- {
- type: 'trainStart',
- title: '培训即将开始'
- },
- {
- type: 'express',
- title: '订单已发货'
- },
- {
- type: 'activity',
- title: '新活动提醒'
- },
- {
- type: 'signUp',
- title: '报名资料待修改'
- },
- {
- type: 'signUpSelf',
- title: '自主报名资料待修改'
- },
-
-]
onShow(() => {
getList()
})
-
-
\ No newline at end of file
diff --git a/src/pages/user/shareList.vue b/src/pages/user/shareList.vue
new file mode 100644
index 0000000..f93bf03
--- /dev/null
+++ b/src/pages/user/shareList.vue
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/user/signIn.vue b/src/pages/user/signIn.vue
index 629e24d..e862055 100644
--- a/src/pages/user/signIn.vue
+++ b/src/pages/user/signIn.vue
@@ -5,7 +5,30 @@
-
+
+ *
+ 账号(手机号)
+
+
+
+ 验证码
+
+
+
+
+ {{
+ smsTips
+ }}
+
+
+
+
+ *
+ 身份证号
+
+ 获取信息
+
+
*
企业名称(全称)
@@ -31,33 +54,17 @@
企业地址
-
-
-
-
-
-
- *
- 账号(手机号)
-
-
+
+
+
+
+
+
*
姓名
-
- 验证码
-
-
-
-
- {{
- smsTips
- }}
-
-
-
*
密码
@@ -126,7 +133,7 @@ import {MAIN_BTN_STYLE, SUCCESS_BTN_STYLE} from "@/config/color";
import {loginReq} from "@/api/login";
import {clearUserInfo, setUserInfo} from "@/utils/user";
import {$toast} from "@/utils";
-import {areaListReq, checkCodeReq, getCodeReq, regReq} from "@/api/common";
+import {areaListReq, checkCodeReq, getCodeReq, regReq, userInfoByIdCardPhoneReq} from "@/api/common";
import * as COLORS from "@/config/color";
import {ref} from "vue";
import {dictionaryPage} from "@/api/dict";
@@ -140,6 +147,7 @@ export default {
formData: {
phone: '',
company: '',
+ idCard: '',
companyCode: '',
organizationType: '',
address: '',
@@ -253,13 +261,7 @@ export default {
this.areaStr = `${province.name},${city.name},${area.name}`
},
async getCode() {
- if (!this.formData.company) return $toast('请输入公司名称')
- if (!this.formData.realname) return $toast('请输入您的姓名')
if (!this.formData.phone) return $toast('请输入手机号')
- if (!this.formData.province) return $toast('请选择企业所在地市')
- if (!this.formData.address) return $toast('请输入企业地址')
- if (!this.formData.organizationType) return $toast('请选择企业类型')
- if (!this.formData.companyCode) return $toast('请输入企业统一社会信用代码')
const res = await getCodeReq({phone: this.formData.phone}).catch(err => {
return false
})
@@ -278,6 +280,44 @@ export default {
this.countDown = 60
}
},
+ async getInfo() {
+ if (!this.formData.phone) return $toast('请输入手机号')
+ if (!this.formData.code) return $toast('请输入验证码')
+ if (!this.formData.idCard) return $toast('请输入身份证号')
+ const checkCodeRes = await checkCodeReq({
+ phone: this.formData.phone,
+ code: this.formData.code
+ })
+ if (checkCodeRes) {
+ const res = await userInfoByIdCardPhoneReq({
+ phone: this.formData.phone,
+ idCard: this.formData.idCard
+ })
+ if (res && res.data) {
+ this.formData.realname = res.data.realname
+ this.formData.company = res.data.company
+ this.formData.companyCode = res.data.companyCode
+ this.formData.organizationType = res.data.organizationType
+ this.formData.address = res.data.companyAddress
+ if (res.data.organizationProvince && res.data.organizationCity && res.data.organizationRegion) {
+ this.formData.province = res.data.organizationProvince
+ this.formData.city = res.data.organizationCity
+ this.formData.region = res.data.organizationRegion
+ this.areaStr = `${res.data.organizationProvince},${res.data.organizationCity},${res.data.organizationRegion}`
+ const provinceIndex = this.provinceList.findIndex(item => item.name === res.data.organizationProvince)
+ this.setCityNArea(provinceIndex)
+ const cityIndex = this.cityList.findIndex(item => item.name === res.data.organizationCity)
+ this.setCityNArea(provinceIndex, cityIndex)
+ const areaIndex = this.areaList.findIndex(item => item.name === res.data.organizationRegion)
+ this.defaultIndex = [provinceIndex, cityIndex, areaIndex]
+ }
+ } else {
+ $toast('暂无信息')
+ }
+ } else {
+ $toast('验证码错误')
+ }
+ },
async signIn() {
const {phone, password} = this.formData
if (!phone) return $toast('请输入手机号')
@@ -289,30 +329,29 @@ export default {
if (!this.formData.organizationType) return $toast('请选择企业类型')
if (!this.formData.confirmPassword) return $toast('请输入确认密码')
if (this.formData.password !== this.formData.confirmPassword) return $toast('两次密码不一致')
+ if (!this.formData.company) return $toast('请输入公司名称')
+ if (!this.formData.realname) return $toast('请输入您的姓名')
+
+ if (!this.formData.province) return $toast('请选择企业所在地市')
+ if (!this.formData.address) return $toast('请输入企业地址')
const regex = /^[\u4e00-\u9fa5]+$/;
if (!regex.test(this.formData.realname)) return $toast('请输入中文姓名')
- const checkCodeRes = await checkCodeReq({
- phone: this.formData.phone,
- code: this.formData.code
+ uni.showLoading({
+ title: '注册中'
})
-
- if (checkCodeRes) {
- uni.showLoading({
- title: '注册中'
- })
- this.disabled = true
- const res = await regReq(this.formData).catch(() => {
- this.disabled = false
- uni.hideLoading()
- })
+ this.disabled = true
+ const res = await regReq(this.formData).catch(() => {
this.disabled = false
uni.hideLoading()
- if (res) {
- $toast('注册成功')
- uni.navigateBack()
- }
+ })
+ this.disabled = false
+ uni.hideLoading()
+ if (res) {
+ $toast('注册成功')
+ uni.navigateBack()
}
}
+
},
onLoad() {
this.getAreaList()
diff --git a/src/pages/user/signUp.vue b/src/pages/user/signUp.vue
index 52fce22..0921cc7 100644
--- a/src/pages/user/signUp.vue
+++ b/src/pages/user/signUp.vue
@@ -1,89 +1,120 @@
-
-
-
-
-
-
-
-
- {{
- item.status === 0 ? '待审核' : '已通过'
- }}
-
- {{
- item.hasPay === 0 ? '未支付' : '已支付'
- }}
-
-
-
+
+
+
+
+
+
+
+
+
+ 待审核
+ 已通过
+ 已拒绝,去编辑
+
+ {{
+ item.hasPay === 0 ? '未支付' : '已支付'
+ }}
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/user/user.vue b/src/pages/user/user.vue
index 3f59712..a3f52ea 100644
--- a/src/pages/user/user.vue
+++ b/src/pages/user/user.vue
@@ -20,9 +20,12 @@
ID:{{ userBase.userId }}
-
- {{ userInfo.point }}
- 积分
+
+
+ 积分: {{ userInfo.point }}
+
+ 财富值: {{ userInfo.wealthValue }}
+ 价值估值: {{ userInfo.valueValuation }}
请登录
@@ -40,7 +43,7 @@
钱包
-
+
@@ -70,7 +73,7 @@
-
+
@@ -107,17 +110,18 @@ export default {
serverList: [
{icon: '/static/image/order.png', title: '我的订单', url: '/pages/user/order/list'},
{icon: '/static/image/profile.png?=1.0', title: '我的资料', url: '/pages/user/userDetail'},
- {icon: '/static/image/s-1.png?=1.0', title: '积分兑换', url: 'point'},
- {icon: '/static/image/s-2.png?=1.0', title: '我的任务', url: '/pages/promote/progress'},
+ // {icon: '/static/image/s-1.png?=1.0', title: '积分兑换', url: 'point'},
+ {icon: '/static/image/task.png?=1.0', title: '我的任务', url: '/pages/promote/progress'},
+ {icon: '/static/image/share.png?=1.0', title: '我的分享', url: '/pages/user/shareList'},
{icon: '/static/image/address.png?=1.0', title: '收货地址', url: '/pages/user/address/list'},
// {icon: '/static/image/s-3.png?=1.0', title: '我的知识', url: ''},
- {icon: '/static/image/s-4.png?=1.0', title: '留言板', url: '/pages/user/msg'},
+ {icon: '/static/image/board.png?=1.0', title: '留言板', url: '/pages/user/msg'},
{icon: '/static/image/archiveBox.png', title: '我的档案', url: '/pages/user/archive'},
- {icon: '/static/image/s-5.png?=1.0', title: '我的活动', url: '/pages/user/activity'},
- {icon: '/static/image/s-8.png?=1.0', title: '认定预约报名', url: '/pages/user/signUp'},
- {icon: '/static/image/s-9.png?=1.0', title: '我的专利', url: '/pages/user/patent'},
- {icon: '/static/image/s-6.png?=1.0', title: '联系客服', url: 'service'},
- {icon: '/static/image/s-7.png?=1.0', title: '设置', url: '/pages/user/config'}
+ {icon: '/static/image/activity.png?=1.0', title: '我的活动', url: '/pages/user/activity'},
+ {icon: '/static/image/booking.png?=1.0', title: '认定预约报名', url: '/pages/user/signUp'},
+ {icon: '/static/image/patent.png?=1.0', title: '我的专利', url: '/pages/user/patent'},
+ {icon: '/static/image/service.png?=1.0', title: '联系客服', url: 'service'},
+ {icon: '/static/image/setting.png?=1.0', title: '设置', url: '/pages/user/config'}
],
hasLogin: checkLogin(),
userBase: {
@@ -144,6 +148,9 @@ export default {
async getUserDetail() {
const {data} = await userInfoReq({userId: this.userBase.userId})
this.userInfo = data
+ if (this.userInfo.isExamStaff && this.serverList[0].title !== '考试打分') {
+ this.serverList.unshift({icon: '/static/image/score.png', title: '考试打分', url: '/pages/exam/makeScoreList'})
+ }
},
jump(url) {
if (url === 'point') uni.switchTab({url: '/pages/shop/shop'})
@@ -198,7 +205,6 @@ export default {
if (this.hasLogin) {
getUser().then(({data}) => {
this.userBase = data
- console.log(this.userBase)
})
this.getUserDetail()
this.checkMsgHasUnread()
diff --git a/src/pages/user/userDetail.vue b/src/pages/user/userDetail.vue
index 969849d..e5535c9 100644
--- a/src/pages/user/userDetail.vue
+++ b/src/pages/user/userDetail.vue
@@ -721,6 +721,10 @@ const submit = async () => {
toast("请选择入职时间")
return
}
+ if (!formData.value.position) {
+ toast("请选择职称")
+ return
+ }
if (dayjs(formData.value.workContractStartTime).isAfter(formData.value.workContractEndTime)) {
toast("合同结束时间不能早于开始时间")
return
diff --git a/src/static/image/activity.png b/src/static/image/activity.png
new file mode 100644
index 0000000..6010216
Binary files /dev/null and b/src/static/image/activity.png differ
diff --git a/src/static/image/address.png b/src/static/image/address.png
index 13e4404..338c444 100644
Binary files a/src/static/image/address.png and b/src/static/image/address.png differ
diff --git a/src/static/image/archiveBox.png b/src/static/image/archiveBox.png
index 5bac659..4aac54a 100644
Binary files a/src/static/image/archiveBox.png and b/src/static/image/archiveBox.png differ
diff --git a/src/static/image/board.png b/src/static/image/board.png
new file mode 100644
index 0000000..da30783
Binary files /dev/null and b/src/static/image/board.png differ
diff --git a/src/static/image/booking.png b/src/static/image/booking.png
new file mode 100644
index 0000000..974adc9
Binary files /dev/null and b/src/static/image/booking.png differ
diff --git a/src/static/image/order.png b/src/static/image/order.png
index 4a00c45..e9ce020 100644
Binary files a/src/static/image/order.png and b/src/static/image/order.png differ
diff --git a/src/static/image/patent.png b/src/static/image/patent.png
new file mode 100644
index 0000000..7ac9dba
Binary files /dev/null and b/src/static/image/patent.png differ
diff --git a/src/static/image/profile.png b/src/static/image/profile.png
index 2ef339a..ee7143e 100644
Binary files a/src/static/image/profile.png and b/src/static/image/profile.png differ
diff --git a/src/static/image/score.png b/src/static/image/score.png
new file mode 100644
index 0000000..f46d22a
Binary files /dev/null and b/src/static/image/score.png differ
diff --git a/src/static/image/service.png b/src/static/image/service.png
new file mode 100644
index 0000000..eecd670
Binary files /dev/null and b/src/static/image/service.png differ
diff --git a/src/static/image/setting.png b/src/static/image/setting.png
new file mode 100644
index 0000000..ea5fe5d
Binary files /dev/null and b/src/static/image/setting.png differ
diff --git a/src/static/image/share.png b/src/static/image/share.png
index a5d7e89..cee4440 100644
Binary files a/src/static/image/share.png and b/src/static/image/share.png differ
diff --git a/src/static/image/task.png b/src/static/image/task.png
new file mode 100644
index 0000000..470fd57
Binary files /dev/null and b/src/static/image/task.png differ
diff --git a/src/uni_modules/custom-waterfalls-flow/components/custom-waterfalls-flow/custom-waterfalls-flow.vue b/src/uni_modules/custom-waterfalls-flow/components/custom-waterfalls-flow/custom-waterfalls-flow.vue
index 310cdf9..9e0c060 100644
--- a/src/uni_modules/custom-waterfalls-flow/components/custom-waterfalls-flow/custom-waterfalls-flow.vue
+++ b/src/uni_modules/custom-waterfalls-flow/components/custom-waterfalls-flow/custom-waterfalls-flow.vue
@@ -76,7 +76,7 @@
},
msg: 0,
listInitStyle: {
- 'border-radius': '12rpx',
+ // 'border-radius': '12rpx',
'margin-bottom': '20rpx',
'background-color': '#fff'
},