Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
董佳音
/
networkSchool
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
董佳音
2017-09-06 10:39:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f57625807746afd12b44e289fba91ac442d85ff4
f5762580
1 parent
72013a4c
修改弹出框位置,管理员列表样式
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
135 行增加
和
118 行删除
dist/stylesheets/style.css
etc/umd.template.html
src/ape/AdministratorApe.js
src/ape/CreateClassApe.js
src/main.js
dist/stylesheets/style.css
查看文件 @
f576258
...
...
@@ -868,9 +868,9 @@ body{
width
:
700px
;
height
:
520px
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
background
:
#fff
;
...
...
@@ -1199,11 +1199,9 @@ body{
width
:
420px
;
height
:
475px
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
left
:
50%
;
right
:
50%
;
margin-left
:
-210px
;
background
:
#fff
;
}
.userLogin
{
...
...
@@ -1414,11 +1412,9 @@ body{
width
:
300px
;
height
:
120px
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
left
:
50%
;
right
:
50%
;
margin-left
:
-150px
;
z-index
:
1
;
background
:
#fffdfd
;
cursor
:
default
;
...
...
@@ -1798,11 +1794,9 @@ body{
height
:
200px
;
background
:
#fff
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
margin
:
auto
;
left
:
50%
;
top
:
50%
;
margin-left
:
-205px
;
}
.updateInputContent
{
padding
:
55px
35px
;
...
...
@@ -1827,9 +1821,7 @@ body{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
margin
:
0
auto
;
margin
:
auto
;
background
:
#fff
;
}
.createUserRole
{
...
...
etc/umd.template.html
查看文件 @
f576258
...
...
@@ -963,90 +963,6 @@
</div>
</div>
</div>
<!--创建用户2级-->
<div
id=
"createUserBox"
class=
"userSignBox createClassBox"
>
<div
id=
"createUser"
class=
"createClass createUser"
>
<div
class=
"createClassHandler"
>
<span
class=
"createClassHandlerTitle"
id=
"createUserTitle"
>
添加老师
</span>
<a
href=
"javascript: void(0)"
id=
"createUserA"
class=
"createClassA iconfont"
>

</a>
</div>
<div
class=
"step_page1"
>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
用户名:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserName"
name=
"createUserName"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
初始密码:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserPassWord"
name=
"createUserPassWord"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入主持人密码"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
真实姓名:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserRealName"
name=
"createUserRealName"
type=
"password"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂密码"
>
</div>
</div>
<div
class=
"form_item form_item2"
>
<label
class=
"step_page1Title"
>
角色:
</label>
<div
class=
"step_page1_widget"
>
<input
class=
"allowPublic"
type=
"radio"
name=
"createUserTeacher"
id=
"createUserTeacher"
value=
"1"
checked=
"checked"
>
<label
for=
"createUserTeacher"
class=
"publicInfo"
>
老师
</label>
<input
class=
"allowPublic"
type=
"radio"
name=
"createUserTeacher"
id=
"createUserTeaching"
value=
"0"
>
<label
for=
"createUserTeaching"
class=
"publicInfo"
>
兼课
</label>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
身份证号:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserIdentity"
name=
"createUserIdentity"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
邮箱地址:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserMail"
name=
"classThemeUserName"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
备注信息:
</label>
<div
class=
"step_page1_widget"
>
<textarea
id=
"createUserNote"
class=
"classDescribeArea"
></textarea>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
有效期至:
</label>
<div
id=
"createUserAbortTime"
class=
"createUserAbortTime"
></div>
</div>
</div>
<div
class=
"form_button"
>
<input
id=
"createUserConfirm"
type=
"button"
value=
"确定"
class=
"createClassBtn createClassConfirm btnHover"
>
<span
id=
"createUserCancel"
class=
"createClassBtn main_closeBtn"
>
取消
</span>
</div>
</div>
</div>
<!--个人中心-->
<div
id=
"myCenterBox"
class=
"myCenterBox"
>
<div
class=
"myCenterLeftBox"
>
...
...
@@ -1389,6 +1305,90 @@
</div>
</div>
</div>
<!--创建用户2级-->
<div
id=
"createUserBox"
class=
"userSignBox createClassBox"
>
<div
id=
"createUser"
class=
"createClass createUser"
>
<div
class=
"createClassHandler"
>
<span
class=
"createClassHandlerTitle"
id=
"createUserTitle"
>
添加老师
</span>
<a
href=
"javascript: void(0)"
id=
"createUserA"
class=
"createClassA iconfont"
>

</a>
</div>
<div
class=
"step_page1"
>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
用户名:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserName"
name=
"createUserName"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
初始密码:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserPassWord"
name=
"createUserPassWord"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入主持人密码"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
真实姓名:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserRealName"
name=
"createUserRealName"
type=
"password"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂密码"
>
</div>
</div>
<div
class=
"form_item form_item2"
>
<label
class=
"step_page1Title"
>
角色:
</label>
<div
class=
"step_page1_widget"
>
<input
class=
"allowPublic"
type=
"radio"
name=
"createUserTeacher"
id=
"createUserTeacher"
value=
"1"
checked=
"checked"
>
<label
for=
"createUserTeacher"
class=
"publicInfo"
>
老师
</label>
<input
class=
"allowPublic"
type=
"radio"
name=
"createUserTeacher"
id=
"createUserTeaching"
value=
"0"
>
<label
for=
"createUserTeaching"
class=
"publicInfo"
>
兼课
</label>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
身份证号:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserIdentity"
name=
"createUserIdentity"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
邮箱地址:
</label>
<div
class=
"step_page1_widget"
>
<input
id=
"createUserMail"
name=
"classThemeUserName"
type=
"text"
class=
"classThemeInfo classThemeInfo1"
placeholder=
"输入课堂主题"
value=
""
>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
备注信息:
</label>
<div
class=
"step_page1_widget"
>
<textarea
id=
"createUserNote"
class=
"classDescribeArea"
></textarea>
</div>
</div>
<div
class=
"form_item"
>
<label
class=
"step_page1Title"
>
有效期至:
</label>
<div
id=
"createUserAbortTime"
class=
"createUserAbortTime"
></div>
</div>
</div>
<div
class=
"form_button"
>
<input
id=
"createUserConfirm"
type=
"button"
value=
"确定"
class=
"createClassBtn createClassConfirm btnHover"
>
<span
id=
"createUserCancel"
class=
"createClassBtn main_closeBtn"
>
取消
</span>
</div>
</div>
</div>
</div>
<div
class=
"footerBg"
>
<div
class=
"footer"
>
...
...
src/ape/AdministratorApe.js
查看文件 @
f576258
...
...
@@ -14,10 +14,10 @@ const adminListTit = `<table width="100%" align="center" cellpadding="0" cellspa
<
th
width
=
"8%"
class
=
"tr_center"
>
课堂主题
<
/th
>
<
th
width
=
"
9
%"
class
=
"tr_center"
>
<
th
width
=
"
8
%"
class
=
"tr_center"
>
课堂号
<
/th
>
<
th
width
=
"
8
%"
class
=
"tr_center"
>
<
th
width
=
"
7
%"
class
=
"tr_center"
>
老师
<
/th
>
<
th
width
=
"6%"
class
=
"tr_center"
>
...
...
@@ -36,13 +36,13 @@ const adminListTit = `<table width="100%" align="center" cellpadding="0" cellspa
`
;
//管理首页
const
adminList
=
`
<
tr
align
=
"center"
bgcolor
=
"#FFFFFF"
height
=
"44"
bordercolor
=
"#e6e6e6"
>
<
td
width
=
"8%"
class
=
"tr_main tr_mainLeft"
>
{
_meetingName
}
<
/td
>
<
td
width
=
"8%"
class
=
"tr_main"
>
{
_esenglish
}
<
/td
>
<
td
width
=
"8%"
class
=
"tr_main"
>
{
_userName
}
<
/td
>
<
td
width
=
"7%"
class
=
"tr_main tr_mainLeft"
>
{
_meetingName
}
<
/td
>
<
td
width
=
"7%"
class
=
"tr_main"
>
{
_esenglish
}
<
/td
>
<
td
width
=
"7%"
class
=
"tr_main"
>
{
_userName
}
<
/td
>
<
td
width
=
"6%"
class
=
"tr_main"
>
{
_stateInfo
}
<
/td
>
<
td
width
=
"18%"
class
=
"tr_main"
>
{
_time
}
<
/td
>
<
td
width
=
"4%"
class
=
"tr_main"
>
{
_onlineLen
}
<
/td
>
<
td
width
=
"20%"
class
=
"tr_main tr_mainRight"
align
=
"center"
>
<
td
width
=
"6%"
class
=
"tr_main"
>
{
_onlineLen
}
<
/td
>
<
td
width
=
"18%"
class
=
"tr_main tr_mainRight"
align
=
"center"
>
<
a
id
=
"{_DocInd}"
class
=
"classHandlePort"
href
=
"###"
>
文档
<
/a
>
<
a
id
=
"{_mediaInd}"
class
=
"classHandlePort"
href
=
"###"
>
多媒体
<
/a
>
<
a
id
=
"{_musicInd}"
class
=
"classHandlePort"
href
=
"###"
>
伴音
<
/a
>
...
...
src/ape/CreateClassApe.js
查看文件 @
f576258
...
...
@@ -51,12 +51,10 @@ class CreateClassApe extends Ape {
}
isLocalStorage
(){
let
newDate
=
new
Date
();
let
ysar
=
newDate
.
getFullYear
();
let
month
=
newDate
.
getMonth
()
+
1
;
//月
let
date
=
newDate
.
getDate
();
//日
//设置当前时间 给输入框默认值
this
.
_setNewTime
();
//设置弹框位置
this
.
_setMarginTop
();
}
_showPresentTime
(){
let
newDate
=
new
Date
();
...
...
@@ -338,6 +336,33 @@ class CreateClassApe extends Ape {
$
(
'#createUserAccountBox'
).
hide
();
$
(
'#createUserBox'
).
show
();
}
//设置当前时间 给输入框默认值
_setNewTime
(){
let
newDate
=
new
Date
();
let
ysar
=
newDate
.
getFullYear
();
let
month
=
newDate
.
getMonth
()
+
1
;
//月
let
date
=
newDate
.
getDate
();
//日
month
<
10
?
'0'
+
month
:
month
;
date
<
10
?
'0'
+
date
:
date
;
let
time
=
ysar
+
'-'
+
month
+
'-'
+
date
;
$
(
'#liveInfoCenterLiveStart'
).
html
(
time
);
$
(
'#liveInfoCenterLiveEnd'
).
html
(
time
);
$
(
'#createUserAbortTime'
).
html
(
time
);
}
//设置弹框位置
_setMarginTop
(){
this
.
_setMarginTopHandler
(
$
(
'#createUserAccount'
));
//创建用户选择身份
this
.
_setMarginTopHandler
(
$
(
'#userLogin'
));
//登录
this
.
_setMarginTopHandler
(
$
(
'#usersign'
));
//注册
this
.
_setMarginTopHandler
(
$
(
'#warnHintBox'
));
//错误提示
this
.
_setMarginTopHandler
(
$
(
'#removeHandler'
));
//删除
this
.
_setMarginTopHandler
(
$
(
'#updateInputBox'
));
//修改信息输入框
}
//设置弹框位置 方法
_setMarginTopHandler
(
_data
){
let
clienth
=
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
_data
.
css
(
'margin-top'
,(
clienth
-
parseInt
(
_data
.
height
()))
/
2
)
}
_dateUI
(){
//执行一个laydate实例
dateUI
.
render
({
...
...
src/main.js
查看文件 @
f576258
...
...
@@ -38,7 +38,7 @@ let _subscribeApe;
class
Main
{
constructor
()
{
this
.
clientVersion
=
"v1.6.
8
.20170904"
;
this
.
clientVersion
=
"v1.6.
9
.20170904"
;
loger
.
warn
(
"clientVersion:"
+
this
.
clientVersion
);
let
locationProtocol
=
location
.
protocol
;
...
...
请
注册
或
登录
后发表评论