Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
89912973
ShopXO
项目概览
starsw001
/
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,发现更多精彩内容 >>
提交
89912973
编写于
9月 22, 2019
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品规格快捷操作优化
上级
556ef838
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
72 addition
and
7 deletion
+72
-7
application/admin/view/default/goods/save_info.html
application/admin/view/default/goods/save_info.html
+42
-6
public/static/admin/default/css/goods.css
public/static/admin/default/css/goods.css
+4
-0
public/static/admin/default/js/goods.js
public/static/admin/default/js/goods.js
+26
-1
未找到文件。
application/admin/view/default/goods/save_info.html
浏览文件 @
89912973
...
...
@@ -186,6 +186,24 @@
<span
class=
"business-operations-submit specifications-nav-title-add"
>
+添加规格
</span>
<div
class=
"goods-specifications"
>
<!-- 规格批量操作弹层 -->
<div
class=
"am-modal am-modal-no-btn"
tabindex=
"-1"
id=
"spec-modal-all-operation"
>
<div
class=
"am-modal-dialog"
>
<div
class=
"am-modal-hd"
>
批量操作
<a
href=
"javascript: void(0)"
class=
"am-close am-close-spin"
data-am-modal-close
>
×
</a>
</div>
<div
class=
"am-modal-bd"
>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"text"
class=
"am-form-field"
placeholder=
"批量设置的值"
/>
<span
class=
"am-input-group-btn"
>
<button
class=
"am-btn am-btn-default"
type=
"button"
>
确认
</button>
</span>
</div>
</div>
</div>
</div>
<!-- 规格列表 -->
<table
class=
"am-table am-table-bordered am-table-centered specifications-table am-margin-bottom-sm"
>
<thead
class=
"title-nav"
>
<tr>
...
...
@@ -197,12 +215,30 @@
</th>
{{/foreach}}
{{/if}}
<th
class=
"title-start"
>
价格(元)
</th>
<th>
库存
</th>
<th>
重量(kg)
</th>
<th>
规格编码
</th>
<th>
条形码
</th>
<th>
原价(元)
</th>
<th
class=
"title-start"
>
<span>
价格(元)
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th>
<span>
库存
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th>
<span>
重量(kg)
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th>
<span>
规格编码
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th>
<span>
条形码
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th>
<span>
原价(元)
</span>
<i
class=
"am-icon-edit"
></i>
</th>
<th
class=
"extend-btn"
>
扩展
</th>
<th
class=
"operation-btn"
>
操作
</th>
</tr>
...
...
public/static/admin/default/css/goods.css
浏览文件 @
89912973
...
...
@@ -164,6 +164,10 @@
width
:
100px
;
margin
:
5px
10px
10px
0
;
}
.specifications-table
thead
th
i
{
cursor
:
pointer
;
}
/**
* 属性
...
...
public/static/admin/default/js/goods.js
浏览文件 @
89912973
...
...
@@ -204,6 +204,31 @@ $(function()
$
(
this
).
parents
(
'
li.spec-images-items
'
).
remove
();
});
// 规格批量操作-开启
var
$spec_modal
=
$
(
'
#spec-modal-all-operation
'
);
$
(
'
.specifications-table thead th i
'
).
on
(
'
click
'
,
function
()
{
$spec_modal
.
modal
({
width
:
200
,
height
:
100
});
$spec_modal
.
attr
(
'
data-index
'
,
$
(
this
).
parent
().
index
());
$spec_modal
.
find
(
'
.am-input-group input
'
).
val
(
''
);
});
// 规格批量操作-确认
$spec_modal
.
find
(
'
.am-input-group button
'
).
on
(
'
click
'
,
function
()
{
var
index
=
$spec_modal
.
attr
(
'
data-index
'
)
||
0
;
var
value
=
$spec_modal
.
find
(
'
.am-input-group input
'
).
val
()
||
''
;
$
(
'
.specifications-table tbody tr
'
).
each
(
function
(
k
,
v
)
{
$
(
this
).
find
(
'
td
'
).
eq
(
index
).
find
(
'
input
'
).
val
(
value
);
});
$spec_modal
.
modal
(
'
close
'
);
});
// 手机详情添加
$
(
document
).
on
(
'
click
'
,
'
.content-app-items-add-sub
'
,
function
()
{
...
...
@@ -350,7 +375,7 @@ $(function()
return
false
;
}
// 移除规格列
// 移除
所有
规格列
$
(
'
.specifications-table .title-nav-remove
'
).
trigger
(
'
click
'
);
// 添加规格列
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录