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

yslnewtiku
杨树林 5 years ago
commit f5b4a96c4a

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-17 17:35:17 * @Date: 2019-12-17 17:35:17
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2019-12-26 20:00:56 * @LastEditTime : 2019-12-27 11:05:17
*/ */
import './index.scss'; import './index.scss';
import 'quill/dist/quill.core.css'; // 核心样式 import 'quill/dist/quill.core.css'; // 核心样式
@ -88,7 +88,7 @@ function CommentItem ({
}; };
const handleShowUploadImage = (url) => { const handleShowUploadImage = (url) => {
console.log('==============>>>>>>>>>>>>',url); // console.log('==============>>>>>>>>>>>>',url);
setUrl(url); setUrl(url);
} }
// 评论内容 // 评论内容
@ -245,7 +245,9 @@ function CommentItem ({
{/* 显示上传的图片信息 */} {/* 显示上传的图片信息 */}
<div className="show_upload_image" style={{ display: url ? 'block' : 'none'}}> <div className="show_upload_image" style={{ display: url ? 'block' : 'none'}}>
<Icon type="close" className="image_close" onClick={handleClose}/> <Icon type="close" className="image_close" onClick={handleClose}/>
<img className="image_info" src={url} alt=""/> <div className="image_info">
<img className="image" src={url} alt=""/>
</div>
</div> </div>
</div> </div>
</li> </li>

@ -100,16 +100,23 @@ $ml: 20px;
width:100%; width:100%;
content: ''; content: '';
background: #000; background: #000;
opacity: .5; opacity: .7;
} }
.image_info{ .image_info{
display: flex;
position: absolute; position: absolute;
width: 80%; width: 80%;
height: 80%; height: 80%;
left: 10%; left: 10%;
top: 10%; top: 10%;
background: green; justify-content: center;
align-items: center;
// background: green;
.image{
display: block;
width: 100%;
}
} }
.image_close{ .image_close{

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-16 15:50:45 * @Date: 2019-12-16 15:50:45
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2019-12-27 08:57:37 * @LastEditTime : 2019-12-27 11:04:43
*/ */
import Quill from "quill"; import Quill from "quill";
@ -17,7 +17,7 @@ export default class ImageBlot extends BlockEmbed {
const node = super.create(); const node = super.create();
node.setAttribute('alt', value.alt); node.setAttribute('alt', value.alt);
node.setAttribute('src', value.url); node.setAttribute('src', value.url);
console.log('~~~~~~~~~~~', node, value); // console.log('~~~~~~~~~~~', node, value);
node.addEventListener('click', function () { node.addEventListener('click', function () {
value.onclick(value.url); value.onclick(value.url);
}, false); }, false);

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-23 10:53:25 * @Date: 2019-12-23 10:53:25
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2019-12-25 17:06:57 * @LastEditTime : 2019-12-27 11:07:02
*/ */
import types from "./actionTypes"; import types from "./actionTypes";
@ -42,7 +42,7 @@ export const getCommentLists = (identifier) => {
limit, limit,
page page
}).then(res => { }).then(res => {
console.log('获取评论列表: ====>>>>', res); // console.log('获取评论列表: ====>>>>', res);
if (res.status === 200) { if (res.status === 200) {
const {data} = res; const {data} = res;
dispatch({ dispatch({

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-27 13:42:11 * @Date: 2019-11-27 13:42:11
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2019-12-27 09:28:38 * @LastEditTime : 2019-12-27 11:06:09
*/ */
import types from "./actionTypes"; import types from "./actionTypes";
import { Base64 } from 'js-base64'; import { Base64 } from 'js-base64';
@ -114,7 +114,7 @@ export const saveUserCodeForInterval = (identifier, code) => {
type: types.AUTO_UPDATE_CODE, type: types.AUTO_UPDATE_CODE,
payload: true payload: true
}); });
console.log('+++', userCode); // console.log('+++', userCode);
fetchUpdateCode(identifier, { fetchUpdateCode(identifier, {
code: userCode code: userCode
}).then(res => { }).then(res => {

@ -4,13 +4,13 @@
* @Github: * @Github:
* @Date: 2019-11-20 10:55:38 * @Date: 2019-11-20 10:55:38
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2019-12-26 17:37:38 * @LastEditTime : 2019-12-27 11:06:27
*/ */
import axios from 'axios'; import axios from 'axios';
export async function fetchOJList (params) { export async function fetchOJList (params) {
console.log('传递的参数: ', params); // console.log('传递的参数: ', params);
const obj = {}; const obj = {};
Object.keys(params).forEach(key => { Object.keys(params).forEach(key => {
if (params[key]) { if (params[key]) {

Loading…
Cancel
Save