project_pack
杨树明 6 years ago
parent 7c92a28494
commit c687542483

@ -40,7 +40,7 @@ window.__useKindEditor = false;
var proxy = "http://localhost:3000"
// proxy = "http://testbdweb.trustie.net"
// proxy = "http://testbdweb.educoder.net"
proxy = 'http://192.168.2.63:3001/'
proxy = 'http://192.168.2.63:3001'
// proxy='https://www.educoder.net'
const requestMap={};
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求

@ -2,15 +2,24 @@ import React, {Component} from 'react';
import {Link} from "react-router-dom";
import axios from 'axios';
import { Input ,Icon,Button,Pagination,DatePicker} from 'antd';
import { handleDateString} from 'educoder';
import { handleDateString,getUrl} from 'educoder';
import locale from 'antd/lib/date-picker/locale/zh_CN';
import MDEditors from '../MDEditors';
import PhoneModel from './PhoneModel';
import moment from 'moment'
import '../packageconcnet.css';
const { Search } = Input;
const $ = window.$;
let origin = getUrl();
// load
if (!window.postUpMsg) {
$.getScript(
`${origin}/javascripts/attachments.js`,
(data, textStatus, jqxhr) => {
});
}
class PackageIndexNEIBannerConcent extends Component {
constructor(props) {
super(props)
@ -285,7 +294,8 @@ class PackageIndexNEIBannerConcent extends Component {
id="_file"
multiple="multiple" name="attachments[dummy][file]"
onChange={() => {
// debugger;
debugger;
console.log(window.$('.file_selector')[0]))
window.addInputFiles(window.$('.file_selector')[0])
}}
style={{'display': 'none'}} type="file">

Loading…
Cancel
Save