Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_aliyun_beta
jingquan huang 5 years ago
commit 5832a8b380

@ -288,6 +288,7 @@ class App extends Component {
axios.post(url, { axios.post(url, {
url: 'http://pre-newweb.educoder.net', url: 'http://pre-newweb.educoder.net',
}).then((response) => { }).then((response) => {
console.log('got res')
const data = response.data; const data = response.data;
wx.config({ wx.config({
debug: false, debug: false,
@ -305,6 +306,7 @@ class App extends Component {
] ]
}); });
wx.ready(function () { wx.ready(function () {
console.log('wx is ready')
var shareData = { var shareData = {
title: '这是是分享标题', title: '这是是分享标题',
desc: '这是是摘要', desc: '这是是摘要',
@ -322,6 +324,8 @@ class App extends Component {
}); });
wx.error(function (res) { wx.error(function (res) {
console.log('wx is error')
console.log(res)
//alert(res.errMsg);//错误提示 //alert(res.errMsg);//错误提示
}); });

@ -34,12 +34,15 @@ class AccessoryModal2 extends Component{
} }
// 附件相关 START // 附件相关 START
handleChange = (info) => { handleChange = (info) => {
let fileList = info.fileList; if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed'){
console.log(fileList) let fileList = info.fileList;
// for(var list of fileList ){ console.log(fileList)
// console.log(fileList) // for(var list of fileList ){
// } // console.log(fileList)
this.setState({ fileList }); // }
this.setState({ fileList });
}
} }
onAttachmentRemove = (file) => { onAttachmentRemove = (file) => {

@ -253,19 +253,19 @@ class Selectsetting extends Component{
// 附件相关 START // 附件相关 START
handleChange = (info) => { handleChange = (info) => {
if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
let fileList = info.fileList; let fileList = info.fileList;
if(info.file.status!="removed"){ if (info.file.status != "removed") {
this.setState({ this.setState({
fileList: appendFileSizeToUploadFileAll(fileList), fileList: appendFileSizeToUploadFileAll(fileList),
fileListtype:true fileListtype: true
}); });
}else{ } else {
this.setState({ this.setState({
fileList: appendFileSizeToUploadFileAll(fileList), fileList: appendFileSizeToUploadFileAll(fileList),
}); });
}
} }
} }
// onAttachmentRemove = (file) => { // onAttachmentRemove = (file) => {

@ -86,17 +86,18 @@ class Sendresource extends Component{
} }
// 附件相关 START // 附件相关 START
handleChange = (info) => { handleChange = (info) => {
if (info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
let fileList = info.fileList; let fileList = info.fileList;
if(info.file.status!="removed"){ if (info.file.status != "removed") {
this.setState({ this.setState({
fileList: appendFileSizeToUploadFileAll(fileList), fileList: appendFileSizeToUploadFileAll(fileList),
fileListtype:true fileListtype: true
}); });
}else{ } else {
this.setState({ this.setState({
fileList: appendFileSizeToUploadFileAll(fileList), fileList: appendFileSizeToUploadFileAll(fileList),
}); });
}
} }
} }

@ -145,6 +145,9 @@ class WebSSHTimer extends Component {
} }
// 重置命令行的时候调用的接口会删pod // 重置命令行的时候调用的接口会删pod
closeWebssh = (callback) => { closeWebssh = (callback) => {
// 先关socket
this.closeWebsshSocket()
const { game } = this.props; const { game } = this.props;
// const url = `/api/v1/games/${game.identifier}/close_webssh` // const url = `/api/v1/games/${game.identifier}/close_webssh`
const url = `/tasks/${game.identifier}/close_webssh.json` const url = `/tasks/${game.identifier}/close_webssh.json`

@ -759,19 +759,21 @@ class Newshixuns extends Component {
// 附件相关 START // 附件相关 START
handleChange = (info) => { handleChange = (info) => {
let {fileList}=this.state; if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
let {fileList} = this.state;
if (info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') { if (info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
console.log("handleChange1"); console.log("handleChange1");
// if(fileList.length===0){ // if(fileList.length===0){
let fileLists = info.fileList; let fileLists = info.fileList;
this.setState({ this.setState({
// fileList:appendFileSizeToUploadFileAll(fileList), // fileList:appendFileSizeToUploadFileAll(fileList),
fileList:fileLists, fileList: fileLists,
deleteisnot:false}); deleteisnot: false
// } });
} // }
}
}
} }
onAttachmentRemove = (file) => { onAttachmentRemove = (file) => {
if(!file.percent || file.percent == 100){ if(!file.percent || file.percent == 100){

Loading…
Cancel
Save