yujialong 7 days ago
parent 72e2c20564
commit bd3e6d5fb7
  1. 12
      src/pages/myReview/theoryReview/index.vue
  2. 2
      src/setting.js

@ -315,6 +315,7 @@ export default {
const { questionTypes: types, difficults } = QuesConst const { questionTypes: types, difficults } = QuesConst
const { numToLetter } = Util const { numToLetter } = Util
const paper = [] const paper = []
let firstNotReview
outline.map(e => { outline.map(e => {
if (e.userAnswerList && e.userAnswerList.length) { if (e.userAnswerList && e.userAnswerList.length) {
e.shrink = false e.shrink = false
@ -381,7 +382,10 @@ export default {
n.isCorrect = n.notScored ? 5 : (n.userScore && n.questionScore === n.userScore ? 1 : (rightLen ? 3 : 2)) n.isCorrect = n.notScored ? 5 : (n.userScore && n.questionScore === n.userScore ? 1 : (rightLen ? 3 : 2))
} else if (type === 'essay') { // } else if (type === 'essay') { //
if (!n.userScore) n.userScore = '' if (!n.userScore) n.userScore = ''
if (isNaN(n.reviewScore)) n.reviewScore = '' if (isNaN(n.reviewScore)) {
n.reviewScore = ''
if (!firstNotReview) firstNotReview = n.id //
}
this.handleIsCorrect(n) this.handleIsCorrect(n)
} }
n.originUserScore = n.notScored ? '-' : n.reviewScore n.originUserScore = n.notScored ? '-' : n.reviewScore
@ -398,6 +402,12 @@ export default {
// } // }
this.paper = paper this.paper = paper
//
firstNotReview && this.$nextTick(() => {
const el = document.querySelector('#ques' + firstNotReview)
el && this.scrollToSmooth(el.offsetTop - document.querySelector('#middle').offsetTop, 200)
})
this.loading = false this.loading = false
} catch (e) { } catch (e) {
this.loading = false this.loading = false

@ -6,7 +6,7 @@ const isPro = location.host.includes('huorantech.cn') //正式服
let host = location.origin let host = location.origin
if (isDev) { if (isDev) {
host = 'http://192.168.31.51:9000' host = 'http://192.168.31.51:9000'
const ips = ['http://192.168.31.217:9000', 'http://192.168.31.51:9000', 'http://121.37.12.51'] const ips = ['http://192.168.31.217:9000', 'http://192.168.31.51:9000', 'https://huorantech.cn']
host = ips[+localStorage.getItem('ip')] host = ips[+localStorage.getItem('ip')]
} }

Loading…
Cancel
Save