<!-- 复制弹窗、仅复制操作失败的时候显示让用户手动复制 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="parameters-quick-copy-modal">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">
            <a href="javascript: void(0)" class="am-close" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <div class="am-padding-sm">
                <textarea rows="5" placeholder="商品参数配置信息"></textarea>
            </div>
        </div>
    </div>
</div>

<!--表列表数据 -->
<div class="parameters-container am-margin-top-sm">
    <table class="am-table am-table-bordered am-table-centered am-table-striped am-table-hover am-margin-bottom-sm parameters-table table-thead-beautify am-margin-bottom-0">
        <thead>
            <tr>
                <th class="spec-quick-th-title">展示范围</th>
                <th class="spec-quick-th-title">参数名称</th>
                <th class="spec-quick-th-value">参数值</th>
                <th class="spec-quick-th-value">操作</th>
            </tr>
        </thead>
        <tbody>
            {{if !empty($parameters) and is_array($parameters)}}
                {{foreach $parameters as $pv}}
                    <tr>
                        <td class="am-text-middle">
                            <select name="parameters_type[]" class="am-radius chosen-select" data-validation-message="请选择商品参数展示类型">
                                {{if !empty($common_goods_parameters_type_list)}}
                                    {{foreach $common_goods_parameters_type_list as $v}}
                                        <option value="{{$v.value}}" {{if $pv['type'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
                                    {{/foreach}}
                                {{/if}}
                            </select>
                        </td>
                        <td class="am-text-middle">
                            <input type="text" name="parameters_name[]" placeholder="参数名称" value="{{$pv.name}}" data-validation-message="请填写参数名称" maxlength="160" required />
                        </td>
                        <td class="am-text-middle">
                            <input type="text" name="parameters_value[]" placeholder="参数值" value="{{$pv.value}}" maxlength="200" data-validation-message="请填写参数值" />
                        </td>
                        <td class="am-text-middle">
                            <a href="javascript:;" class="am-text-xs am-text-secondary am-margin-right-sm line-move" data-type="top">上移</a>
                            <a href="javascript:;" class="am-text-xs am-text-secondary am-margin-right-sm line-move" data-type="bottom">下移</a>
                            <a href="javascript:;" class="am-text-xs am-text-danger line-remove">移除</a>
                        </td>
                    </tr>
                {{/foreach}}
            {{/if}}
        </tbody>
    </table>
</div>
<div class="am-margin-top-sm">
    <span class="business-operations-submit parameters-line-add">+添加一行</span>
</div>