操作提示;起售时间修正。

This commit is contained in:
iFish 2014-09-10 11:03:37 +08:00
parent 41ab3cadc0
commit 76e9d8ad97
3 changed files with 21 additions and 6 deletions

View File

@ -168,6 +168,16 @@
margin-left: 20px;
}
.result .train-autotip {
line-height: 50px;
color: #bbb;
text-align: center;
font-weight: bold;
}
.result .train-autotip td{
border-top: 1px solid #cccccc;
}
/*购票建议*/
#suggestion {
display: none;

View File

@ -48,8 +48,7 @@
<i class="icon icon-tips"><span class="order-num">1</span></i>
<p>系统通知</p>
</a>
<section class="search-tips-container">
</section>
<section class="search-tips-container"></section>
</li>
</ul>
</nav>
@ -429,7 +428,7 @@
<i class="fa fa-times"></i>
关闭
</a>
</header>
<script type="text/x-dot-template" id="train_suggestion">
<table>
@ -557,6 +556,12 @@
</button>
</td>
</tr>
{{??!it.inAutoRefresh}}
<tr class="train-autotip">
<td colspan="4">
点击“显示更多选项”并设置您需要的席别和车次以开启刷票模式。
</td>
</tr>
{{?}}
{{~it.available:t:index}}
<tr class="{{=t.selected?'selected':''}}">
@ -843,7 +848,7 @@
</span>
<select class="passenger-seat normal">
{{~it.seats:s:i}}
<option value="{{=s.code}}" {{=s.selected?"selected='selected'":""}}>{{=s.name}}{{?s.price>0.01}}(¥{{=s.price/10}}元){{?}}</option>
<option value="{{=s.code}}" {{=s.selected?"selected ='selected' ":" "}}>{{=s.name}}{{?s.price>0.01}}(¥{{=s.price/10}}元){{?}}</option>
{{~}}
</select>
<select class="passenger-type normal">

View File

@ -53,8 +53,8 @@
date = exports.toDate(date);
var today = exports.addDays(new Date(), 0);
var offset = Math.round((date - today) / 1000 / 60);
var hour = Math.round(offset / 60);
var offset = Math.floor((date - today) / 1000 / 60);
var hour = Math.floor(offset / 60);
var minute = offset % 60;
if (hour < 24) return "今天" + hour + "点" + (minute ? minute + "分" : "");