{{include file="public/header" /}}
{{if empty($data['id'])}} 商品添加 {{else /}} 商品编辑 {{/if}} 返回



+上传图片
快捷操作可以快速创建商品SKU,大量节省SKU编辑时间,快捷操作数据不影响SKU数据,仅生成的时候重新覆盖SKU。
+快捷操作 生成规格
{{if !empty($data['spec_base'])}} {{foreach $data.spec_base as $spec_base_key=>$spec_base}} {{/foreach}} {{/if}}
规格名 规格值
× {{if !empty($spec_base['value'])}} {{foreach $spec_base.value as $value}}
×
{{/foreach}} {{/if}}
+添加规格值
+添加规格 +批量设置

批量设置

×
批量操作 ×
{{if !empty($specifications['type'])}} {{foreach $specifications.type as $type_v}} {{/foreach}} {{/if}} {{if empty($specifications['value'])}} {{/if}} {{if !empty($specifications['value'])}} {{foreach $specifications.value as $line_k=>$line_v}} {{foreach $line_v as $v}} {{if isset($v['data_type'])}} {{switch v.data_type}} {{case spec}} {{/case}} {{case base}} {{/case}} {{/switch}} {{/if}} {{/foreach}} {{/foreach}} {{/if}}
× 价格(元) 库存 重量(kg) 规格编码 条形码 原价(元) 扩展 操作
编辑
编辑 {{if $line_k gt 0}} 复制 移除 {{else /}} {{/if}}
+添加一行
    规格名称与规格值保持一致,相同规格名称添加一次即可,重复添加则后面覆盖前面,顺序不影响前端展示效果。 +添加规格图片 +第列规格自动生成
    {{if !empty($specifications['type'])}} {{foreach $specifications.type as $type}} {{if !empty($type['value'])}} {{foreach $type.value as $spec_key=>$spec}} {{if !empty($spec['images'])}}
    • ×
    +上传图片
  • {{/if}} {{/foreach}} {{/if}} {{/foreach}} {{/if}}
    {{if !empty($data['photo'])}} {{foreach $data.photo as $v}}
  • ×
  • {{/foreach}} {{/if}}
+上传相册
    {{if !empty($data['video'])}}
  • ×
  • {{/if}}
+上传视频
    {{if !empty($data['content_app'])}} {{foreach $data.content_app as $v}}
    • {{if !empty($v['images'])}}
    • ×
    • {{/if}}
    +上传图片
    删除 拖拽排序
  • {{/foreach}} {{/if}}
+添加手机详情
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
plugins_view_admin_goods_save
{{/if}} {{if !empty($plugins_view_admin_goods_save_data) and is_array($plugins_view_admin_goods_save_data)}} {{foreach $plugins_view_admin_goods_save_data as $hook}} {{if is_string($hook) or is_int($hook)}} {{$hook|raw}} {{/if}} {{/foreach}} {{else /}}
没有扩展数据
{{/if}}
{{include file="lib/seo" /}}

规格扩展数据

×
{{if !empty($goods_specifications_extends) and is_array($goods_specifications_extends)}} {{foreach $goods_specifications_extends as $v}}
{{if !empty($v['desc'])}} {{$v.desc}} {{/if}} {{if !empty($v['element'])}} {{foreach $v.element as $element}}
{{switch element.element}} {{case input}} {{if in_array($element['type'], ['radio', 'checkbox']) and !empty($element['element_data']) and is_array($element['element_data'])}} {{foreach $element.element_data as $element_data_key=>$element_data}} {{/foreach}} {{else /}} {{/if}} {{/case}} {{case select}} {{if !empty($element['element_data']) and is_array($element['element_data'])}} {{/if}} {{/case}} {{case textarea}} {{/case}} {{/switch}}
{{/foreach}} {{/if}}
{{/foreach}}
{{else /}}
没有扩展数据
{{/if}}
{{include file="public/footer" /}}