Commit 3f031370 by zhanghaozhe

Merge branch 'ai-test' into dev

parents 57cebb82 6f1e23d0
import React, { Component } from 'react' import React, { Component } from 'react'
import { HeaderBar } from '@/common' import { HeaderBar } from '@/common'
import { http } from '@/utils' import { getParam, http } from '@/utils'
import './index.scss' import './index.scss'
import QRCode from 'qrcode' import QRCode from 'qrcode'
import html2canvas from 'html2canvas' import html2canvas from 'html2canvas'
...@@ -89,7 +89,7 @@ class scoreReport extends Component { ...@@ -89,7 +89,7 @@ class scoreReport extends Component {
} }
handleFetchInfo = (index) => { handleFetchInfo = (index) => {
http.get(`${API.home}/sys/at/user_score/${index}`).then(res => { http.get(`${API.home}/sys/at/user_score/${index}/${getParam('uid') ? getParam('uid') : 0}`).then(res => {
const {code, data} = res.data const {code, data} = res.data
if (code === 200) { if (code === 200) {
this.setState({ this.setState({
......
...@@ -98,7 +98,7 @@ class Scores extends Component { ...@@ -98,7 +98,7 @@ class Scores extends Component {
} }
getUserScores = (type) => { getUserScores = (type) => {
http.get(`${API.home}/sys/at/user_score/${type}`) http.get(`${API.home}/sys/at/user_score/${type}/0`)
.then(res => { .then(res => {
const {code, msg, data} = res.data const {code, msg, data} = res.data
......
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