Commit b838da55 by zhangleyuan

feat:修改UI验收后的问题

parent 06f15164
@font-face { @font-face {
font-family: 'iconfont'; /* project id 2223403 */ font-family: 'iconfont'; /* project id 2223403 */
src: url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.eot'); src: url('//at.alicdn.com/t/font_2223403_uo63ciaamd.eot');
src: url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.eot?#iefix') format('embedded-opentype'), src: url('//at.alicdn.com/t/font_2223403_uo63ciaamd.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.woff2') format('woff2'), url('//at.alicdn.com/t/font_2223403_uo63ciaamd.woff2') format('woff2'),
url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.woff') format('woff'), url('//at.alicdn.com/t/font_2223403_uo63ciaamd.woff') format('woff'),
url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.ttf') format('truetype'), url('//at.alicdn.com/t/font_2223403_uo63ciaamd.ttf') format('truetype'),
url('//at.alicdn.com/t/font_2223403_13iutf1by4j8.svg#iconfont') format('svg'); url('//at.alicdn.com/t/font_2223403_uo63ciaamd.svg#iconfont') format('svg');
} }
.iconfont{ .iconfont{
font-family:"iconfont" !important; font-family:"iconfont" !important;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
box-sizing: border-box; box-sizing: border-box;
} }
.nc_scale .nc_ok, .nc_scale .nc_bg { .nc_scale .nc_ok, .nc_scale .nc_bg {
background: #FFE7D6; background: #FFB714;
border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px;
} }
.nc_scale .btn_ok { .nc_scale .btn_ok {
......
...@@ -1611,7 +1611,7 @@ input:focus { ...@@ -1611,7 +1611,7 @@ input:focus {
font-size: 22px !important; font-size: 22px !important;
line-height: 22px !important; line-height: 22px !important;
float: left !important; float: left !important;
color: #FC9C6B !important; color: #FFB714 !important;
margin-right: 16px !important; margin-right: 16px !important;
} }
......
<!-- <!--
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-24 12:20:57 * @Date: 2020-08-24 12:20:57
* @LastEditors: wufan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-11 09:49:03 * @LastEditTime: 2020-12-14 15:13:30
* @Description: * @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
--> -->
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="stylesheet" href="//at.alicdn.com/t/font_2223403_13iutf1by4j8.css"> <link rel="stylesheet" href="//at.alicdn.com/t/font_2223403_uo63ciaamd.css">
<!-- <!--
Notice the use of %PUBLIC_URL% in the tags above. Notice the use of %PUBLIC_URL% in the tags above.
......
...@@ -133,16 +133,21 @@ function ChangePhoneModal(props: changePhoneModalProps) { ...@@ -133,16 +133,21 @@ function ChangePhoneModal(props: changePhoneModalProps) {
<div className="desc">请输入新的手机号</div> <div className="desc">请输入新的手机号</div>
<div className="new-phone-content"> <div className="new-phone-content">
<Input <Input
type="number"
maxLength={11} maxLength={11}
name="newPhone" name="newPhone"
placeholder="请输入新手机号" placeholder="请输入新手机号"
value={newPhone} value={newPhone}
className={ newPhoneError ? 'error-input' : ''} className={ newPhoneError ? 'error-input' : ''}
onChange={(e) => { onChange={(e) => {
setNewPhone(e.target.value); if((e.target.value).match(/^\d+$/)){
setNewPhoneError(false); setNewPhone(e.target.value);
setErrorMessageText('') setNewPhoneError(false);
setErrorMessageText('')
} else {
setErrorMessageText('仅支持输入数字');
setNewPhoneError(true);
}
}} }}
style={{ width:200,height:32}} style={{ width:200,height:32}}
/> />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2019-09-10 18:26:03 * @Date: 2019-09-10 18:26:03
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-10 19:48:55 * @LastEditTime: 2020-12-14 15:30:19
* @Description: * @Description:
*/ */
import React , { useContext, useState}from 'react'; import React , { useContext, useState}from 'react';
...@@ -69,7 +69,7 @@ function Header(props:headerProps){ ...@@ -69,7 +69,7 @@ function Header(props:headerProps){
return confirm({ return confirm({
title: "你确定要退出登录吗?", title: "你确定要退出登录吗?",
content: "退出后,需重新登录", content: "退出后,需重新登录",
icon: <QuestionCircleOutlined />, icon: <span className="icon iconfont default-confirm-icon">&#xe839; </span>,
okText: "退出登录", okText: "退出登录",
cancelText: "点错了", cancelText: "点错了",
onOk: () => { onOk: () => {
......
...@@ -76,6 +76,16 @@ function Login(props) { ...@@ -76,6 +76,16 @@ function Login(props) {
} }
function handleSubmit() { function handleSubmit() {
if (!phone) {
setPhoneError(true);
setErrorMessage("请输入手机号");
return;
}
if (phone.length != 11) {
setPhoneError(true);
setErrorMessage("请输入11位手机号")
return;
}
if(!phoneverify){ if(!phoneverify){
setErrorMessage("请输入验证码"); setErrorMessage("请输入验证码");
return; return;
...@@ -178,7 +188,7 @@ function Login(props) { ...@@ -178,7 +188,7 @@ function Login(props) {
</div> </div>
<div className="submit"> <div className="submit">
<div className="btn"> <div className="btn">
<button id='loginIn' onClick={ () => { handleSubmit() } }>登录</button> <button id='loginIn' onClick={ () => { handleSubmit() } } >登录</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -3,6 +3,17 @@ ...@@ -3,6 +3,17 @@
thead{ thead{
display:none; display:none;
} }
tbody tr td{
border-bottom:none;
background:#FAFAFA;
}
// tr:hover td{
// background: #FAFAFA !important;
// }
// tbody tr:hover{
// background: #FAFAFA !important;
// }
} }
.divider-line{ .divider-line{
color: #BFBFBF; color: #BFBFBF;
...@@ -28,5 +39,10 @@ ...@@ -28,5 +39,10 @@
.empty-child{ .empty-child{
color:#666; color:#666;
font-size:14px; font-size:14px;
text-align:center;
background: #FAFAFA;
} }
// tr.ant-table-expanded-row:hover > td {
// background: #FAFAFA !important;
// }
} }
\ No newline at end of file
...@@ -58,7 +58,7 @@ function CourseCatalogPage() { ...@@ -58,7 +58,7 @@ function CourseCatalogPage() {
return confirm({ return confirm({
title: record.type==='parent'? '你确定要删除此分类吗?':'你确定要删除此子分类吗?', title: record.type==='parent'? '你确定要删除此分类吗?':'你确定要删除此子分类吗?',
content: record.type==='parent'? '删除后,此分类下包含的所有子分类都会被删除,此操作不可恢复。':'此操作不可恢复。', content: record.type==='parent'? '删除后,此分类下包含的所有子分类都会被删除,此操作不可恢复。':'此操作不可恢复。',
icon: <QuestionCircleOutlined />, icon: <span className="icon iconfont default-confirm-icon">&#xe839; </span>,
okText: '删除', okText: '删除',
okType: 'danger', okType: 'danger',
cancelText: '取消', cancelText: '取消',
...@@ -178,7 +178,7 @@ function CourseCatalogPage() { ...@@ -178,7 +178,7 @@ function CourseCatalogPage() {
pagination={false} pagination={false}
expandedRowRender={(record:RecordTypes) => { expandedRowRender={(record:RecordTypes) => {
if(!record.sonCategoryList){ if(!record.sonCategoryList){
return <div>还未添加任何子分类</div>; return <div className="empty-child">还未添加任何子分类</div>;
} }
if (record.sonCategoryList.length !== 0){ if (record.sonCategoryList.length !== 0){
return <Table columns={parseColumn()} dataSource={record.sonCategoryList} pagination={false} className="child-table"/> return <Table columns={parseColumn()} dataSource={record.sonCategoryList} pagination={false} className="child-table"/>
......
...@@ -206,7 +206,7 @@ function EmployeesManagePage() { ...@@ -206,7 +206,7 @@ function EmployeesManagePage() {
return confirm({ return confirm({
title: "你确定要删除此讲师吗?", title: "你确定要删除此讲师吗?",
content: "删除后,讲师将不能登录系统,此操作不能被撤销", content: "删除后,讲师将不能登录系统,此操作不能被撤销",
icon: <QuestionCircleOutlined />, icon: <span className="icon iconfont default-confirm-icon">&#xe839; </span>,
okText: "删除", okText: "删除",
cancelText: "取消", cancelText: "取消",
onOk: () => { onOk: () => {
......
...@@ -90,7 +90,7 @@ function StoreDecorationPage() { ...@@ -90,7 +90,7 @@ function StoreDecorationPage() {
function handleDeleteDecorationConfirm(record: RecordTypes) { function handleDeleteDecorationConfirm(record: RecordTypes) {
return confirm({ return confirm({
title: "你确定要删除这个banner吗?", title: "你确定要删除这个banner吗?",
icon: <QuestionCircleOutlined />, icon: <span className="icon iconfont default-confirm-icon">&#xe839; </span>,
okText: "删除", okText: "删除",
cancelText: "取消", cancelText: "取消",
onOk: () => { onOk: () => {
......
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