Commit 17c60bda authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent c59d928b
......@@ -11,8 +11,8 @@
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<link href="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1569728171561" rel="stylesheet">
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3" charset="utf-8"></script>
<link href="/dist/index.css?1570599447690" rel="stylesheet">
<script src="/lib/vendor.dll.js?3" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3" charset="utf-8"></script>
......@@ -24,7 +24,7 @@
<body>
<div id="root"></div>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1569728171561" charset="utf-8"></script>
<script src="/dist/index.js?1570522299447691" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -170,6 +170,8 @@ export default {
tempUpdateShow: false,
tempsaveLoading: false,
tempScoreArr: [],
batchCommentImgObj: [{"src":"clock-test/consumer/111/2019-10-08/678683c05f05a35745222b8afbf679a9.jpg","size":119234,"type":"image","status":"fullfilled","id":"595"},{"src":"clock-test/member/12439/2019-07-04/407c79a7ae3de42d0252dea0fbade06a.jpg","size":254584,"type":"image","status":"fullfilled","id":"595"},{"src":"clock-test/consumer/111/2019-10-08/97d4d3af260e0b5065dfba3eaceca1cc.jpg","size":641062,"type":"image","status":"fullfilled","id":"595"},{"src":"clock-test/consumer/111/2019-10-08/016db47792b4b776b2f9500998802f4a.jpg","size":260486,"type":"image","status":"fullfilled","id":"596"},{"src":"clock-test/consumer/111/2019-10-08/06b1af93010b9cb28d393ca7c767e644.jpg","size":270145,"type":"image","status":"fullfilled","id":"596"},{"src":"clock-test/consumer/111/2019-10-08/5b9b2a440eb8690c9a86dfeab0daff70.jpg","size":63462,"type":"image","status":"fullfilled","id":"596"},{"src":"clock-test/consumer/111/2019-10-08/9c2681fac43ff5ec56576e0783e90a26.jpg","size":111134,"type":"image","status":"fullfilled","id":"596"}], // eslint-disable-line
currentdrawImage: '',
},
subscriptions: {
setup({ dispatch, history }) { // eslint-disable-line
......@@ -549,7 +551,25 @@ export default {
});
},
* startBatchComment({ payload }, { call, put, select }) {
const { selectClockObj, batchCommentParams, tempArr } = yield select(state => state.clockmgt);
const {
selectClockObj, batchCommentParams, tempArr,
} = yield select(state => state.clockmgt);
const batchCommentImgObj = [];
for (const i in selectClockObj) {
if (selectClockObj[i].video) {
const images = JSON.parse(selectClockObj[i].video).filter(ele => ele.type == 'image');
images.forEach((ele) => {
const newEle = ele;
newEle.id = i;
batchCommentImgObj.push(newEle);
});
}
// batchCommentImgObj[i] = images;
}
let currentdrawImage = '';
if (batchCommentImgObj.length > 0) {
currentdrawImage = batchCommentImgObj[0].src;
}
const newTempScoreArr = JSON.parse(JSON.stringify(tempArr));
batchCommentParams.common = {
flag: '',
......@@ -576,9 +596,12 @@ export default {
message.error('请勾选需要点评的打卡内容', 1);
return;
}
console.log(JSON.stringify(batchCommentImgObj), 'batchCommentImgObj');
yield put({
type: 'updateState',
payload: {
currentdrawImage,
batchCommentImgObj: [...batchCommentImgObj],
tempScoreArr: [...newTempScoreArr],
batchcommentDrawerShow: true,
},
......
This diff is collapsed.
@import '../../less/variables.less';
.drawModalBox {
.drawModalContent {
position: relative;
margin: 0 auto 40px;
.drawimg {
position: absolute;
left: 0;
top: 0;
z-index: 1;
}
.drawimgcanvas {
position: relative;
z-index: 2;
}
.imageLoading {
position: absolute;
left: 0;
top: 0;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0,0,0.5);
}
}
.imagegallery {
display: flex;
align-items: flex-end;
margin-bottom: 24px;
padding-left: 24px;
.imageitembox {
position: relative;
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 3px;
margin-right: 10px;
cursor: pointer;
.imageitem {
max-width: 64px;
max-height: 64px;
}
&.imageitemboxselecter {
width: 78px;
height: 78px;
.imageitem {
max-width: 78px;
max-height: 78px;
}
}
}
}
.drawoperatebox {
background-color: #414141;
display: flex;
justify-content: space-between;
height: 80px;
padding-left: 24px;
.drawoperateitem {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
width: 38px;
height: 80px;
&.hoverdrawoperateitem:hover {
.iconbox {
background-color: #000000;
&::after {
content: "";
display: block;
border-style: solid;
border-top-width: 5px;
border-bottom-width: 5px;
border-left-width: 8px;
border-right-width: 8px;
border-top-color: transparent;
border-bottom-color: #000000;
border-left-color: transparent;
border-right-color: transparent;
position: absolute;
top: -10px;
left: 50%;
margin-left: -8px;
}
}
}
cursor: pointer;
.iconbox {
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 1px;
position: relative;
&.iconboxselected {
background-color: #000000;
&::after {
content: "";
display: block;
border-style: solid;
border-top-width: 5px;
border-bottom-width: 5px;
border-left-width: 8px;
border-right-width: 8px;
border-top-color: transparent;
border-bottom-color: #000000;
border-left-color: transparent;
border-right-color: transparent;
position: absolute;
top: -10px;
left: 50%;
margin-left: -8px;
}
}
.rect {
width: 24px;
height: 24px;
background-image: url('@{imagesroot}drawimage/rectunselect.png');
background-size: 100% 100%;
}
.circle {
width: 24px;
height: 24px;
background-image: url('@{imagesroot}drawimage/circleunselect.png');
background-size: 100% 100%;
}
.arrow {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/arrowunselect.png');
background-size: 100% 100%;
}
.draw {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/drawunselect.png');
background-size: 100% 100%;
}
.text {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/textunselect.png');
background-size: 100% 100%;
}
.reback {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/rebackunselect.png');
background-size: 100% 100%;
}
.tobig {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/tobigunselect.png');
background-size: 100% 100%;
}
.tosmall {
width: 20px;
height: 20px;
background-image: url('@{imagesroot}drawimage/tosmallunselect.png');
background-size: 100% 100%;
}
}
.drawactionname {
color: #DEDEDE;
font-size: 14px;
}
}
.commonbtnbox {
width: 173px;
display: flex;
.skipdrawbtn {
background-color: #D8D8D8;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
width: 98px;
text-align: center;
color: #808080;
font-weight: 500;
cursor: pointer;
}
.drawcompletebtn {
height: 80px;
width: 75px;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background-color: #1890FF;
letter-spacing: 2px;
cursor: pointer;
}
}
}
}
:global {
.colorboxpopover {
.ant-popover-content {
.ant-popover-arrow {
border-right-color: #414141;
border-bottom-color: #414141;
}
.ant-popover-inner {
background-color: #414141;
}
}
}
}
.Popoverclass {
background-color: red;
}
.colorBox {
display: flex;
.coloritem {
width: 20px;
height: 20px;
border-radius: 2px;
margin-right: 12px;
&.coloritemselected {
border: 2px solid #fff;
}
cursor: pointer;
&.redcoloritem {
background-color: #F4330F;
}
&.yellowcoloritem {
background-color: #FEBB46;
}
&.greencoloritem {
background-color: #01B10A;
}
&.bluecoloritem {
background-color: #1B7AFC;
}
&.purplecoloritem {
background-color: #945AFC;
}
}
}
\ No newline at end of file
......@@ -8,6 +8,7 @@ import { pageIn, imagify, timeCompare, videoPoster, voiceTimeFormat, audioorigin
import CommentEditorBox from './commenteditorbox';
import ClockItem from './clockitem';
import ImagePreview from '../../components/ImagePreview';
import DrawImg from './drawimg';
import VideoPlay from '../../components/VideoPlay';
const { TabPane } = Tabs;
const { Option } = Select;
......@@ -668,6 +669,8 @@ class ClockMgt extends React.Component {
copyTempArr,
tempUpdateShow,
tempScoreArr,
// currentdrawImage,
batchCommentImgObj,
} = this.props;
return (
<div className={`${pageStyle.classmgtcontainer} clockmgtcontainer`}>
......@@ -983,6 +986,9 @@ class ClockMgt extends React.Component {
/>
}
<BackTop style={{ right: '10px' }} />
<DrawImg
batchCommentImgObj={batchCommentImgObj}
/>
</div>
);
}
......@@ -1035,6 +1041,8 @@ function mapStateToProps(state) {
copyTempArr,
tempUpdateShow,
tempScoreArr,
currentdrawImage,
batchCommentImgObj,
} = state.clockmgt;
const {
audio,
......@@ -1083,6 +1091,8 @@ function mapStateToProps(state) {
copyTempArr,
tempUpdateShow,
tempScoreArr,
currentdrawImage,
batchCommentImgObj,
};
}
export default connect(mapStateToProps)(ClockMgt);
......
......@@ -2537,7 +2537,7 @@ cli-width@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
clipboard@^2.0.0:
clipboard@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/clipboard/-/clipboard-2.0.4.tgz#836dafd66cf0fea5d71ce5d5b0bf6e958009112d"
dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment