|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import { Pagination, Dropdown, Menu } from 'antd';
|
|
|
|
|
import { getImageUrl } from '../../common/educoder';
|
|
|
|
|
import { getImageUrl } from 'educoder';
|
|
|
|
|
import PathCard from "./ShixunPathCard";
|
|
|
|
|
import UpgradeModals from '../modals/UpgradeModals';
|
|
|
|
|
import './ShixunPaths.css';
|
|
|
|
@ -79,9 +79,11 @@ class ShixunPathSearch extends Component {
|
|
|
|
|
|
|
|
|
|
getdisciplines = () => {
|
|
|
|
|
let url = '/disciplines.json';
|
|
|
|
|
axios.get(url,{params:{
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
params: {
|
|
|
|
|
source: "subject"
|
|
|
|
|
}}).then((result)=>{
|
|
|
|
|
}
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
if (result.status == 200) {
|
|
|
|
|
// console.log(result.data.disciplines)
|
|
|
|
|
this.setState({
|
|
|
|
@ -96,14 +98,16 @@ class ShixunPathSearch extends Component {
|
|
|
|
|
getList = (order, discipline_id, sub_discipline_id, page) => {
|
|
|
|
|
|
|
|
|
|
let url = '/paths.json';
|
|
|
|
|
axios.get(url,{params:{
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
params: {
|
|
|
|
|
sort: "desc",
|
|
|
|
|
limit: 16,
|
|
|
|
|
order: order,
|
|
|
|
|
page: page,
|
|
|
|
|
discipline_id: discipline_id,
|
|
|
|
|
sub_discipline_id: sub_discipline_id
|
|
|
|
|
}}).then((result)=>{
|
|
|
|
|
}
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
if (result.status == 200) {
|
|
|
|
|
this.setState({
|
|
|
|
|
pathList: result.data.subjects,
|
|
|
|
|