Commit a86074d6 by yanglang123

修改

parent 3ded64db
......@@ -76,14 +76,17 @@ class AllDescribe extends Component {
handleTo = (id, type, list) => {
//pageMode(呈现样式:1逐题呈现 2整页呈现,3,投票单选)
if (type == "投票") {
// hashHistory.push({
// pathname: func.routerBefore() + "/SurveyDetails",
// query: { id: id },
// });
if (list.pageMode == 1) {
hashHistory.push({
pathname: func.routerBefore() + "/SurveyDetails",
query: { id: id },
});
}
if (list.pageMode == 3) {
hashHistory.push({
pathname: func.routerBefore() + "/vote",
query: { id: id},
query: { id: id },
});
}
}
......
......@@ -87,7 +87,6 @@ class App extends React.Component {
componentWillMount() {
console.log("diyici");
if (navigator.userAgent.indexOf("iPhone") != -1) {
console.log('登录系统为苹果')
this.iosTouch();
}
let tab = location.hash.split("/")[location.hash.split("/").length - 1];
......
import excute from '../../util/fetchUtil';
import API from '../../util/urlconfig';
import { Toast } from "antd-mobile";
//纪检信箱
export function systemMailboxApi(params, callback) {
return (dispatch) => {
......@@ -8,9 +8,8 @@ export function systemMailboxApi(params, callback) {
API.systemMailboxApi,
params,
(response) => {
Toast.info('提交成功')
if (callback) {
callback(response.data);
callback(response);
}
}
);
......@@ -23,9 +22,8 @@ export function dwsystemMailboxApi(params, callback) {
API.dwsystemMailboxApi,
params,
(response) => {
Toast.info('提交成功')
if (callback) {
callback(response.data);
callback(response);
}
}
);
......
......@@ -5,21 +5,18 @@ import { bindActionCreators } from "redux";
import { systemMailboxApi, dwsystemMailboxApi } from "./action";
import { Input, Radio } from "antd";
import PostUploadFile from "../../common/uploadOSS/uploadOSS";
import { Toast } from "antd-mobile";
const { TextArea } = Input;
class ContributeDetail extends Component {
constructor(props) {
super(props);
this.state = {
activeId: 0,
authValue: "",
delValue: "",
titleValue: "",
contentValue: "",
previewVisible: false,
previewImage: "",
remark: "",
fileList: [],
anonymousFlag: "",
anonymousFlag: 1,
mailList: [
{ name: "意见建议", id: 1 },
{ name: "线索提供", id: 2 },
......@@ -64,22 +61,40 @@ class ContributeDetail extends Component {
});
let params = {
fileName: this.state.titleValue,
contactName: "联系人名称",
contactNumber: "联系人手机号/邮箱",
content: this.state.contentValue,
ossPicUrl: JSON.stringify(imgs),
ossVideoUrl: JSON.stringify(videos),
remark: this.state.remark,
targetFrom: this.state.targetFrom ? this.state.targetFrom : "意见建议",
targetFrom: this.state.targetFrom ? this.state.targetFrom : "意见建议",//来信目的
anonymousFlag: this.state.anonymousFlag, //是否匿名:1是,0否
};
if (!this.state.titleValue) {
return Toast.info("请输入标题");
}
if (!this.state.contentValue) {
return Toast.info("请输入具体内容");
}
if (location.hash.indexOf("committeeMailbox") != -1 && !this.state.remark) {
return Toast.info("请输入期望结果");
}
if (location.hash.indexOf("committeeMailbox") != -1) {
this.props.systemMailboxApi(params, (response) => {
console.log(response);
if (response.code == 1000) {
Toast.info("提交成功");
setTimeout(() => {
history.back();
}, 1500);
}
});
} else {
this.props.dwsystemMailboxApi(params, (response) => {
console.log(response);
if (response.code == 1000) {
Toast.info("提交成功");
setTimeout(() => {
history.back();
}, 1500);
}
});
}
};
......@@ -137,7 +152,9 @@ class ContributeDetail extends Component {
/>
</div>
<div className="contribute-detail-box">
<div className="top-tit">具体内容</div>
<div className="top-tit">
具体内容<span className="red-star">*</span>
</div>
<TextArea
value={this.state.contentValue}
onChange={(event) =>
......@@ -149,7 +166,9 @@ class ContributeDetail extends Component {
</div>
{location.hash.indexOf("committeeMailbox") != -1 ? (
<div className="contribute-detail-box">
<div className="top-tit">期望结果</div>
<div className="top-tit">
期望结果<span className="red-star">*</span>
</div>
<TextArea
value={this.state.remark}
onChange={(event) =>
......
.mycontribute-out {
background-color: #fff;
}
.mycontribute-out .mycontribute-tit {
font-size: 40px;
font-weight: bold;
padding: 40px 25px;
margin-left: 10px;
color: #333;
}
.mycontribute-out .mycontribute-box {
background-color: #fff;
width: 92%;
margin: 0 auto;
padding: 40px 25px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.mycontribute-out .mycontribute-box .item-box {
width: 48%;
margin-bottom: 30px;
height: 80px;
line-height: 80px;
background-color: #f7f7f7;
text-align: center;
font-size: 38px;
color: #454343;
}
.mycontribute-out .mycontribute-box .item-box-active {
width: 48%;
margin-bottom: 30px;
height: 80px;
line-height: 80px;
background: rgba(253, 63, 52, 0.05);
border: 1px solid #f3ab9f;
border-radius: 4px;
text-align: center;
font-size: 38px;
color: #454343;
}
.mycontribute-out .mycontribute-box span {
width: 100%;
color: #e6624a;
}
.mycontribute-out .mycontribute-child-box {
background-color: #fff;
width: 92%;
margin: 0 auto;
padding: 40px 25px;
}
.mycontribute-out .mycontribute-btn {
width: 92%;
margin: 0 auto;
text-align: center;
padding: 20px 0;
background: linear-gradient(270deg, #eb6c53 0%, #d23a29);
border-radius: 5px;
color: #fff;
font-size: 36px;
}
.contribute-detail-out {
width: 92%;
margin: 30px auto;
......@@ -99,16 +38,17 @@
justify-content: space-between;
}
.contribute-detail-out .contribute-detail-box .unactive-box {
width: 33%;
width: 30%;
height: 80px;
line-height: 80px;
background-color: #f7f7f7;
text-align: center;
font-size: 36px;
color: #454343;
border-radius: 40px;
}
.contribute-detail-out .contribute-detail-box .active-box {
width: 33%;
width: 30%;
height: 80px;
line-height: 80px;
background: rgba(253, 63, 52, 0.05);
......@@ -117,6 +57,7 @@
text-align: center;
font-size: 36px;
color: #454343;
border-radius: 40px;
}
.contribute-detail-out .contribute-detail-box .ant-input-affix-wrapper {
border: 0 !important;
......
.mycontribute-out {
background-color: #fff;
.mycontribute-tit {
font-size: 40px;
font-weight: bold;
padding: 40px 25px;
margin-left: 10px;
color: #333;
}
.mycontribute-box {
background-color: #fff;
width: 92%;
margin: 0 auto;
padding: 40px 25px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.item-box {
width: 48%;
margin-bottom: 30px;
height: 80px;
line-height: 80px;
background-color: #f7f7f7;
text-align: center;
font-size: 38px;
color: #454343;
}
.item-box-active {
width: 48%;
margin-bottom: 30px;
height: 80px;
line-height: 80px;
background: rgba(253, 63, 52, 0.05);
border: 1px solid #f3ab9f;
border-radius: 4px;
text-align: center;
font-size: 38px;
color: #454343;
}
span {
width: 100%;
color: #e6624a;
}
}
.mycontribute-child-box {
background-color: #fff;
width: 92%;
margin: 0 auto;
padding: 40px 25px;
}
.mycontribute-btn {
width: 92%;
margin: 0 auto;
text-align: center;
padding: 20px 0;
background: linear-gradient(270deg, #eb6c53 0%, #d23a29);
border-radius: 5px;
color: #fff;
font-size: 36px;
}
}
//投稿详情
.contribute-detail-out {
width: 92%;
margin: 30px auto;
......@@ -98,16 +36,17 @@
justify-content: space-between;
}
.unactive-box {
width: 33%;
width: 30%;
height: 80px;
line-height: 80px;
background-color: #f7f7f7;
text-align: center;
font-size: 36px;
color: #454343;
border-radius: 40px;
}
.active-box {
width: 33%;
width: 30%;
height: 80px;
line-height: 80px;
background: rgba(253, 63, 52, 0.05);
......@@ -116,6 +55,7 @@
text-align: center;
font-size: 36px;
color: #454343;
border-radius: 40px;
}
.ant-input-affix-wrapper {
border: 0 !important;
......
......@@ -34,7 +34,7 @@ class MyExam extends Component {
pageSize: 10,
reset: true,
};
document.title = intl.get("MyExam") || "我的考试";
document.title = "培训考试";
}
componentDidMount() {
......@@ -70,9 +70,9 @@ class MyExam extends Component {
});
};
tabsChange(key) {
tabsChange(item) {
this.setState({
changeIndex: key.key,
changeIndex: item.key,
});
}
......@@ -163,7 +163,7 @@ class MyExam extends Component {
}
};
render() {
const { my, test } = this.props.location.query;
const { my, test, tabIndex } = this.props.location.query;
const tabsData = [
{
key: "1",
......@@ -181,8 +181,7 @@ class MyExam extends Component {
className="myExamBody"
>
<Tabs
defaultActiveKey="2"
swipeable={false}
initialPage={tabIndex ? tabIndex : "1"}
onChange={(event) => this.tabsChange(event)}
tabs={tabsData}
className="my-exam-tab-container"
......@@ -216,11 +215,13 @@ class MyExam extends Component {
className="examItem"
onClick={() => this.listItemClick(item, key)}
>
<p className="exam-title" style={{fontSize:'34px'}}>{item.name}</p>
<p className="exam-title" style={{ fontSize: "34px" }}>
{item.name}
</p>
<p className="exam-time">
{`${moment(item.startTime).format("YYYY-MM-DD")} ${"-"} ${moment(
{`${moment(item.startTime).format("YYYY.MM.DD")} ${"-"} ${moment(
item.endTime
).format("YYYY-MM-DD")}`}
).format("YYYY.MM.DD")}`}
</p>
<div
style={{
......@@ -294,12 +295,6 @@ class MyExam extends Component {
isInMore,
isInFirst,
inPageNumber,
isFulMore,
isFulFirst,
fulPageNumber,
isDieMore,
isDieFirst,
diePageNumber,
} = this.props.MyExamReducer;
let { changeIndex } = this.state;
let params = {
......@@ -319,20 +314,10 @@ class MyExam extends Component {
true
);
}
} else if (String(changeIndex) === "3") {
if (!isFulMore && !isFulFirst) {
this.props.myExamList(
{ ...params, state: 2, pageNo: fulPageNumber },
true
);
}
} else if (String(changeIndex) === "4") {
// if(!isDieMore && !isDieFirst){
// this.props.myExamList({...params, state:3, pageNo:diePageNumber}, true);
// }
}
};
listItemClick = (item, key) => {
console.log(key, "2222226666666666");
if (key == "2") {
if (item.isQualified === "3") {
Toast.info(intl.get("PublishKey48") || "考试已逾期,不可查看");
......@@ -359,7 +344,6 @@ class MyExam extends Component {
console.log(changeIndex);
}
} else {
console.log(item);
hashHistory.push({
pathname: func.routerBefore() + "/trainingsteps",
query: {
......
.singleLineOverflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.exam-of-detail {
background: linear-gradient(0deg, #ff9286 0%, #d23a29), linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%), linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
padding-left: 20px;
padding-right: 20px;
width: 100%;
height: 100%;
padding-top: 30px;
}
.exam-of-detail .exam-detail-name {
width: 100%;
margin-bottom: 40px;
height: 80px;
line-height: 80px;
text-align: center;
font-size: 42px;
color: #fff;
font-family: PingFang SC, PingFang SC-500;
font-weight: 500;
background: linear-gradient(90deg, rgba(255, 151, 130, 0), #ff9782 53%, rgba(255, 151, 130, 0) 100%);
}
.exam-of-detail .exam-detail-container {
width: 94%;
margin: 0 auto;
font-size: 34px;
color: #4a4a4a;
letter-spacing: 0;
border-radius: 20px;
background: #fffdfa;
box-shadow: 0 -2px 17px 0 rgba(0, 0, 0, 0.08);
margin-bottom: 22px;
position: relative;
}
.exam-of-detail .exam-detail-container .exam-detail-info {
width: 100%;
border-radius: 10px;
padding-left: 68px;
padding-right: 68px;
padding-top: 54px;
padding-bottom: 108px;
}
.exam-of-detail .beginBtn {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
}
.exam-of-detail .beginBtn button {
width: 100%;
height: 100px;
background: linear-gradient(270deg, #eb6c53 0%, #d23a29);
color: #fff;
font-size: 0.36rem;
text-align: center;
line-height: 0.94rem;
}
.exam-of-detail .beginBtn button.nullity {
background-color: #ddd;
border: 0;
}
.exam-of-detail .formItem-border {
padding-bottom: 0.2rem;
border-bottom: 0.01rem solid #e5e6e8;
}
.exam-of-detail .formItem-border .xxoo {
width: 28%;
display: inline-block;
font-size: 30px;
color: #888888;
text-align: justify;
text-align-last: justify;
}
.exam-of-detail .formItem-border .formItem-p {
display: inline-block;
width: 70%;
vertical-align: top;
color: #333333;
font-size: 32px;
}
.exam-of-detail .formItem-border .formItem-p .exam-explanation {
white-space: pre-wrap;
}
.exam-of-detail .ant-form-item-control-wrapper {
width: 100%;
font-size: 0.26rem;
color: #4a4a4a;
}
.exam-of-detail .ant-form-item-control-wrapper p {
padding-left: 0.36rem;
}
@import "config";
.exam-of-detail {
background-color: #ececec;
background: linear-gradient(0deg, #ff9286 0%, #d23a29),
linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%),
linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
padding-left: 20px;
padding-right: 20px;
width: 100%;
height: 100%;
padding-top: 30px;
.exam-detail-container {
.exam-detail-name {
width: 100%;
margin-bottom: 40px;
height: 80px;
line-height: 80px;
text-align: center;
font-size: 42px;
color: #fff;
font-family: PingFang SC, PingFang SC-500;
font-weight: 500;
background: linear-gradient(
90deg,
rgba(255, 151, 130, 0),
#ff9782 53%,
rgba(255, 151, 130, 0) 100%
);
}
.exam-detail-container {
width: 94%;
margin: 0 auto;
font-size: 34px;
color: #4A4A4A;
color: #4a4a4a;
letter-spacing: 0;
border-radius: 20px;
background: #FFFDFA;
background: #fffdfa;
box-shadow: 0 -2px 17px 0 rgba(0, 0, 0, 0.08);
margin-bottom: 22px;
position: relative;
.exam-detail-name-bg{
width: 100%;
height: 380px;
position: absolute;
left: 0;
top: 0;
img{
width: 100%;
height: 380px;
}
}
.exam-detail-name {
width: 100%;
height: 380px;
box-shadow: 0 6px 8px 0 #B0B7C3;
border-radius: 20px;
padding-top: 120px;
padding-left: 60px;
padding-right: 60px;
position: relative;
z-index: 9;
p {
font-size: 48px;
color: #000;
letter-spacing: 0;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.exam-detail-info {
width: 100%;
border-radius: 10px;
padding-left: 68px;
padding-right: 68px;
padding-top: 54px;
padding-bottom:108px;
padding-bottom: 108px;
}
}
.occupy-footBtnItem{
width: 100%;
height: 100px;
}
.beginBtn {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background: #f5f5f9;
height: 100px;
button {
width: 100%;
height: 100px;
background: @common-blue;
background: linear-gradient(270deg, #eb6c53 0%, #d23a29);
color: #fff;
font-size: 18*@len;
font-size: 18 * @len;
text-align: center;
line-height: 47*@len;
line-height: 47 * @len;
}
button.nullity {
background-color: #ddd;
......@@ -86,13 +67,13 @@
}
}
.formItem-border {
padding-bottom: 0.3rem;
border-bottom: 0.01rem solid #fff;
padding-bottom: 0.2rem;
border-bottom: 0.01rem solid #e5e6e8;
.xxoo {
width: 28%;
display: inline-block;
font-size: 30px;
color: #595959;
color: #888888;
text-align: justify;
text-align-last: justify;
}
......@@ -100,10 +81,10 @@
display: inline-block;
width: 70%;
vertical-align: top;
color: #9B9B9B;
font-size: 28px;
color: #333333;
font-size: 32px;
.exam-explanation{
.exam-explanation {
white-space: pre-wrap;
}
}
......@@ -119,11 +100,10 @@
// }
.ant-form-item-control-wrapper {
width: 100%;
font-size: 13*@len;
font-size: 13 * @len;
color: #4a4a4a;
p {
padding-left: 18*@len;
padding-left: 18 * @len;
}
}
}
......@@ -114,7 +114,6 @@
.exam-question {
width: 100%;
height: 100%;
background: linear-gradient(0deg, #ff9286 0%, #d23a29), linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%), linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
}
.exam-question .btn-flex {
background-color: #fff;
......@@ -275,7 +274,7 @@
height: 0.98rem;
line-height: 0.98rem;
border: 0;
background-color: #4285f4;
background: linear-gradient(270deg, #eb6c53 0%, #d23a29);
font-size: 0.32rem;
color: #fff;
}
......
......@@ -116,9 +116,6 @@
.exam-question {
width: 100%;
height: 100%;
background: linear-gradient(0deg, #ff9286 0%, #d23a29),
linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%),
linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
.btn-flex {
background-color: #fff;
padding: 0.2rem 0.3rem 0.3rem 0.3rem;
......@@ -281,7 +278,7 @@
height: 0.98rem;
line-height: 0.98rem;
border: 0;
background-color: @common-blue;
background:linear-gradient(270deg,#eb6c53 0%, #d23a29);
font-size: 0.32rem;
color: #fff;
}
......
......@@ -68,14 +68,15 @@ export default class AnswerItem extends Component {
}
}
questionItem=(item, index, isType)=>{
return (
<List.Item className="item-group" onClick={() => this.answerItemClick(index, "")}>
<div className="answer-item-box">
{
String(item.answer)==="0" ? <div className="question-radio">
String(item.answer)==="0" ?
<div className="question-radio">
<div className={String(isType)==="2" ? "checkout-circle" : "question-circle"} />
</div> : <div className="question-radio radio-active">
</div> :
<div className="question-radio radio-active">
<Icon type="check" style={{fontSize: '.3rem', color: '#fff'}}/>
</div>
}
......
.singleLineOverflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.answer-list {
width: 100%;
}
.exam-answer-box {
padding: 0.2rem 0;
}
.exam-answer-box .item-group {
width: 100%;
padding: 0 0.3rem;
margin: 0;
}
.exam-answer-box .item-group .text-area-style {
font-size: 0.26rem;
}
.exam-answer-box .exam-answer-list {
padding: 0;
margin: 0;
}
.exam-answer-box .exam-answer-list .answer-item-box {
min-height: 0.6rem;
display: flex;
background-color: #fff;
}
.exam-answer-box .exam-answer-list .answer-item-box .question-radio {
width: 0.8rem;
border-top-left-radius: 0.12rem;
border-bottom-left-radius: 0.12rem;
border: 1px solid #ccc;
border-right-width: 0;
display: flex;
justify-content: center;
align-items: center;
}
.exam-answer-box .exam-answer-list .answer-item-box .question-radio .question-circle {
width: 0.2rem;
height: 0.2rem;
background: #fff;
border-radius: 0.44rem;
border: 1px solid #ccc;
}
.exam-answer-box .exam-answer-list .answer-item-box .question-radio .checkout-circle {
width: 0.2rem;
height: 0.2rem;
background: #fff;
border-radius: 0.05rem;
border: 1px solid #ccc;
}
.exam-answer-box .exam-answer-list .answer-item-box .radio-active {
background: #5DA8FF;
}
.exam-answer-box .exam-answer-list .answer-item-box .radio-just {
background-color: #EA554E;
}
.exam-answer-box .exam-answer-list .answer-item-box .question-text {
width: 100%;
display: flex;
align-items: center;
font-size: 0.26rem;
border: 1px solid #ccc;
border-left: 0;
padding: 0.3rem 0.1rem;
border-top-right-radius: 0.12rem;
border-bottom-right-radius: 0.12rem;
color: #4A4A4A;
}
.exam-answer-box .exam-answer-list .answer-item-box .answer-text-self {
border-left-width: 0;
}
.exam-answer-box .exam-answer-list .answer-item-box .answer-text-active {
border-color: #5DA8FF;
}
.exam-answer-box .exam-answer-list .answer-item-box .answer-text-just {
border-color: #EA554E;
}
.exam-answer-box .exam-answer-list .answer-item-box .questionGrade-text {
font-size: 0.26rem;
width: 90%;
}
.exam-answer-box .exam-answer-list .answer-item-box .questionGrade-textRight {
font-size: 0.26rem;
right: 0.3rem;
color: #4285f4;
}
.exam-answer-box .exam-answer-list .ant-slider .ant-slider-rail {
height: 0.09rem;
}
.exam-answer-box .exam-answer-list .ant-slider .ant-slider-track {
height: 0.09rem;
}
.exam-answer-box .question-card {
width: 100%;
height: fit-content;
border: 0.02rem solid #e3e5e8;
position: relative;
margin: 0.2rem 0;
border-radius: 0.14rem;
}
.exam-answer-box-answer-daying {
padding: 0.2rem 0;
}
.exam-answer-box-answer-daying .item-group {
width: 100%;
padding: 0 0.3rem;
margin: 0;
}
.exam-answer-box-answer-daying .item-group .text-area-style {
font-size: 0.26rem;
}
.exam-answer-box-answer-daying .exam-answer-list {
padding: 0;
margin: 0;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box {
min-height: 0.6rem;
display: flex;
background-color: #fff;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .question-radio {
width: 0.8rem;
border-top-left-radius: 0.12rem;
border-bottom-left-radius: 0.12rem;
border: 1px solid #ccc;
border-right-width: 0;
display: flex;
justify-content: center;
align-items: center;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .question-radio .question-circle {
width: 0.2rem;
height: 0.2rem;
background: #fff;
border-radius: 0.44rem;
border: 1px solid #ccc;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .question-radio .checkout-circle {
width: 0.2rem;
height: 0.2rem;
background: #fff;
border-radius: 0.05rem;
border: 1px solid #ccc;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .radio-active {
background: #5DA8FF;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .radio-just {
background-color: #EA554E;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .question-text {
width: 100%;
display: flex;
align-items: center;
font-size: 0.26rem;
border: 1px solid #ccc;
border-left: 0;
padding: 0.3rem 0.1rem;
border-top-right-radius: 0.12rem;
border-bottom-right-radius: 0.12rem;
color: #4A4A4A;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .answer-text-self {
border-left-width: 0;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .answer-text-active {
border-color: #6CBF70;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .answer-text-just {
border-color: #EA554E;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .questionGrade-text {
font-size: 0.26rem;
}
.exam-answer-box-answer-daying .exam-answer-list .answer-item-box .questionGrade-textRight {
font-size: 0.26rem;
position: absolute;
right: 0.3rem;
color: #4285f4;
}
.exam-answer-box-answer-daying .exam-answer-list .ant-slider .ant-slider-rail {
height: 0.09rem;
}
.exam-answer-box-answer-daying .exam-answer-list .ant-slider .ant-slider-track {
height: 0.09rem;
}
.exam-answer-box-answer-daying .question-card {
width: 100%;
height: fit-content;
border: 0.02rem solid #e3e5e8;
position: relative;
margin: 0.2rem 0;
border-radius: 0.14rem;
}
.slider-icon .ant-slider-handle {
background: url("slider.png") no-repeat;
width: 36px;
height: 36px;
background-size: 100%;
border: 0;
margin-top: -13px;
border-radius: 0!important;
}
.exam-question .am-wingblank.am-wingblank-lg {
margin: 0;
}
.exam-question .am-wingblank {
margin: 0;
}
.bot .ant-list-item {
padding-bottom: 20px!important;
border-bottom: 4px solid #f8f8f8 !important;
}
.exam-question .am-wingblank.am-wingblank-lg {
margin: 0 auto;
width: 95%;
}
......@@ -3,10 +3,43 @@ import "./style.less";
import defaultIcon from "../../../common/iconImage/index-btn-icon.png";
import SimpleBar from "simplebar-react";
import "simplebar/dist/simplebar.min.css";
import linkBg from "./../image/link-bg.png";
import MessageIcon from "./../image/message-icon.png";
class IndexBtnScroll extends Component {
constructor(props) {
super(props);
this.state = {
hongList: [
{
name: "虹品牌",
imgUrl: "",
},
{
name: "虹文化",
imgUrl: "",
},
{
name: "虹讲堂",
imgUrl: "",
},
{
name: "虹阵地",
imgUrl: "",
},
{
name: "虹平台",
imgUrl: "",
},
{
name: "虹团队",
imgUrl: "",
},
{
name: "虹活力",
imgUrl: "",
},
],
};
}
componentDidMount() {}
......@@ -36,45 +69,49 @@ class IndexBtnScroll extends Component {
render() {
const { list } = this.props;
let listLength = list.length;
console.log("首页按钮数据", list);
if (listLength <= 5 || listLength == 10) {
return (
<div className="index-btn-scroll-container">
<div className="index-btn-scroll-item-container">
{this.renderBtnByList()}
</div>
</div>
);
} else {
let paddingBottom =
(listLength > 5 && listLength < 10) || listLength > 10 ? 16 : 0;
return (
<div className="index-btn-scroll-container" style={{ paddingBottom }}>
<div className="index-simple-scroll-bar-wrap">
let paddingBottom =
(listLength > 5 && listLength < 10) || listLength > 10 ? 16 : 0;
return (
<div className="index-btn-scroll-container" style={{ paddingBottom }}>
<div className="index-simple-scroll-bar-wrap">
<div
className="index-btn-scroll-item-container"
id="index-simple-scroll-bar-id"
// autoHide={false}
>
<div
className="index-btn-scroll-item-container"
id="index-simple-scroll-bar-id"
// autoHide={false}
className="index-btn-scroll-single-wrap-container"
style={{ width: "100%" ,position:'relative'}}
>
{this.renderBtnByList()}
{/* 新消息icon */}
<div
className="index-btn-scroll-single-wrap-container"
style={{ width: "100%" }}
style={{
position: "absolute",
bottom: "40px",
right: "0",
}}
>
{this.renderBtnByList()}
<img style={{ width: "180px" }} src={MessageIcon} alt="" />
</div>
</div>
</div>
</div>
);
}
<div>
<img
src={linkBg}
alt=""
style={{ width: "96%", paddingLeft: "30px" }}
/>
</div>
</div>
);
}
}
export default IndexBtnScroll;
const IndexBtnItem = ({ data, paddingBottom, onClick }) => {
let containerWidth = document.body.clientWidth - 60;
let itemWidth = "25%";
return (
<div
className="index-btn-scroll-common-item-container"
......
......@@ -10,8 +10,6 @@ import {
getLoginConfig,
getWechatAuthen as getWechatToken,
} from "../../redux/action/login";
import intl from "react-intl-universal";
import loginTopLogoImg from "../../common/iconImage/a-danghuikaobei.png";
const antIcon = <Icon type="loading" style={{ fontSize: 80 }} spin />;
......@@ -47,42 +45,10 @@ class Login extends Component {
}
componentWillMount() {
console.log("~~~~~~~10001");
sessionStorage.setItem("dontAPI", "no");
//邮储上分企业值传递openid 实现免登陆 cwj
let getWechatAuthen = sessionStorage.getItem("getWechatAuthen") || "";
//邮储上风企业值传递openid 实现免登陆 cwj
if (getWechatAuthen && getWechatAuthen != "undefined") {
console.log("getWechatAuthen---------if", getWechatAuthen);
//存储重定向 地址
let redirectHash = sessionStorage.getItem("yourejecthash") || "";
// console.log('检测打印变量=location.host ',location.host );
// console.log('检测打印变量=redirectHash ',redirectHash );
let _this = this;
getWechatToken(getWechatAuthen, (res, url) => {
console.log("getWechatToken----回调");
//存储token
sessionStorage.setItem(companyCode + "daying", res.data.Authorization);
//用来做心跳包使用
sessionStorage.setItem("accountId", res.data.userInfo.id);
localStorage.setItem("accountId", res.data.userInfo.id); //xmly-liyuan
let token = sessionStorage.getItem(func.getSiteCode());
console.log("getWechatToken----token");
if (token) {
console.log("getWechatToken----token----token");
location.replace("//" + location.host + "/" + redirectHash);
_this.state.isLoading = false;
return;
}
});
}
//邮储上风企业值传递openid 实现免登陆 end
//token验证
var token = sessionStorage.getItem(func.getSiteCode());
console.log("xxxxxxxxxxx此处============");
if (token) {
console.log("xxxxxxxxxxx此处重定向============");
companyCode = func.companyCode();
siteCode = func.siteCode();
hashHistory.replace({
......@@ -90,40 +56,11 @@ class Login extends Component {
});
this.state.isLoading = false;
}
console.log("xxxxxxxxxxx重定向============之后");
let _this = this;
let code = func.routerBefore();
let username = "";
let password = "";
if (code == "/guotouxinda/home") {
username = "guanliyuan";
password = "123456";
} else {
//从location.state中取出url的值实现免登陆重定向
console.log("从location.state中取出url的值实现免登陆重定向");
console.log("vvvvvvvvv", this.props.location.state);
if (this.props.location.state) {
console.log("if进来了");
const { linkUsername = "", linkPassword = "" } =
this.props.location.state;
if (linkUsername || linkPassword) {
username = linkUsername;
password = linkPassword;
} else {
//从url取出
username = func.getUrlParam("username");
password = func.getUrlParam("password");
}
} else {
console.log("else--进来了");
//从url取出
username = func.getUrlParam("username");
password = func.getUrlParam("password");
}
}
//自动登录
if (username && password) {
console.log("走进自动登录");
this.setState({
username: username,
password: password,
......@@ -131,7 +68,6 @@ class Login extends Component {
});
return;
}
console.log("没走进--==自动登录");
//微信端登录页配置 type:3
this.props.getLoginConfig(3, (loginBg) => {
if (loginBg.bgimgPath) {
......
......@@ -61,7 +61,6 @@ class LoginForm extends Component {
const { autoLogin, username, password } = this.props;
console.log("888888888======", autoLogin);
if (autoLogin) {
console.log("autoLogin0000进来");
this.setState(
{
account: username,
......@@ -320,6 +319,7 @@ class LoginForm extends Component {
salt: salt,
sign: md5(sign),
languageCode: lang_type, //新增国际化-cwj-152
terminalType:'2'
};
_this.props.login(parms, (res) => {
......@@ -363,19 +363,17 @@ class LoginForm extends Component {
//为了解决语言异步问题,登录成功后的所有操作,都放在语言回调中
languageCallback = (tip, res) => {
console.log('function languageCallback',tip,res,'1111111111111');
const _this = this;
console.log("为了解决语言异步问题,登录成功后的所有操作,都放在语言回调中");
_this.queryControl(res);
if (tip == "loginAuthen") {
_this.rememberPasswordByConfig(_this.state.account, _this.state.password);
_this.queryControl(res);
} else {
_this.rememberPasswordByConfig(_this.state.account, _this.state.password);
_this.queryControl(res);
if (_this.state.redirectInfo.state) {
console.log("1111111111111");
let { redirectHash } = _this.state.redirectInfo.state;
console.log(redirectHash);
console.log('function languageCallback',redirectHash,'222222222222');
if (redirectHash.split("#")[1].split("?")[0].indexOf("login") != -1) {
hashHistory.replace({
pathname: func.routerBefore() + "/",
......@@ -416,16 +414,16 @@ class LoginForm extends Component {
};
preLogin() {
console.log("preLogin................preLogin");
let _this = this;
const { fullScreenHeight } = this.props;
console.log("function preLogin",_this.state.currentScreenHeight,fullScreenHeight)
var userInput = document.getElementById("login-user-input");
var passwordInput = document.getElementById("login-password-input");
userInput.blur();
passwordInput.blur();
let _this = this;
this.loginTimer = setInterval(() => {
if (_this.state.currentScreenHeight >= fullScreenHeight) {
console.log("preLogin-----------fullScreenHeight");
Toast.hide();
clearInterval(_this.loginTimer);
_this.login();
......
......@@ -37,7 +37,7 @@ import IndexFirstEnter from "../indexComponent/indexFirstEnter";
import IndexTips from "./indexTip";
import MessageIcon from "./message-icon.png";
function mapStateToProps(state, ownProps) {
return {
......@@ -401,16 +401,7 @@ class Menulearn extends React.Component {
) : (
""
)}
{/* 新消息icon */}
<div
style={{
position: "fixed",
top: "55%",
right: "0",
}}
>
<img style={{ width: "180px" }} src={MessageIcon} alt="" />
</div>
{/* 通知 :6月1号版本,隐藏首页的公告字段*/}
{this.state.announceList && this.state.announceList.length > 0 ? (
<NoticeBlock
......
import React, { Component } from "react";
class AboutHqzhdj extends Component {
constructor(props) {
super(props);
}
componentDidMount() {}
render() {
return (
<div
style={{
width: "100%",
height: "100%",
paddingTop:'40px',
background:
"linear-gradient(0deg,#ff9286 0%, #d23a29), linear-gradient(180deg,rgba(255,255,255,0.00) 59%, #f5f5f5 100%), linear-gradient(0deg,rgba(210,58,41,0.00) 0%, #d23a29)",
}}
>
<div
style={{
backgroundColor: "#fff",
margin: "0 auto",
width: "92%",
display: "flex",
flexDirection: "column",
color: "#333",
padding: "40px 30px",
borderRadius:'40px',
}}
>
<div
style={{
display: "flex",
justifyContent: "center",
color: "#000",
fontWeight: "600",
fontSize: "42px",
marginBottom: "20px",
}}
>
关于智慧党建
</div>
<div
style={{
fontSize: "32px",
textIndent: "2em",
lineHeight: "65px",
marginBottom: "20px",
}}
>
为推动党建管理的数字化、党建工作的可视化,机电信息保障部党委(以下简称部党委)着力开发“党建信息平台”(以下简称平台)——“机电e先锋”,通过微信小程序方式,实现打破时间和空间的限制,将先进的信息技术融入到党建日常工作中,有效提升信息传达顺畅度,提高基层党建工作规范化水平。
同时,通过使用小程序,加强党员教育管理工作,落实教育数字化战略行动,切实增强员工对党务工作的感受度,让基层党建工作开展地更加灵活高效,从而进一步提升党建效能、激发党建活力、筑牢党建堡垒,促进各支部和党员主动融入部门党建,共享党建资源,共同携手进步。{" "}
</div>
<div
style={{
fontSize: "32px",
width: "100%",
display: "flex",
justifyContent: "flex-end",
}}
>
机电信息保障部党委
</div>
</div>
</div>
);
}
}
export default AboutHqzhdj;
......@@ -285,14 +285,18 @@ class Menume extends React.Component {
};
let param1 = {
my: 1,
test: "2", //进入我的测测试或培训时 0:培训,1:测试
tabIndex: "2", //进入我的测测试或培训时 1培训,2:测试
};
hashHistory.push({
pathname: func.routerBefore() + mapList[code].url,
query: code == "ks" ? param1 : param,
});
};
handleAbout=()=>{
hashHistory.push({
pathname: func.routerBefore() + '/aboutHqzhdj',
});
}
render() {
const { fullName, position, headPortrait, name } = this.props.user;
const {
......@@ -440,8 +444,8 @@ class Menume extends React.Component {
})}
</div>
<div className="mess-list">
<div className="mess-item">
<span style={{ fontSize: "32px" }}>关于智慧党建</span>
<div className="mess-item" onClick={this.handleAbout}>
<span style={{ fontSize: "32px" }} >关于智慧党建</span>
<span>
<IconFont
className="arraw-icon"
......
......@@ -8,7 +8,6 @@ export function myCommentListApi(params, callback) {
API.myCommentListApi,
params,
(response) => {
Toast.info('提交成功')
if (callback) {
callback(response.data);
}
......
import React, { Component } from "react";
import "./style.less";
import { connect } from "react-redux";
import { hashHistory } from "react-router";
import func from "../../util/commonFunc";
import { bindActionCreators } from "redux";
import { myCommentListApi } from "./action";
class myComment extends Component {
constructor(props) {
super(props);
this.state = {
commentList: [
{
trainingProjectId: "",
bizType: "1", //1活动服务;2新闻资讯;3培训测试;4培训资讯
},
],
};
document.title = "我的评论";
}
componentDidMount() {
// this.props.myCommentListApi();
this.props.myCommentListApi({}, (response) => {
console.log(response);
});
}
handleTo = (item) => {
let url = "";
let tabIndex = "";
switch (item.bizType) {
case "1":
url = "/menutrain";
case "2":
url = "/NewsMessageResult";
case "3":
url = "/exam/MyExam";
tabIndex = "1";
case "4":
url = "/exam/MyExam";
tabIndex = "2";
}
hashHistory.push({
pathname: func.routerBefore() + url,
query: { tabIndex: tabIndex },
});
};
render() {
return (
<div className="comment-out">
</div>
);
return <div className="comment-out"></div>;
}
}
const mapStateToProps = (state) => {
......
......@@ -57,7 +57,7 @@ class myComment extends Component {
}
componentDidMount() {
// this.props.myCommentListApi();
// this.props.myCommentListApi({});
}
handleTo = (url) => {
hashHistory.push({
......@@ -101,9 +101,9 @@ class myComment extends Component {
积分
</div>
</div>
{contList.map((item) => {
{contList.map((item,index) => {
return (
<div className="box-content">
<div className="box-content" key={index}>
<div className="content-items">
<div className="title">{item.title}</div>
<div className="titValue">{item.titleVal}</div>
......
......@@ -25,6 +25,7 @@
align-items: center;
color: #fff;
font-size: 30px;
margin-top: -10px;
}
.integral-out .integral-head .head-img {
width: 42%;
......@@ -66,7 +67,7 @@
padding: 8px 22px;
border-radius: 30px;
background: linear-gradient(90deg, #d23a29, #eb6c53 100%);
font-size: 36px;
font-size: 32px;
color: #fff;
}
.integral-out .integral-box .box-content .unactive-btn {
......@@ -74,6 +75,6 @@
padding: 8px 22px;
border-radius: 30px;
background-color: rgba(158, 158, 158, 0.1);
font-size: 36px;
font-size: 32px;
color: #999999;
}
......@@ -22,6 +22,7 @@
align-items: center;
color: #fff;
font-size: 30px;
margin-top: -10px;
}
}
.head-img {
......@@ -63,7 +64,7 @@
padding: 8px 22px;
border-radius: 30px;
background: linear-gradient(90deg, #d23a29, #eb6c53 100%);
font-size: 36px;
font-size: 32px;
color: #fff;
}
.unactive-btn {
......@@ -71,7 +72,7 @@
padding: 8px 22px;
border-radius: 30px;
background-color: rgba(158, 158, 158, 0.1);
font-size: 36px;
font-size: 32px;
color: #999999;
}
}
......
import excute from '../../util/fetchUtil';
import API from '../../util/urlconfig';
export function VoteListApi(params, callback) {
const url = `${API.voteListApi}?researchId=${params.id}`;
//我要留言
export function myLeaveMessageApi(params, callback) {
return (dispatch) => {
return excute.get(
url,
return excute.post(
API.myLeaveMessageApi,
params,
(response) => {
if (callback) {
callback(response.data);
callback(response);
}
}
);
......
......@@ -2,9 +2,10 @@ import React, { Component } from "react";
import "./style.less";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { VoteListApi } from "./action";
import { myLeaveMessageApi } from "./action";
import { Input, Radio } from "antd";
import PostUploadFile from "../../common/uploadOSS/uploadOSS";
import { Toast } from "antd-mobile";
const { TextArea } = Input;
class MyLeaveMessage extends Component {
constructor(props) {
......@@ -13,8 +14,7 @@ class MyLeaveMessage extends Component {
anonymousValue: 1,
titleValue: "",
contentValue: "",
previewVisible: false,
previewImage: "",
bizType: "",
fileList: [],
activeId: 0,
mapList: [
......@@ -46,25 +46,39 @@ class MyLeaveMessage extends Component {
};
handleMessageClick(data, index) {
let _this = this;
_this.setState({
activeId: index,
typeOne: data.id,
bizType: data.id,
});
}
handleClick = () => {
console.log(this.state.titleValue, "点击情况~~~~~~~~~");
// let { typeOne, typeTwo, typeThree } = this.props.location.query;
// let params = {
// id: data.id,
// };
// this.props.VoteListApi(params, (response) => {
// console.log(response);
// });
let imgs = [];
this.state.fileList.map((item) => {
imgs.push(item.fileUrl);
});
if (!this.state.titleValue) {
return Toast.info("请输入标题");
}
if (!this.state.contentValue) {
return Toast.info("请输入问题或建议");
}
let params = {
name: this.state.titleValue,
content: this.state.contentValue,
ossUrl: JSON.stringify(imgs),
bizType: this.state.bizType,
};
this.props.myLeaveMessageApi(params, (response) => {
if (response.code == 1000) {
Toast.info("提交成功");
setTimeout(() => {
history.back();
}, 1500);
}
});
};
render() {
const { mapList, activeId } = this.state;
return (
<div className="contribute-detail-out">
<div className="contribute-detail-box">
......@@ -103,7 +117,8 @@ class MyLeaveMessage extends Component {
</div>
<div className="contribute-detail-box">
<div className="top-tit">
问题或建议<span>(10-500个字)</span>
问题或建议<span className="red-star">*</span>
<span>(10-500个字)</span>
</div>
<TextArea
value={this.state.contentValue}
......@@ -115,12 +130,10 @@ class MyLeaveMessage extends Component {
/>
</div>
<div className="contribute-detail-box">
<div className="top-tit">
图片<span>(0/9)</span>
</div>
<div className="top-tit">上传图片</div>
<PostUploadFile
acceptFileType="image/*,video/*"
maxSize={{ image: 10 }}
maxSize={{ image: 5 }}
maxlength={9}
tooMoreTip={"最多上传9张图片。"}
deliveryFiles={this.getUploadImg}
......@@ -149,7 +162,7 @@ class MyLeaveMessage extends Component {
}
>
<Radio value={1}></Radio>
<Radio value={2}></Radio>
<Radio value={0}></Radio>
</Radio.Group>
</div>
<div className="contribute-detail-btn">
......@@ -166,7 +179,7 @@ const mapStateToProps = (state) => {
};
const mapDispatchToProps = (dispatch) => {
return {
VoteListApi: bindActionCreators(VoteListApi, dispatch),
myLeaveMessageApi: bindActionCreators(myLeaveMessageApi, dispatch),
};
};
export default connect(mapStateToProps, mapDispatchToProps)(MyLeaveMessage);
......
......@@ -36,17 +36,36 @@
font-size: 30px !important;
}
.contribute-detail-out .contribute-detail-box .ant-upload-list-picture-card-container {
width: 200px !important;
height: 200px !important;
width: 32% !important;
}
.contribute-detail-out .contribute-detail-box .ant-upload-list-picture-card .ant-upload-list-item {
width: 200px !important;
width: 100% !important;
height: 200px !important;
}
.contribute-detail-out .contribute-detail-box .ant-upload-select-picture-card {
width: 200px !important;
width: 32% !important;
height: 200px !important;
}
.contribute-detail-out .contribute-detail-box .ant-upload-select-picture-card .ant-upload {
display: flex;
align-items: center;
justify-content: center;
}
.contribute-detail-out .contribute-detail-box .ant-radio-wrapper .ant-radio-inner {
width: 30px !important;
height: 30px !important;
}
.contribute-detail-out .contribute-detail-box .ant-radio-wrapper .ant-radio-inner::after {
width: 30px !important;
height: 30px !important;
top: 0 !important;
left: 0 !important;
border-radius: 50%;
}
.contribute-detail-out .contribute-detail-box .ant-radio-wrapper span {
color: #000;
font-size: 30px !important;
}
.contribute-detail-out .contribute-detail-box .anticon {
font-size: 40px;
}
......
......@@ -35,16 +35,37 @@
font-size: 30px !important;
}
.ant-upload-list-picture-card-container {
width: 200px !important;
height: 200px !important;
width: 32% !important;
}
.ant-upload-list-picture-card .ant-upload-list-item {
width: 200px !important;
width: 100% !important;
height: 200px !important;
}
.ant-upload-select-picture-card {
width: 200px !important;
width: 32% !important;
height: 200px !important;
.ant-upload {
display: flex;
align-items: center;
justify-content: center;
}
}
.ant-radio-wrapper {
.ant-radio-inner {
width: 30px !important;
height: 30px !important;
}
.ant-radio-inner::after {
width: 30px !important;
height: 30px !important;
top: 0 !important;
left: 0 !important;
border-radius: 50%;
}
span {
color: #000;
font-size: 30px !important;
}
}
.anticon {
font-size: 40px;
......
......@@ -23,7 +23,7 @@ export function commitContributeApi(params, callback) {
params,
(response) => {
if (callback) {
callback(response.data);
callback(response);
}
}
);
......
......@@ -5,6 +5,7 @@ import { bindActionCreators } from "redux";
import { getContributeListApi, commitContributeApi } from "./action";
import { Input, Modal } from "antd";
import PostUploadFile from "../../common/uploadOSS/uploadOSS";
import { Toast } from "antd-mobile";
const { TextArea } = Input;
class ContributeDetail extends Component {
constructor(props) {
......@@ -57,8 +58,20 @@ class ContributeDetail extends Component {
ossUrl: JSON.stringify(imgs),
deptName: this.state.delValue,
};
if (!this.state.titleValue) {
return Toast.info("请输入标题");
}
if (imgs.length == 0) {
return Toast.info("请上传图片或视频");
}
this.props.commitContributeApi(params, (response) => {
console.log(response);
if (response.code == 1000) {
Toast.info("提交成功");
setTimeout(() => {
history.back();
}, 1500);
}
});
};
render() {
......@@ -92,7 +105,7 @@ class ContributeDetail extends Component {
/>
</div>
<div className="contribute-detail-box">
<div className="top-tit">图片或视频上传</div>
<div className="top-tit">图片或视频上传<span className="red-star">*</span></div>
<PostUploadFile
acceptFileType="image/*,video/*"
maxSize={{ image: 10 }}
......
.exam-question {
background: linear-gradient(0deg, #ff9286 0%, #d23a29), linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%), linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
}
.sur-details {
width: 100%;
}
......
.sur-details{
.exam-question {
background: linear-gradient(0deg, #ff9286 0%, #d23a29),
linear-gradient(180deg, rgba(255, 255, 255, 0) 59%, #f5f5f5 100%),
linear-gradient(0deg, rgba(210, 58, 41, 0) 0%, #d23a29);
}
.sur-details {
width: 100%;
.sur-details-header{
.sur-details-header {
width: 100%;
height: 0.9rem;
position: fixed;
......@@ -8,33 +13,33 @@
top: 0;
text-align: center;
line-height: 0.9rem;
font-size:0.24rem;
background:#f3f3f3;
box-shadow: 0 -0.005rem 0 0 rgba(199,199,199,0.5);
font-size: 0.24rem;
background: #f3f3f3;
box-shadow: 0 -0.005rem 0 0 rgba(199, 199, 199, 0.5);
z-index: 100;
color:#9b9b9b;
span{
color: #9b9b9b;
span {
color: #4a4a4a;
font-size: 0.3rem;
}
}
}
.question-block{
p{
.question-block {
p {
margin: 0;
}
}
.dopen{
.dopen {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.zopen{
.zopen {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
}
\ No newline at end of file
}
......@@ -80,7 +80,7 @@ class Vote extends Component {
<div className="vote-box">
{list.map((item, index) => {
return (
<div className="vote-top">
<div className="vote-top" key={index}>
<div
className="top-img"
onClick={() => {
......
......@@ -148,7 +148,7 @@ class TheCharts extends Component {
<div className="charts-content">
{topList.map((item, index) => {
return (
<div className="content-box">
<div className="content-box" key={index}>
<div
style={{
display: "flex",
......
......@@ -96,7 +96,6 @@ select {
padding: 0;
}
body {
font-family: PingFangSC-Regular;
-webkit-text-size-adjust: 100%;
}
a {
......
......@@ -105,7 +105,7 @@ select {
}
body {
font-family: PingFangSC-Regular;
// font-family: PingFangSC-Regular;
-webkit-text-size-adjust: 100%;
}
......
......@@ -214,6 +214,11 @@ const Mailbox = LazyLoad(() =>
const MyComment = LazyLoad(() =>
import('./components/myComment')
)
//关于智慧党建
const AboutHqzhdj = LazyLoad(() =>
import('./components/menume/aboutHqzhdj.jsx')
)
// 首页组件库
const IndexComponentPage = LazyLoad(() => import('./components/indexComponent'));
......@@ -398,7 +403,8 @@ class AppRouter extends React.Component {
<Route path="/*/*/committeeMailbox" component={Mailbox} />
{/* 我的评论 */}
<Route path="/*/*/myComment" component={MyComment} />
{/* 关于智慧党建 */}
<Route path="/*/*/aboutHqzhdj" component={AboutHqzhdj} />
{/*empty Committee*/}
<Route path="/*/*/empty" component={Empty} />
......
......@@ -440,7 +440,7 @@ const url = {
practiceStartSave: `${baseUrl}${CHATPRACTICE}student/chat/start/practice/save`, //陪练开始,新增一条陪练记录
practiceChatEnd: `${baseUrl}${CHATPRACTICE}student/chat/end/save`, //陪练,获取结果评分
practiceTabIndex: `${baseUrl}${CHATPRACTICE}student/practice/list/tab/index/get`, //陪练列表,默认显示哪个tab(未开始,进行中,已结束)
//进入详情页面
//进入投票详情页面
allDescribeUrl:`${baseUrl}${WEBSTUDENT}api/research/details`,
//投票列表数据
......@@ -466,5 +466,7 @@ const url = {
dwsystemMailboxApi:`${baseUrl}${WEBMANAGE}manage/systemMailbox/save/2`,
//我的评论
myCommentListApi:`${baseUrl}${WEBSTUDENT}api/tpComment/pc/listByMyself`,
//我要留言
myLeaveMessageApi:`${baseUrl}${WEBMANAGE}manage/leaveWord/save`,
};
export default url;
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