校验方法名称更改
parent
2df9e6fc91
commit
368b6c211c
|
|
@ -41,6 +41,10 @@
|
|||
{{/foreach}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_spec_add_max_number.name}}<span class="fs-12 fw-100 cr-999">({{$data.common_spec_add_max_number.describe}})</span></label>
|
||||
<input type="number" name="{{$data.common_spec_add_max_number.only_tag}}" placeholder="{{$data.common_spec_add_max_number.describe}}" data-validation-message="{{$data.common_spec_add_max_number.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.common_spec_add_max_number.value}}"{{/if}} />
|
||||
</div>
|
||||
<!-- <div class="am-form-group">
|
||||
<label>{{$data.common_share_giving_integral_frequency.name}}<span class="fs-12 fw-100 cr-999">({{$data.common_share_giving_integral_frequency.describe}})</span></label>
|
||||
<input type="number" name="{{$data.common_share_giving_integral_frequency.only_tag}}" placeholder="{{$data.common_share_giving_integral_frequency.name}}" data-validation-message="{{$data.common_share_giving_integral_frequency.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.common_share_giving_integral_frequency.value}}"{{/if}} />
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@
|
|||
</div>
|
||||
|
||||
<!-- 规格 -->
|
||||
<div id="goods-nav-operations" class="division-block">
|
||||
<div id="goods-nav-operations" class="division-block" data-spec-add-max-number="{{:MyC('common_spec_add_max_number', 3, true)}}">
|
||||
<label class="block nav-detail-title">商品规格</label>
|
||||
<span class="business-operations-submit specifications-nav-title-add">+添加规格</span>
|
||||
<div class="goods-specifications">
|
||||
|
|
|
|||
|
|
@ -10,9 +10,10 @@ $(function()
|
|||
// 规格列添加
|
||||
$('.specifications-nav-title-add').on('click', function()
|
||||
{
|
||||
if($('.specifications-table th.table-title').length >= 5)
|
||||
var spec_max = $('#goods-nav-operations').data('spec-add-max-number') || 3;
|
||||
if($('.specifications-table th.table-title').length >= spec_max)
|
||||
{
|
||||
Prompt('最多添加5列规格');
|
||||
Prompt('最多添加'+spec_max+'列规格');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue