Commit f8839c1c authored by 吴春's avatar 吴春

提交

parents a0270c62 07e529b2
......@@ -22,7 +22,7 @@
display: inline-block;
margin: 0px auto;
padding-top: 8px;
min-height: 500px;
min-height: 300px;
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() {
//定义数组对象
// self.SeatData = ko.observableArray([]);
self.InitSeat = function () {
......@@ -577,7 +576,6 @@
SeatData()[rowIndex].noLenth = _thisLen;
SeatData()[rowIndex].myArr = [];
if (_thisLen == 0) {
var louIndex = [];
var tangIndex =[];
......@@ -633,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);
}
......@@ -693,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';
......@@ -713,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) {
......@@ -769,6 +782,7 @@
if ((leftFlag || rightFlag) && (topFlag || bottomFlag)) {
selectedList.push(blockList[i]);
$(blockList[i]).removeClass('seat');
reSeat();
if ($(blockList[i]).hasClass('seled')) {
$(blockList[i]).removeClass('seled');
$(blockList[i]).addClass('seat');
......@@ -779,20 +793,6 @@
$(blockList[i]).removeClass('twoArea');
$(blockList[i]).removeClass('threeArea');
$(blockList[i]).removeClass('specialArea');
if (($(blockList[i]).hasClass('seled') && $(blockList[i]).hasClass('noSeat')) || $(blockList[i]).hasClass('seat') && $(blockList[i]).hasClass('noSeat')) {
$(blockList[i]).removeClass('noSeat');
var rowId = parseInt($(blockList[i]).attr('data_row_id')) - 1;
var newObj = self.clone(SeatData()[rowId]);
var iiii = parseInt(parseInt($(blockList[i]).attr('data_column_id')));
newObj.ColumnArray[iiii].SeatClassStr = "seled";
newObj.noLenth = 1;
console.log(newObj);
SeatData.replace(SeatData()[rowId], newObj);
reSeat(rowId);
}
}
}
}
......
......@@ -9,7 +9,7 @@
<div class="w1240">
<div class="sideright fl white">
<div class="fl white" style="padding:30px;">
<div class="orderbox">
......@@ -27,7 +27,7 @@
</p>
@if (!string.IsNullOrWhiteSpace(Model.sIconUrl))
{
<p style='text-align:center'><img src="@Model.sIconUrl" /></p>
<p style='text-align:center'><img style="width:100%;" src="@Model.sIconUrl" /></p>
}
</div>
</div>
......
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