提交 482c6a50 编写于 作者: G gongfuxiang

运费插件优化

上级 766803bc
......@@ -57,6 +57,7 @@
<th>首费(元)</th>
<th>续件数(件)</th>
<th>续费(元)</th>
<th>满(免运费)</th>
</tr>
</thead>
{{else /}}
......@@ -67,6 +68,7 @@
<th>首费(元)</th>
<th>续件数(kg)</th>
<th>续费(元)</th>
<th>满(免运费)</th>
</tr>
</thead>
{{/if}}
......@@ -84,6 +86,7 @@
<td>{{$v.first_price}}</td>
<td>{{$v.continue}}</td>
<td>{{$v.continue_price}}</td>
<td>{{$v.free_shipping_price}}</td>
</tr>
{{/foreach}}
</tbody>
......
......@@ -41,11 +41,12 @@
{{if empty($data['data'])}}
<thead>
<tr>
<th>运送到</th>
<th>首件数(件)</th>
<th>首费(元)</th>
<th>续件数(件)</th>
<th>续费(元)</th>
<th>运送到<span class="am-form-group-label-tips-must">*</span></th>
<th>首件数(件)<span class="am-form-group-label-tips-must">*</span></th>
<th>首费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>续件数(件)<span class="am-form-group-label-tips-must">*</span></th>
<th>续费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>满(免运费)</th>
<th>操作</th>
</tr>
</thead>
......@@ -68,6 +69,9 @@
<td>
<input type="number" class="am-radius continue-price-name" name="data[0][continue_price]" min="0.00" max="999.99" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" required />
</td>
<td>
<input type="number" class="am-radius continue-free-shipping-price-name" name="data[0][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" />
</td>
<td><!--operation--></td>
</tr>
</tbody>
......@@ -75,11 +79,12 @@
{{if isset($data['valuation']) and $data['valuation'] eq 0}}
<thead>
<tr>
<th>运送到</th>
<th>首件数(件)</th>
<th>首费(元)</th>
<th>续件数(件)</th>
<th>续费(元)</th>
<th>运送到<span class="am-form-group-label-tips-must">*</span></th>
<th>首件数(件)<span class="am-form-group-label-tips-must">*</span></th>
<th>首费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>续件数(件)<span class="am-form-group-label-tips-must">*</span></th>
<th>续费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>满(免运费)</th>
<th>操作</th>
</tr>
</thead>
......@@ -110,6 +115,9 @@
<td>
<input type="number" class="am-radius continue-price-name" name="data[{{$k}}][continue_price]" min="0.00" max="999.99" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" value="{{$v.continue_price}}" required />
</td>
<td>
<input type="number" class="am-radius continue-free-shipping-price-name" name="data[{{$k}}][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" value="{{if isset($v['free_shipping_price']) and $v['free_shipping_price'] gt 0}}{{$v.free_shipping_price}}{{/if}}" />
</td>
{{if $v['region'] eq 'default'}}
<td><!--operation--></td>
{{else /}}
......@@ -123,11 +131,12 @@
{{else /}}
<thead>
<tr>
<th>运送到</th>
<th>首件数(kg)</th>
<th>首费(元)</th>
<th>续件数(kg)</th>
<th>续费(元)</th>
<th>运送到<span class="am-form-group-label-tips-must">*</span></th>
<th>首件数(kg)<span class="am-form-group-label-tips-must">*</span></th>
<th>首费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>续件数(kg)<span class="am-form-group-label-tips-must">*</span></th>
<th>续费(元)<span class="am-form-group-label-tips-must">*</span></th>
<th>满(免运费)</th>
<th>操作</th>
</tr>
</thead>
......@@ -158,6 +167,9 @@
<td>
<input type="number" class="am-radius continue-price-name" name="data[{{$k}}][continue_price]" min="0.00" max="999.99" step="0.01" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" value="{{$v.continue_price}}" required />
</td>
<td>
<input type="number" class="am-radius continue-free-shipping-price-name" name="data[{{$k}}][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" value="{{if isset($v['free_shipping_price']) and $v['free_shipping_price'] gt 0}}{{$v.free_shipping_price}}{{/if}}" />
</td>
{{if $v['region'] eq 'default'}}
<td><!--operation--></td>
{{else /}}
......
......@@ -37,6 +37,10 @@
position: absolute;
margin-left: -1000000px;
}
.freightfee-rules .am-form-group-label-tips-must {
vertical-align: middle;
margin-left: 5px !important;
}
/**
* 弹窗
......
......@@ -10,7 +10,7 @@
#ai-topsearch {
background: #03A9F4 none repeat scroll 0% 0%;
}
.goods-category-title, .navigation-user, .navigation-user .nav-user {
.goods-category-title, .navigation-user, .navigation-user .nav-user, .shop-navigation .am-btn {
background: #03A9F4;
}
.navigation-user * {
......@@ -19,8 +19,8 @@
.am-footer-default {
border-top: 2px solid #03A9F4;
}
.am-slider-a1 .am-control-nav li a.am-active {
background-color: #03A9F4;
.shop-navigation .am-btn, .shop-navigation .navigation-search input {
border-color: #03A9F4;
}
.shop-navigation .am-topbar-nav > li > a:hover, a:hover, a:focus {
color: #03A9F4;
......@@ -35,6 +35,9 @@
.pets-detail {
margin-top: 10px;
}
.pets-detail .am-slider-a1 .am-control-nav li a.am-active {
background-color: #03A9F4;
}
.provide-submit, .base-share {
margin-top: 20px;
}
......
......@@ -23,11 +23,12 @@ $(function()
$this.parents('.am-form-group').attr('data-value', valuation);
var thead = '<tr>';
thead += '<th>运送到</th>';
thead += '<th>首件数('+unit+')</th>';
thead += '<th>首费(元)</th>';
thead += '<th>续件数('+unit+')</th>';
thead += '<th>续费(元)</th>';
thead += '<th>运送到<span class="am-form-group-label-tips-must">*</span></th>';
thead += '<th>首件数('+unit+')<span class="am-form-group-label-tips-must">*</span></th>';
thead += '<th>首费(元)<span class="am-form-group-label-tips-must">*</span></th>';
thead += '<th>续件数('+unit+')<span class="am-form-group-label-tips-must">*</span></th>';
thead += '<th>续费(元)<span class="am-form-group-label-tips-must">*</span></th>';
thead += '<th>满(免运费)</th>';
thead += '<th>操作</th>';
thead += '</tr>';
......@@ -53,6 +54,9 @@ $(function()
html += '<td>';
html += '<input type="number" class="am-radius continue-price-name" name="data[0][continue_price]" min="0.00" max="999.99" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" required />';
html += '</td>';
html += '<td>';
html += '<input type="number" class="am-radius continue-free-shipping-price-name" name="data[0][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" />';
html += '</td>';
html += '<td><!--operation--></td>';
html += '</tr>';
break;
......@@ -76,6 +80,9 @@ $(function()
html += '<td>';
html += '<input type="number" class="am-radius continue-price-name" name="data[0][continue_price]" min="0.00" max="999.99" step="0.01" step="0.01" data-validation-message="应输入 0.00~999.99 的数字,且不能大于首费,小数保留两位" required />';
html += '</td>';
html += '<td>';
html += '<input type="number" class="am-radius continue-free-shipping-price-name" name="data[0][free_shipping_price]" min="0.00" step="0.01" data-validation-message="满免运费,小数保留两位" />';
html += '</td>';
html += '<td><!--operation--></td>';
html += '</tr>';
break;
......@@ -131,6 +138,7 @@ $(function()
$('.freightfee-rules table.am-table').find('tbody tr:last .first-price-name').attr('name', 'data['+index+'][first_price]');
$('.freightfee-rules table.am-table').find('tbody tr:last .continue-name').attr('name', 'data['+index+'][continue]');
$('.freightfee-rules table.am-table').find('tbody tr:last .continue-price-name').attr('name', 'data['+index+'][continue_price]');
$('.freightfee-rules table.am-table').find('tbody tr:last .continue-free-shipping-price-name').attr('name', 'data['+index+'][free_shipping_price]');
});
// 行移除
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册