Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
u011369184
ShopXO
提交
a4965be2
ShopXO
项目概览
u011369184
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a4965be2
编写于
2月 24, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品发布页面优化
上级
0ce10720
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
382 addition
and
314 deletion
+382
-314
application/admin/view/default/goods/save_info.html
application/admin/view/default/goods/save_info.html
+326
-265
application/admin/view/default/goods/spec.html
application/admin/view/default/goods/spec.html
+6
-5
application/admin/view/default/public/goodsparamstemplate/table.html
.../admin/view/default/public/goodsparamstemplate/table.html
+42
-44
public/static/admin/default/css/goods.css
public/static/admin/default/css/goods.css
+8
-0
未找到文件。
application/admin/view/default/goods/save_info.html
浏览文件 @
a4965be2
此差异已折叠。
点击以展开。
application/admin/view/default/goods/spec.html
浏览文件 @
a4965be2
<!-- 规格快捷操作 -->
<div
class=
"spec-quick am-margin-bottom-lg"
>
<div
class=
"am-margin-left-xs"
>
<div>
<div
class=
"am-alert am-alert-warning am-radius"
data-am-alert
>
快捷操作可以快速创建商品SKU,大量节省SKU编辑时间,快捷操作数据不影响SKU数据,仅生成的时候重新覆盖SKU。
<button
type=
"button"
class=
"am-close"
>
×
</button>
<p>
快捷操作可以快速创建商品SKU,大量节省SKU编辑时间,快捷操作数据不影响SKU数据,仅生成的时候重新覆盖SKU。
</p>
</div>
<span
class=
"business-operations-submit quick-spec-title-add"
>
+快捷操作
</span>
<span
class=
"business-operations-submit am-margin-left-sm am-icon-gg quick-spec-created"
>
生成规格
</span>
...
...
@@ -44,11 +45,11 @@
</div>
<!-- 规格常规操作 -->
<div
class=
"am-margin-left-xs"
>
<div>
<span
class=
"business-operations-submit specifications-nav-title-add"
>
+添加规格
</span>
<span
class=
"business-operations-submit am-margin-left-sm specifications-nav-set-all am-icon-cogs"
data-am-modal=
"{target: '#spec-popup-all-operation'}"
>
高级批量设置
</span>
</div>
<div
class=
"goods-specifications
business-form-group am-form-group-refreshing
am-padding-top-sm"
>
<div
class=
"goods-specifications am-padding-top-sm"
>
<!-- 规格列表 -->
<div
class=
"specifications-container am-scrollable-horizontal"
>
<table
class=
"am-table am-table-bordered am-table-centered specifications-table am-margin-bottom-sm am-table-striped am-table-hover table-thead-beautify am-margin-bottom-0"
>
...
...
@@ -169,7 +170,7 @@
<span
class=
"business-operations-submit specifications-line-add"
>
+添加一行
</span>
</div>
<div
class=
"spec-images-list"
>
<div
class=
"am-alert am-
alert-warning am-radius"
data-am-alert
>
<div
class=
"am-alert am-
radius"
>
规格名称与规格值保持一致,相同规格名称添加一次即可,重复添加则后面覆盖前面,顺序不影响前端展示效果。
<span
class=
"business-operations-submit specifications-line-images-add"
>
+添加规格图片
</span>
<span
class=
"business-operations-submit specifications-line-images-auto-add am-margin-left-sm am-icon-dot-circle-o"
>
第
<input
type=
"text"
class=
"am-inline-block am-text-center am-margin-horizontal-xs am-radius"
value=
"1"
/>
列规格自动生成
</span>
...
...
application/admin/view/default/public/goodsparamstemplate/table.html
浏览文件 @
a4965be2
...
...
@@ -13,48 +13,46 @@
</div>
<!--表列表数据 -->
<div
class=
"business-form-group am-padding-top-0"
>
<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>
<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>
\ No newline at end of file
public/static/admin/default/css/goods.css
浏览文件 @
a4965be2
...
...
@@ -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
;
}
/**
* 滚动导航
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录