Skip to content

Commit

Permalink
前端bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LimitW committed Mar 22, 2015
1 parent e6b5fce commit 5ccc239
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Print/Home/View/File/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ <h4 class="text-info">该店价格信息</h4>
pid : pid
}, function(data) {
if (data.status) {
$('#p_c_s').html(data.info.p_c_s+'/张');
$('#p_c_d').html(data.info.p_c_d+'/张');
$('#p_s').html(data.info.p_s+'/张');
$('#p_d').html(data.info.p_d+'/张');
$('#p_c_s').html(data.info.p_c_s+'/张');
$('#p_c_d').html(data.info.p_c_d+'/张');
$('#p_s').html(data.info.p_s+'/张');
$('#p_d').html(data.info.p_d+'/张');
} else {
$('#p_c_s').html("未设置");
$('#p_c_d').html("未设置");
Expand Down
23 changes: 11 additions & 12 deletions Print/Printer/View/Printer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h4><strong>信息修改</strong></h4>
</div>
<div class="input-group">
<label class="input-group-addon" for="email">邮箱</label>
<input id="email" class="form-control" value="{$data['email']}" name="email" type="email" required>
<input id="email" class="form-control" value="{$data['email']}" name="email" type="email">
</div>
<div class="input-group">
<label class="input-group-addon" for="address">地址</label>
Expand All @@ -64,23 +64,27 @@ <h4><strong>信息修改</strong></h4>

<div class="input-group">
<label class="input-group-addon" for="open_time">营业时间</label>
<input id="open_time" class="form-control" value="{$data['open_time']}" placeholder="如:早七点到晚九点,15字以内" name="open_time" type="text" required>
<input id="open_time" class="form-control" value="{$data['open_time']}" placeholder="如:8:00-22:00" name="open_time" type="text" required>
</div>
<div class="input-group">
<label class="input-group-addon" for="p_s">单面价格(黑白)</label>
<input id="p_s" type="number" min="0" class="form-control" value="{$price['p_s']}" placeholder="分/张" name="p_s" required>
<input id="p_s" type="number" min="0" class="form-control" value="{$price['p_s']}" name="p_s" required>
<span class="input-group-addon">元/张</span>
</div>
<div class="input-group">
<label class="input-group-addon" for="p_d">双面价格(黑白)</label>
<input id="p_d" type="number" min="0" class="form-control" value="{$price['p_d']}" placeholder="分/张" name="p_d" required>
<input id="p_d" type="number" min="0" class="form-control" value="{$price['p_d']}" name="p_d" required>
<span class="input-group-addon">元/张</span>
</div>
<div class="input-group">
<label class="input-group-addon" for="p_c_s">彩印价格(单面)</label>
<input id="p_c_s" type="number" min="0" class="form-control" value="{$price['p_c_s']}" placeholder="角/张" name="p_c_s" required>
<input id="p_c_s" type="number" min="0" class="form-control" value="{$price['p_c_s']}" name="p_c_s" required>
<span class="input-group-addon">元/张</span>
</div>
<div class="input-group">
<label class="input-group-addon" for="p_c_d">彩印价格(双面)</label>
<input id="p_c_d" type="number" min="0" class="form-control" value="{$price['p_c_d']}" placeholder="角/张" name="p_c_d" required>
<span class="input-group-addon">元/张</span>
</div>
<br/>
<div class="form-group">
Expand All @@ -89,7 +93,7 @@ <h4><strong>信息修改</strong></h4>
</div>
<div class="form-group">
<label for="profile">打印店简介</label>
<textarea required="required" id="profile" class="form-control" rows="4" placeholder="打印店自我介绍,50字以内" name="profile">{$data['profile']}</textarea>
<textarea id="profile" class="form-control" rows="4" placeholder="打印店自我介绍,如详细地址、业务范围等,100字以内" name="profile">{$data['profile']}</textarea>
</div>
<div class="input-group text-center">
<button type="submit" class="btn btn-success" id="changeInfoButton">确定</button>
Expand All @@ -105,12 +109,7 @@ <h4><strong>信息修改</strong></h4>
<BLOCK name='end'>
<script src="__Public__/js/md5.min.js" ></script>
<script>
if({$data['sch_id']} === 1){
$('.School').append('南开大学');
}
else{
$('.School').append('天津大学');
}

$('#changeInfoButton').attr('disabled',true);


Expand Down

0 comments on commit 5ccc239

Please sign in to comment.