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
78c8d109
Commit
78c8d109
authored
Jan 31, 2019
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前台座位图
parent
7bfb4e14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
38 deletions
+43
-38
SaleTicket.cshtml
EheMall.Web/Areas/Admin/Views/TheaterOrder/SaleTicket.cshtml
+43
-38
No files found.
EheMall.Web/Areas/Admin/Views/TheaterOrder/SaleTicket.cshtml
View file @
78c8d109
<!DOCTYPE html>
@using EheMall.Models.QequestModel;
@model List
<CustomerBuySeat>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
...
@@ -14,16 +16,7 @@
...
@@ -14,16 +16,7 @@
</head>
</head>
<body>
<body>
<!--顶部-->
<!--顶部-->
@*
<div
class=
"top"
>
<div
class=
"w1240"
>
<div
class=
"fl"
>
<a
href=
"Help.html"
>
帮助中心
</a>
|
<a
href=
"Index.html"
>
返回芙蓉国粹
</a>
</div>
<div
class=
"fr"
>
<a
href=
"MyOrders.html"
>
我的订单
</a>
|
<a
href=
"MyMessage.html"
rel=
"nofollow"
>
我的消息
</a>
</div>
</div>
</div>
*@
<!--头部-->
<!--头部-->
<header
class=
"w1350 clearfix"
>
<header
class=
"w1350 clearfix"
>
<div
class=
"chooseLogo fl"
>
<div
class=
"chooseLogo fl"
>
...
@@ -79,7 +72,19 @@
...
@@ -79,7 +72,19 @@
</div>
</div>
</div>
</div>
<div
class=
"seatContent"
>
<div
class=
"seatContent"
>
@if (Model != null)
{
foreach (var item in Model)
{
<div
class=
"row"
>
@foreach (var seatInfoList in item.SeatInfoList)
{
<span
class=
"@seatInfoList.SeatClassStr"
data-price=
"@seatInfoList.seatPrice"
data-col=
"@seatInfoList.columnIndex"
data-row=
"@seatInfoList.rowIndex"
></span>
}
</div>
}
}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -88,33 +93,33 @@
...
@@ -88,33 +93,33 @@
@*
<script
src=
"../js/jquery.min.js"
></script>
*@
@*
<script
src=
"../js/jquery.min.js"
></script>
*@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
row
=
15
,
col
=
30
;
//
var row = 15, col = 30;
var
dataList
=
[];
//
var dataList = [];
for
(
var
i
=
0
;
i
<
row
;
i
++
)
{
//
for (var i = 0; i
<
row
;
i
++
)
{
var
dataRow
=
{
rowIndex
:
(
i
+
1
+
'排'
),
rowOriIndex
:
i
+
1
,
houseType
:
1
,
ColumnArray
:
[]
};
//
var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 1, ColumnArray: [] };
for
(
var
j
=
0
;
j
<
col
;
j
++
)
{
//
for (var j = 0; j
<
col
;
j
++
)
{
var
dataColumn
=
{
//
var dataColumn = {
col
:
j
,
//
col: j,
SeatClassStr
:
'seat'
,
//
SeatClassStr: 'seat',
AreaSeat
:
''
,
//
AreaSeat: '',
changedCol
:
''
,
//
changedCol: '',
columnIndex
:
j
+
1
,
//
columnIndex: j + 1,
rowIndex
:
i
+
1
,
//
rowIndex: i + 1,
};
//
};
dataRow
.
ColumnArray
.
push
(
dataColumn
);
//
dataRow.ColumnArray.push(dataColumn);
}
//
}
dataList
.
push
(
dataRow
);
//
dataList.push(dataRow);
}
//
}
var
temp
=
''
;
//
var temp = '';
for
(
var
i
=
0
;
i
<
dataList
.
length
;
i
++
)
{
//
for (var i = 0; i
<
dataList
.
length
;
i
++
)
{
temp
+=
'<div class="rowList">'
;
//
temp += '
<
div
class
=
"rowList"
>
';
for
(
var
j
=
0
;
j
<
dataList
[
i
].
ColumnArray
.
length
;
j
++
)
{
//
for (var j = 0; j < dataList[i].ColumnArray.length; j++) {
temp
+=
`<span class="
${
dataList
[
i
].
ColumnArray
[
j
].
SeatClassStr
}
" data-col="
${
dataList
[
i
].
ColumnArray
[
j
].
columnIndex
}
"
//
temp += `<span class="${dataList[i].ColumnArray[j].SeatClassStr}" data-col="${dataList[i].ColumnArray[j].columnIndex}"
data-row="
${
dataList
[
i
].
ColumnArray
[
j
].
rowIndex
}
"></span>`
//
data-row="${dataList[i].ColumnArray[j].rowIndex}"></span>`
}
//
}
temp
+=
'</div>'
//
temp += '
<
/div>
'
}
//
}
$
(
".seatContent"
).
html
(
temp
);
//
$(".seatContent").html(temp);
//点击选座
//点击选座
$
(
".seat"
).
click
(
function
()
{
$
(
".seat"
).
click
(
function
()
{
...
...
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