Commit c7a5238b authored by Damon's avatar Damon

Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0

parents 9a84c01b 21fc5a2a
......@@ -4,7 +4,7 @@
<view>{{ info.label || info.title }}</view>
<view class="label-text">
共
<text class="label-blue">{{ info.number }}</text
<text class="label-blue">{{ info.number || 0 }}</text
>道精编试题,通过率
<text class="label-blue">{{ info.pass || $u.random(95, 99) }}%</text>
</view>
......
<template>
<view class="record-cell">
<view class="record-cell" @click="$u.throttle(handleClick, 500)">
<view class="time-view">{{ timeText }}</view>
<view class="detail-view">
<view v-for="(value, key) in labels" :key="key" class="item-view">
......@@ -79,7 +79,11 @@ export default {
return this.passed ? '及格' : '不及格'
},
},
methods: {},
methods: {
handleClick() {
this.$emit('click', this.info.id)
},
},
}
</script>
......
......@@ -449,6 +449,7 @@ export default {
this.$refs.uToast.show({
title: '暂未选题库',
type: 'warning',
duration: 1500,
})
}
},
......
......@@ -84,7 +84,13 @@
background="none"
:opts="{
enableScroll: true,
xAxis: { enableScroll:true, scrollShow: true, itemCount: 3, disableGrid: true, boundaryGap: 'center'},
xAxis: {
enableScroll: true,
scrollShow: true,
itemCount: 3,
disableGrid: true,
boundaryGap: 'center',
},
}"
:ontouch="true"
:disableScroll="true"
......@@ -99,6 +105,7 @@
v-for="(item, index) in lists"
:key="index"
:info="item"
@click="handleClickRecord"
></RecordCell>
<!-- <view class="show-more" @click="showAll = true" v-if="!showAll">
......@@ -230,16 +237,16 @@ export default {
this.chartData.series[0].data = []
this.chartData.series[1].data = []
this.chartData.categories = []
let keys = []
Object.keys(res).forEach(v => {
Object.keys(res).forEach((v) => {
keys.push(v)
})
keys.sort()
for (let index = 0; index < keys.length; index++) {
const ele = keys[index]
console.log("ele", ele)
console.log('ele', ele)
this.chartData.categories.push(ele.replace(/\-/g, '.'))
this.chartData.series[0].data.push(res[ele].totalCount)
this.chartData.series[1].data.push(res[ele].rightCount)
......@@ -301,6 +308,14 @@ export default {
}
this.studyRecord(param)
},
handleClickRecord(id) {
this.$u.route({
url: '/pages/learn/score',
params: {
id: id,
},
})
},
handleConform(e, index) {
this['rangeDay' + index] = e.target.value
console.log(this.rangeDay0, this.rangeDay1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment