From a4965be2e3d5c3042cfb145a04edd49432a9723f Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 24 Feb 2021 22:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=8F=91=E5=B8=83=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/view/default/goods/save_info.html | 591 ++++++++++-------- .../admin/view/default/goods/spec.html | 11 +- .../public/goodsparamstemplate/table.html | 86 ++- public/static/admin/default/css/goods.css | 8 + 4 files changed, 382 insertions(+), 314 deletions(-) diff --git a/application/admin/view/default/goods/save_info.html b/application/admin/view/default/goods/save_info.html index 743317b24..bfdcce10b 100755 --- a/application/admin/view/default/goods/save_info.html +++ b/application/admin/view/default/goods/save_info.html @@ -34,7 +34,7 @@ 电脑详情
  • - 虚拟商品 + 虚拟信息
  • 扩展数据 @@ -49,291 +49,352 @@ -
    - -
    - -
    - - - - - +
    +
    +

    基础信息

    +
    +
    +
    + +
    + + + + + +
    -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    - -
    - +
    +
    + + +
    +
    + +
    + +
    +
    + +
    + +
    +
    + +
    + -
    -
    - -
    - -
    -
    - - -
    -
    - -
    - - - - -
    -
    -
    - - -
    -
    - - -
    -
    - -
    -

    1. 当前系统配置的站点类型为[ {{$common_site_type_list[$common_site_type]['name']}} ]

    -

    2. 如果商品类型未配置则跟随系统配置的站点类型

    -

    3. 当设置的商品类型不在系统设置的站点类型包含的时候,商品加入购物车功能将失效

    + {{if !empty($region_province_list)}} + {{foreach $region_province_list as $v}} + + {{/foreach}} + {{/if}} + +
    +
    + + +
    +
    + +
    + + + + +
    +
    +
    + + +
    +
    + + +
    +
    + +
    +

    1. 当前系统配置的站点类型为[ {{$common_site_type_list[$common_site_type]['name']}} ]

    +

    2. 如果商品类型未配置则跟随系统配置的站点类型

    +

    3. 当设置的商品类型不在系统设置的站点类型包含的时候,商品加入购物车功能将失效

    +
    + +
    +
    + + +
    +上传图片
    +
    +
    + + +
    +
    + +
    - -
    -
    - - -
    +上传图片
    -
    -
    - - -
    -
    - -
    - -
    - - {{include file="goods/spec" /}} -
    + +
    +
    +

    商品规格必填

    +
    +
    +
    + {{include file="goods/spec" /}} +
    +
    +
    - -
    - -
    - {{include file="public/goodsparamstemplate/tips" /}} - -
    - - 快捷操作 - - -
    -
    - + +
    +
    +

    商品参数选填

    +
    +
    +
    + {{include file="public/goodsparamstemplate/tips" /}} + +
    + + 快捷操作 + + +
    +
    + +
    + +
    - -
    + + + + 复制配置 + + + + + 清空参数 + + + + {{include file="public/goodsparamstemplate/table" /}}
    - - - - 复制配置 - - - - - 清空参数 - -
    - {{include file="public/goodsparamstemplate/table" /}} -
    +
    +
    -
    - -
      - {{if !empty($data['photo'])}} - {{foreach $data.photo as $v}} -
    • - - - × -
    • - {{/foreach}} - {{/if}} -
    -
    +上传相册
    -
    +
    +
    +

    商品相册必传

    +
    +
    +
    +
    + +

    可拖拽图片进行排序,建议图片尺寸一致800*800px、最多30张

    +
    +
      + {{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}} -
    - +添加手机详情 -
    +
    +
    +

    商品视频选传

    +
    +
    +
    +
    + +

    视频比图文更有具带入感,仅支持 mp4 格式

    +
    +
      + {{if !empty($data['video'])}} +
    • + + + × +
    • + {{/if}} +
    +
    +上传视频
    +
    +
    +
    - -
    - -
    - + +
    +
    +

    手机详情选填

    +
    +
    +
    +
    + +

    设置手机详情后、在手机模式下将展示手机详情、比如[小程序、APP]

    +
    +
      + {{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 /}} - {{include file="public/not_data" /}} - {{/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 /}} + {{include file="public/not_data" /}} + {{/if}} + +
    +
    +
    - -
    - - {{include file="lib/seo" /}} -
    + +
    +
    +

    SEO信息选填

    +
    +
    + {{include file="lib/seo" /}} +
    +
    diff --git a/application/admin/view/default/goods/spec.html b/application/admin/view/default/goods/spec.html index 1710db32c..a6d3d563e 100644 --- a/application/admin/view/default/goods/spec.html +++ b/application/admin/view/default/goods/spec.html @@ -1,8 +1,9 @@
    -
    +
    - 快捷操作可以快速创建商品SKU,大量节省SKU编辑时间,快捷操作数据不影响SKU数据,仅生成的时候重新覆盖SKU。 + +

    快捷操作可以快速创建商品SKU,大量节省SKU编辑时间,快捷操作数据不影响SKU数据,仅生成的时候重新覆盖SKU。

    +快捷操作 生成规格 @@ -44,11 +45,11 @@
    -
    +
    +添加规格 高级批量设置
    -
    +
    @@ -169,7 +170,7 @@ +添加一行
    -
    +
    规格名称与规格值保持一致,相同规格名称添加一次即可,重复添加则后面覆盖前面,顺序不影响前端展示效果。 +添加规格图片 列规格自动生成 diff --git a/application/admin/view/default/public/goodsparamstemplate/table.html b/application/admin/view/default/public/goodsparamstemplate/table.html index 61ae2ae72..dd2f4d06c 100644 --- a/application/admin/view/default/public/goodsparamstemplate/table.html +++ b/application/admin/view/default/public/goodsparamstemplate/table.html @@ -13,48 +13,46 @@
    -
    -
    -
    - - - - - - - - - - {{if !empty($parameters) and is_array($parameters)}} - {{foreach $parameters as $pv}} - - - - - - - {{/foreach}} - {{/if}} - -
    展示范围参数名称参数值操作
    - - - - - - - 上移 - 下移 - 移除 -
    -
    -
    - +添加一行 -
    +
    + + + + + + + + + + + {{if !empty($parameters) and is_array($parameters)}} + {{foreach $parameters as $pv}} + + + + + + + {{/foreach}} + {{/if}} + +
    展示范围参数名称参数值操作
    + + + + + + + 上移 + 下移 + 移除 +
    +
    +
    + +添加一行
    \ No newline at end of file diff --git a/public/static/admin/default/css/goods.css b/public/static/admin/default/css/goods.css index 7bacde49d..7cea6611a 100755 --- a/public/static/admin/default/css/goods.css +++ b/public/static/admin/default/css/goods.css @@ -4,6 +4,14 @@ .dl-content img { max-width: 100%; } +.am-panel .am-form-group:last-child, +.am-panel .business-form-group:last-child { + border-bottom: 0; +} +.edui-default .edui-editor, +.edui-default .edui-editor-iframeholder { + width: 100% !important; +} /** * 滚动导航 -- GitLab