From 1d1fa9752e758e80b9518862e563f75a3c7f925c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 19 Jul 2019 18:10:19 +0800 Subject: [PATCH] b --- public/react/src/common/hooks/ImageLayerHook.js | 7 ++++--- public/react/src/modules/user/LoginRegisterComponent.js | 4 ++-- public/react/src/search/SearchPage.js | 6 ++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/public/react/src/common/hooks/ImageLayerHook.js b/public/react/src/common/hooks/ImageLayerHook.js index c9f0a14a4..f41cfb0d2 100644 --- a/public/react/src/common/hooks/ImageLayerHook.js +++ b/public/react/src/common/hooks/ImageLayerHook.js @@ -1,6 +1,7 @@ -import React, { useState, useEffect, memo } from 'react' -import ImageLayer from '../../modules/page/layers/ImageLayer' -import { isImageExtension } from 'educoder' +import React, { useState, useEffect, memo } from 'react'; +import ImageLayer from '../../modules/page/layers/ImageLayer'; +import { isImageExtension } from 'educoder'; +const $ = window.$; function ImageLayerHook(props) { const [showImage, setShowImage] = useState(false) const [imageSrc, setImageSrc] = useState('') diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index 0b4044711..03dbdb9e5 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -279,13 +279,13 @@ class LoginRegisterComponent extends Component { }).then((result) => { if(result){ if(result.data.status===-2){ - if(response.data.message==="验证码不正确"){ + if(result.data.message==="验证码不正确"){ this.setState({ Phonenumberisnotcosyzm:"验证码不正确", }) return; - }else if(response.data.message==="验证码已失效"){ + }else if(result.data.message==="验证码已失效"){ this.setState({ Phonenumberisnotcosyzm:"验证码不正确", }) diff --git a/public/react/src/search/SearchPage.js b/public/react/src/search/SearchPage.js index 14966b670..d9b2db7bb 100644 --- a/public/react/src/search/SearchPage.js +++ b/public/react/src/search/SearchPage.js @@ -1,11 +1,13 @@ import React,{ Component } from "react"; import {Checkbox,Input,Table, Pagination,Menu,Icon} from "antd"; +import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC"; import {Link,NavLink} from 'react-router-dom'; import { WordsBtn ,ActionBtn,SnackbarHOC,markdownToHTML,getImageUrl} from 'educoder'; -const Search = Input.Search; import axios from 'axios'; import './searchc.css' -import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC"; +const Search = Input.Search; + + class SearchPage extends Component{ constructor(props) {