Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theater
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴春
Theater
Commits
c444b1a7
Commit
c444b1a7
authored
Mar 04, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
511efba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
TheaterSeat.cshtml
...ll.Web/Areas/Admin/Views/TheaterManage/TheaterSeat.cshtml
+18
-6
No files found.
EheMall.Web/Areas/Admin/Views/TheaterManage/TheaterSeat.cshtml
View file @
c444b1a7
...
...
@@ -22,7 +22,7 @@
display
:
inline-block
;
margin
:
0px
auto
;
padding-top
:
8px
;
min-height
:
5
00px
;
min-height
:
3
00px
;
border
:
1px
solid
#e5e5e5
;
position
:
relative
;
}
...
...
@@ -42,7 +42,7 @@
.row_input
{
width
:
40px
;
height
:
27px
;
margin-bottom
:
6px
;
margin-bottom
:
6px
!important
;
}
.seats-block
.row
{
...
...
@@ -263,7 +263,6 @@
var
self
=
this
;
function
MyViewModel
()
{
alert
();
//定义数组对象
// self.SeatData = ko.observableArray([]);
self
.
InitSeat
=
function
()
{
...
...
@@ -389,7 +388,6 @@
self
.
reSeat
=
function
(
dataRowIndex
)
{
var
dataList
=
SeatData
();
alert
();
var
col_input
=
$
(
"#col_input"
).
val
();
var
newObj
=
self
.
clone
(
SeatData
()[
dataRowIndex
]);
if
(
newObj
.
noLenth
>
0
)
...
...
@@ -578,7 +576,6 @@
SeatData
()[
rowIndex
].
noLenth
=
_thisLen
;
SeatData
()[
rowIndex
].
myArr
=
[];
if
(
_thisLen
==
0
)
{
var
louIndex
=
[];
var
tangIndex
=
[];
...
...
@@ -634,6 +631,14 @@
console
.
log
((
i
+
1
-
lourow
-
TangCount
),
"排"
);
}
}
$
(
".row_input"
).
each
(
function
(
x
)
{
//console.log($(this),'thsithisthis');
console
.
log
(
$
(
this
).
val
(),
'vvvvvvvv'
)
if
(
$
(
this
).
val
()
==
''
)
{
$
(
this
).
addClass
(
'noSeat'
);
}
})
SeatData
.
replace
(
SeatData
()[
i
],
newObj
);
}
...
...
@@ -694,11 +699,14 @@
event
.
stopPropagation
();
// 阻止事件冒泡
}
});
//$(".seats-container").click(function () {
// istuo = true;
//})
// 鼠标移动时计算遮罩的位置,宽 高
$
(
".seats-container"
).
mousemove
(
function
(
ev
)
{
//if (!flag) return;//只有开启了拖拽,才进行mouseover操作
var
_offTopPage
=
$
(
document
).
scrollTop
();
var
divLeft
=
$
(
".seats-container"
).
offset
().
left
+
$
(
".seats-container"
).
width
();
if
(
ev
.
buttons
==
1
&&
isSetSeat
==
true
)
{
if
(
ev
.
pageX
<
oldLeft
)
{
//向左拖
moveSelected
.
style
.
left
=
ev
.
pageX
+
'px'
;
...
...
@@ -714,9 +722,13 @@
}
ev
.
preventDefault
();
// 阻止默认行为
ev
.
stopPropagation
();
// 阻止事件冒泡
$
(
".seat_menu"
).
css
({
"display"
:
'none'
});
}
});
//$(".seats-container").mouseleave(function (ev) {
// clearDragData();
//});
$
(
".seats-container"
).
on
(
'contextmenu'
,
function
(
ev
)
{
//-------------禁用系统的右键功能-----------
$
(
document
).
bind
(
'contextmenu'
,
function
(
ev
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment