dev_static
杨树明 5 years ago
parent 37ad392cdf
commit e96cc8f2aa

@ -0,0 +1,5 @@
import md5 from 'md5';
export function setmiyah(logins){
const opens ="79e33abd4b6588941ab7622aed1e67e8";
return md5(opens+logins);
}

@ -5,6 +5,7 @@
export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl as getUrl, publicSearchs as publicSearchs,getRandomcode as getRandomcode,getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl as getUrl, publicSearchs as publicSearchs,getRandomcode as getRandomcode,getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
, getUploadActionUrl as getUploadActionUrl,getUploadActionUrltwo as getUploadActionUrltwo ,getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth , getUploadActionUrl as getUploadActionUrl,getUploadActionUrltwo as getUploadActionUrltwo ,getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
, getTaskUrlById as getTaskUrlById, TEST_HOST ,htmlEncode as htmlEncode } from './UrlTool'; , getTaskUrlById as getTaskUrlById, TEST_HOST ,htmlEncode as htmlEncode } from './UrlTool';
export {setmiyah as setmiyah} from './Component';
export { default as queryString } from './UrlTool2'; export { default as queryString } from './UrlTool2';
export { SnackbarHOC as SnackbarHOC } from './SnackbarHOC'; export { SnackbarHOC as SnackbarHOC } from './SnackbarHOC';

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -178,6 +178,7 @@ class CompetitionContentspdfpeopledata extends Component {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
let smscode=setmiyah(this.state.logins)
if (index == 3) { if (index == 3) {
//绑定手机号码 //绑定手机号码
login = values.phone; login = values.phone;
@ -202,7 +203,7 @@ class CompetitionContentspdfpeopledata extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -78,6 +78,7 @@ class Mailboxvalidation extends Component {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
let smscode=setmiyah(this.state.logins)
if (index == 3) { if (index == 3) {
//绑定手机号码 //绑定手机号码
login = values.phone; login = values.phone;
@ -102,7 +103,7 @@ class Mailboxvalidation extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -77,6 +77,7 @@ class Phonenumberverification extends Component {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
let smscode=setmiyah(this.state.logins)
if (index == 3) { if (index == 3) {
//绑定手机号码 //绑定手机号码
login = values.phone; login = values.phone;
@ -101,7 +102,7 @@ class Phonenumberverification extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -176,6 +176,7 @@ class CompetitionContentspdfpeopledata extends Component {
// 获取验证码 // 获取验证码
getCode = (index) => { getCode = (index) => {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let smscode=setmiyah(this.state.logins)
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
if (index == 3) { if (index == 3) {
@ -202,7 +203,7 @@ class CompetitionContentspdfpeopledata extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -78,6 +78,7 @@ class Mailboxvalidation extends Component {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
let smscode=setmiyah(this.state.logins)
if (index == 3) { if (index == 3) {
//绑定手机号码 //绑定手机号码
login = values.phone; login = values.phone;
@ -102,7 +103,7 @@ class Mailboxvalidation extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -1,7 +1,7 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Button, Layout, Input, Form} from 'antd'; import {Button, Layout, Input, Form} from 'antd';
import axios from 'axios'; import axios from 'axios';
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import mycompetotionchild from './mycompetotionchild.css'; import mycompetotionchild from './mycompetotionchild.css';
import {getHiddenName} from "../../../../user/account/AccountBasicEdit"; import {getHiddenName} from "../../../../user/account/AccountBasicEdit";
import '../../../../courses/css/Courses.css' import '../../../../courses/css/Courses.css'
@ -77,6 +77,7 @@ class Phonenumberverification extends Component {
let url = `/accounts/get_verification_code.json` let url = `/accounts/get_verification_code.json`
let login = ''; let login = '';
let values = this.props.form.getFieldsValue(); let values = this.props.form.getFieldsValue();
let smscode=setmiyah(this.state.logins)
if (index == 3) { if (index == 3) {
//绑定手机号码 //绑定手机号码
login = values.phone; login = values.phone;
@ -101,7 +102,7 @@ class Phonenumberverification extends Component {
} }
axios.get((url), { axios.get((url), {
params: { params: {
login, type login, type,smscode
} }
}).then((result) => { }).then((result) => {
if (result) { if (result) {

@ -8,7 +8,7 @@ import Dialog, {
} from 'material-ui/Dialog'; } from 'material-ui/Dialog';
import axios from 'axios'; import axios from 'axios';
import './LoginDialog.css' import './LoginDialog.css'
import {broadcastChannelPostMessage} from 'educoder' import {setmiyah} from 'educoder'
import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd'; import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd';
@ -195,10 +195,12 @@ class Trialapplication extends Component {
//短信验证 //短信验证
SMSverification = () => { SMSverification = () => {
var url = `/accounts/get_verification_code.json`; var url = `/accounts/get_verification_code.json`;
axios.get((url), { axios.get((url), {
params: { params: {
login: this.state.login, login: this.state.login,
type: 3, type: 3,
smscode:setmiyah(this.state.logins)
} }
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}

@ -8,7 +8,7 @@ import Dialog, {
} from 'material-ui/Dialog'; } from 'material-ui/Dialog';
import axios from 'axios'; import axios from 'axios';
import {broadcastChannelPostMessage} from 'educoder' import {setmiyah} from 'educoder'
import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd'; import {Tabs, Input, Checkbox, Button, notification, Menu} from 'antd';
@ -215,6 +215,7 @@ class Trialapplicationysl extends Component {
params: { params: {
login: this.state.login, login: this.state.login,
type: 3, type: 3,
smscode:setmiyah(this.state.logins)
} }
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}

@ -2,7 +2,7 @@ import React, {Component} from 'react';
import {Link} from "react-router-dom"; import {Link} from "react-router-dom";
import axios from 'axios'; import axios from 'axios';
import { Input , Spin, Icon ,Button,Pagination,DatePicker} from 'antd'; import { Input , Spin, Icon ,Button,Pagination,DatePicker} from 'antd';
import { handleDateString,getUrl,bytesToSize} from 'educoder'; import { handleDateString,getUrl,setmiyah} from 'educoder';
import locale from 'antd/lib/date-picker/locale/zh_CN'; import locale from 'antd/lib/date-picker/locale/zh_CN';
import MDEditors from '../MDEditors'; import MDEditors from '../MDEditors';
import PhoneModel from './PhoneModel'; import PhoneModel from './PhoneModel';
@ -194,6 +194,7 @@ class PackageIndexNEIBannerConcent extends Component {
params: { params: {
login: contact_phone, login: contact_phone,
type: 5, type: 5,
smscode:setmiyah(this.state.logins)
} }
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}

@ -2,7 +2,7 @@ import React, {Component} from 'react';
import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom"; import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom";
import {getImageUrl} from 'educoder'; import {setmiyah} from 'educoder';
import CheckInputysl1 from './CheckInputysl'; import CheckInputysl1 from './CheckInputysl';
import CheckInputysl2 from './CheckInputysl'; import CheckInputysl2 from './CheckInputysl';
import {Tabs, Input, Checkbox, Button, notification} from 'antd'; import {Tabs, Input, Checkbox, Button, notification} from 'antd';
@ -162,6 +162,7 @@ class LoginRegisterComponent extends Component {
params: { params: {
login: this.state.login, login: this.state.login,
type: 2, type: 2,
smscode:setmiyah(this.state.logins)
} }
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}

@ -1,7 +1,6 @@
import React, {Component} from 'react'; import React, {Component} from 'react';
import {getImageUrl,broadcastChannelPostMessage} from 'educoder'; import {setmiyah,broadcastChannelPostMessage} from 'educoder';
import {Tabs, Input, Checkbox, Button, notification,Menu} from 'antd'; import {Tabs, Input, Checkbox, Button, notification,Menu} from 'antd';
import md5 from 'md5';
import passopen from '../../../src/images/login/passopen.png'; import passopen from '../../../src/images/login/passopen.png';
import passoff from '../../../src/images/login/passoff.png'; import passoff from '../../../src/images/login/passoff.png';
import axios from 'axios'; import axios from 'axios';
@ -609,23 +608,23 @@ class LoginRegisterComponent extends Component {
}; };
//短信验证 //短信验证
SMSverification = () => { SMSverification = () => {
const opens ="79e33abd4b6588941ab7622aed1e67e8";
let newopens=md5(opens+this.state.logins);
var url = `/accounts/get_verification_code.json`; var url = `/accounts/get_verification_code.json`;
axios.get((url), { axios.get((url), {
params: { params: {
login: this.state.logins, login: this.state.logins,
type: 1, type: 1,
smscode:newopens smscode:setmiyah(this.state.logins)
} }
}).then((result) => { }).then((result) => {
//验证有问题{"status":1,"message":"success"} //验证有问题{"status":1,"message":"success"}
// console.log(result); // console.log(result);
if(result.data.status===1){
this.openNotification("验证码已发送,请注意查收!",2); this.openNotification("验证码已发送,请注意查收!",2);
}else{
}
}).catch((error) => { }).catch((error) => {
this.openNotification(result.data.success,2);
}) })
} }

Loading…
Cancel
Save