Commit 78c8d109 authored by 吴春's avatar 吴春

前台座位图

parent 7bfb4e14
<!DOCTYPE html>
@using EheMall.Models.QequestModel;
@model List<CustomerBuySeat>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
......@@ -14,16 +16,7 @@
</head>
<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">
<div class="chooseLogo fl">
......@@ -79,7 +72,19 @@
</div>
</div>
<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>
......@@ -88,33 +93,33 @@
@*<script src="../js/jquery.min.js"></script>*@
<script type="text/javascript">
$(function () {
var row = 15, col = 30;
var dataList = [];
for (var i = 0; i < row; i++) {
var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 1, ColumnArray: [] };
for (var j = 0; j < col; j++) {
var dataColumn = {
col: j,
SeatClassStr: 'seat',
AreaSeat: '',
changedCol: '',
columnIndex: j + 1,
rowIndex: i + 1,
};
dataRow.ColumnArray.push(dataColumn);
}
dataList.push(dataRow);
}
var temp = '';
for (var i = 0; i < dataList.length; i++) {
temp += '<div class="rowList">';
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}"
data-row="${dataList[i].ColumnArray[j].rowIndex}"></span>`
}
temp += '</div>'
}
$(".seatContent").html(temp);
//var row = 15, col = 30;
//var dataList = [];
//for (var i = 0; i < row; i++) {
// var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 1, ColumnArray: [] };
// for (var j = 0; j < col; j++) {
// var dataColumn = {
// col: j,
// SeatClassStr: 'seat',
// AreaSeat: '',
// changedCol: '',
// columnIndex: j + 1,
// rowIndex: i + 1,
// };
// dataRow.ColumnArray.push(dataColumn);
// }
// dataList.push(dataRow);
//}
//var temp = '';
//for (var i = 0; i < dataList.length; i++) {
// temp += '<div class="rowList">';
// 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}"
// data-row="${dataList[i].ColumnArray[j].rowIndex}"></span>`
// }
// temp += '</div>'
//}
//$(".seatContent").html(temp);
//点击选座
$(".seat").click(function () {
......
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