切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
4409d179f07bca5e3f49f717c562873bf5a0c6b9
1 个父辈
af2b13d4
1 个管道 的构建
通过
耗费 2 秒
1
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
105 行增加
和
16 行删除
public/themes/simpleboot3/portal/school/school.html
public/themes/simpleboot3/portal/school/school.html
查看文件 @
4409d17
...
...
@@ -11,8 +11,64 @@
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/reset.css"
/>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/log.css"
/>
</head>
<style>
.delete_school
{
font-size
:
0.32rem
;
color
:
#333
;
text-align
:
center
;
}
.delete_btn
{
display
:
flex
;
display
:
-webkit-flex
;
justify-content
:
space-around
;
align-items
:
center
;
}
.tx_maskcancel
{
width
:
100%
;
height
:
0.8rem
;
background
:
#f2f2f2
;
border-radius
:
0.08rem
;
text-align
:
center
;
line-height
:
0.8rem
;
color
:
#333
;
font-size
:
0.32rem
;
margin-top
:
0.4rem
;
margin-right
:
0.5rem
;
}
.tx_maskYes
{
width
:
100%
;
height
:
0.8rem
;
background
:
linear-gradient
(
338deg
,
rgba
(
255
,
78
,
0
,
1
)
0%
,
rgba
(
255
,
157
,
45
,
1
)
100%
);
border-radius
:
0.08rem
;
text-align
:
center
;
line-height
:
0.8rem
;
color
:
white
;
font-size
:
0.32rem
;
margin-top
:
0.4rem
;
margin-left
:
0.5rem
;
}
</style>
<body>
<!-- 删除弹窗 -->
<div
class=
"tx_mask"
onclick=
"$(this).hide()"
>
<div
class=
"tx_maskCon"
onclick=
"zZFun(this)"
>
<div
class=
"tx_maskCon2"
style=
"border-radius: 0.1rem;"
>
<div
class=
"delete_school"
>
是否确定删除?
</div>
<!-- 确定 -->
<div
class=
"delete_btn"
>
<div
class=
"tx_maskcancel"
>
取消
</div>
<div
class=
"tx_maskYes"
>
确定
</div>
</div>
</div>
</div>
</div>
<div
class=
"log_top_co"
>
<!-- 顶部 -->
<div
class=
" order_top log_top_co"
>
...
...
@@ -39,7 +95,7 @@
<div
class=
"log_seven_right_one"
>
<img
src=
"__TMPL__/public/assets/images/87.png"
alt=
""
onclick=
"school_edit({$val.id})"
/>
</div>
<div
class=
"log_seven_right_one log_seven_right_two"
onclick=
"school_del({$val.id})"
>
<div
class=
"log_seven_right_one log_seven_right_two"
data-id=
"{$val.id}"
>
<img
src=
"__TMPL__/public/assets/images/86.png"
alt=
""
/>
</div>
</div>
...
...
@@ -61,20 +117,57 @@
<script
src=
"__TMPL__/public/assets/js/mui.picker.min.js"
></script>
<script
src=
"__TMPL__/public/assets/js/city.data-3.js"
></script>
<script>
/**
*点击删除学校
*/
function
school_del
(
id
){
ccc
=
window
.
confirm
(
"是否删除这条学校信息?"
);
if
(
ccc
){
$
.
post
(
"{:url('School/school_del')}"
,{
id
:
id
},
function
(
data
){
if
(
data
){
$
(
'.shanchu'
+
id
).
remove
();
}
let
index
=
''
;
var
id
=
''
;
//删除管理地址
$
(
'.log_seven_right_two'
).
each
(
function
()
{
$
(
this
).
click
(
function
()
{
id
=
$
(
this
).
attr
(
'data-id'
);
index
=
$
(
this
).
parents
(
".log_seven_list"
).
index
();
console
.
log
(
index
)
$
(
".tx_mask"
).
css
({
display
:
"block"
});
})
})
$
(
".tx_maskYes"
).
click
(
function
()
{
console
.
log
(
index
)
var
len
=
$
(
".log_seven_list"
);
console
.
log
(
len
)
for
(
var
i
=
0
;
i
<
len
.
length
;
i
++
)
{
if
(
i
==
index
)
{
$
(
len
[
i
]).
remove
();
$
.
post
(
"{:url('School/school_del')}"
,{
id
:
id
},
function
(
data
){
if
(
data
){
$
(
'.shanchu'
+
id
).
remove
();
}
});
};
$
(
".tx_mask"
).
css
({
display
:
"none"
});
}
})
$
(
".tx_maskcancel"
).
click
(
function
()
{
$
(
".tx_mask"
).
css
({
display
:
"none"
});
})
function
zZFun
(
e
)
{
window
.
event
?
(
window
.
event
.
cancelBubble
=
true
)
:
e
.
stopPropagation
();
}
/**
*点击删除学校
*/
/**
*点击编辑学习
*/
...
...
@@ -84,11 +177,7 @@
</script>
<script>
//删除管理地址
$
(
'.log_seven_right_two'
).
each
(
function
(){
$
(
this
).
click
(
function
(){
$
(
this
).
parents
(
'.log_seven_list'
).
remove
();
})
})
</script>
</body>
...
...
请
注册
或
登录
后发表评论