|
|
@@ -0,0 +1,37 @@
|
|
|
+<template>
|
|
|
+ <view class="week_record">
|
|
|
+ <nav-bar title="一周记录"></nav-bar>
|
|
|
+ yizhou
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'weekRecord',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ goodsId: '',
|
|
|
+ weekRecords: {},
|
|
|
+ weekResultList: [],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(option) {
|
|
|
+ this.goodsId = option.goodsId
|
|
|
+ this.getWeekRecord()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getWeekRecord() {
|
|
|
+ this.$http({
|
|
|
+ url: `/bank/question/todayExam/tob/weekRecord/${this.goodsId}`,
|
|
|
+ method: 'get'
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ console.log('res:', res);
|
|
|
+ this.weekRecords = res.data.data || {}
|
|
|
+ this.weekResultList = this.weekRecords.resultList || []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|