dev_aliyun2
harry 5 years ago
parent 37de540717
commit fa5c2b6f16

@ -25,7 +25,7 @@ import moment from 'moment'
import history from './history';
import { SnackbarHOC } from './common/educoder'
import { SnackbarHOC } from 'educoder'
import { initAxiosInterceptors } from './AppConfig'
import { Provider } from 'react-redux';
import configureStore from './redux/stores/configureStore';

@ -2,7 +2,7 @@
import axios from 'axios';
import md5 from 'md5';
import { requestProxy } from "./indexEduplus2RequestProxy";
import { isDev, queryString } from './common/educoder';
import { isDev, queryString } from 'educoder';
import { notification } from 'antd';
import cookie from 'react-cookies';
import './index.css';

@ -10,7 +10,7 @@ import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import UpgradeModals from '../modals/UpgradeModals';
import { SnackbarHOC, getImageUrl, configShareForIndex } from '../../common/educoder';
import { SnackbarHOC, getImageUrl, configShareForIndex } from 'educoder';
import './home.css';

@ -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,

@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { getUploadActionUrl, getUrl } from '../../common/educoder';
import { getUploadActionUrl, getUrl } from 'educoder';
let path = getUrl("/editormd/lib/")
const $ = window.$;

@ -1,7 +1,7 @@
import React, { Component } from 'react'
import { Pagination, Tooltip, Spin, Rate } from 'antd'
import axios from 'axios'
import { getImageUrl } from '../../../common/educoder'
import { getImageUrl } from 'educoder'
import './shixunCss/fork.css';

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { getImageUrl, setImagesUrl, getUrl } from '../../../common/educoder';
import { getImageUrl, setImagesUrl, getUrl } from 'educoder';
import { Spin, Tooltip, Rate, Pagination } from 'antd';
import './shixunCss/shixunCard.css';

Loading…
Cancel
Save