Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
ada6e79d
ShopXO
项目概览
jcy2004x
/
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,体验更适合开发者的 AI 搜索 >>
提交
ada6e79d
编写于
12月 25, 2018
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
购买加减,搜索框提示文字
上级
d865872b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
30 deletion
+20
-30
application/admin/view/default/goods/save_info.html
application/admin/view/default/goods/save_info.html
+14
-12
application/index/view/default/public/nav_search.html
application/index/view/default/public/nav_search.html
+2
-2
public/static/admin/default/js/goods.js
public/static/admin/default/js/goods.js
+0
-1
public/static/index/default/js/goods.js
public/static/index/default/js/goods.js
+4
-15
未找到文件。
application/admin/view/default/goods/save_info.html
浏览文件 @
ada6e79d
...
...
@@ -158,7 +158,7 @@
<div
class=
"goods-specifications"
>
<div
class=
"spec-images-tips"
>
<label
class=
"am-checkbox c-p"
>
<input
type=
"checkbox"
value=
"1"
data-am-ucheck
/>
<input
type=
"checkbox"
value=
"1"
data-am-ucheck
{{
if
!
empty
($
specifications
['
images
'])}}
checked
{{/
if
}}
/>
<span
class=
"fs-12 msg-tips"
>
首个规格选择添加图片
</span>
</label>
</div>
...
...
@@ -260,17 +260,19 @@
<span
class=
"business-operations-submit specifications-nav-title-add"
>
+添加规格
</span>
<span
class=
"business-operations-submit specifications-line-add"
>
+添加一行
</span>
<ul
class=
"spec-images-list"
{{
if
empty
($
specifications
['
images
'])}}
style=
"display: none"
{{/
if
}}
>
{{foreach $specifications.images as $spec_images}}
<li>
<ul
class=
"plug-file-upload-view spec-images-view-{{$spec_images.name}}"
data-form-name=
"spec_images[{{$spec_images.name}}]"
data-max-number=
"1"
data-delete=
'0'
data-dialog-type=
"images"
>
<li>
<input
type=
"hidden"
name=
"spec_images[{{$spec_images.name}}]"
value=
"{{$spec_images.images_old}}"
data-validation-message=
"请上传规格图片"
required
/>
<img
src=
"{{$spec_images.images}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.spec-images-view-{{$spec_images.name}}"
>
+上传图片
</div>
</li>
{{/foreach}}
{{if !empty($specifications['images'])}}
{{foreach $specifications.images as $spec_images}}
<li>
<ul
class=
"plug-file-upload-view spec-images-view-{{$spec_images.name}}"
data-form-name=
"spec_images[{{$spec_images.name}}]"
data-max-number=
"1"
data-delete=
'0'
data-dialog-type=
"images"
>
<li>
<input
type=
"hidden"
name=
"spec_images[{{$spec_images.name}}]"
value=
"{{$spec_images.images_old}}"
data-validation-message=
"请上传规格图片"
required
/>
<img
src=
"{{$spec_images.images}}"
/>
</li>
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.spec-images-view-{{$spec_images.name}}"
>
+上传图片
</div>
</li>
{{/foreach}}
{{/if}}
</ul>
</div>
</div>
...
...
application/index/view/default/public/nav_search.html
浏览文件 @
ada6e79d
...
...
@@ -13,8 +13,8 @@
<div
class=
"search-bar"
>
<form
action=
"{{:url('index/search/index')}}"
method=
"POST"
>
<input
id=
"search-input"
name=
"keywords"
type=
"text"
placeholder=
"
{{:lang('common_so_tips')}}
"
value=
"{{if !empty($params['keywords'])}}{{$params.keywords}}{{/if}}"
autocomplete=
"off"
/>
<input
id=
"ai-topsearch"
class=
"submit am-btn"
placeholder=
"
{{:lang('common_so_tips')}}
"
index=
"1"
type=
"submit"
value=
"搜索"
/>
<input
id=
"search-input"
name=
"keywords"
type=
"text"
placeholder=
"
其实搜索很简单^_^ !
"
value=
"{{if !empty($params['keywords'])}}{{$params.keywords}}{{/if}}"
autocomplete=
"off"
/>
<input
id=
"ai-topsearch"
class=
"submit am-btn"
placeholder=
"
其实搜索很简单^_^ !
"
index=
"1"
type=
"submit"
value=
"搜索"
/>
<notempty
name=
"home_search_keywords"
>
<ul
class=
"search-hot-keywords"
>
{{foreach $home_search_keywords as $v}}
...
...
public/static/admin/default/js/goods.js
浏览文件 @
ada6e79d
...
...
@@ -139,7 +139,6 @@ $(function()
}
});
spec_all
=
Object
.
keys
(
temp_spec_all
);
console
.
log
(
spec_all
)
// 添加规格图片
if
(
spec_all
.
length
>
0
)
...
...
public/static/index/default/js/goods.js
浏览文件 @
ada6e79d
...
...
@@ -504,8 +504,7 @@ $(window).resize(function()
$
(
document
).
ready
(
function
()
{
//获得文本框对象
var
t
=
$
(
'
#text_box
'
);
//初始化数量为1,并失效减
$
(
'
#min
'
).
attr
(
'
disabled
'
,
true
);
//数量增加操作
$
(
'
#add
'
).
on
(
'
click
'
,
function
()
{
var
stock
=
parseInt
(
$
(
'
.stock-tips .stock
'
).
text
());
...
...
@@ -513,22 +512,12 @@ $(document).ready(function() {
if
(
number
<
stock
)
{
t
.
val
(
number
+
1
)
if
(
parseInt
(
t
.
val
())
>
1
)
{
$
(
'
#min
'
).
attr
(
'
disabled
'
,
false
);
}
}
else
{
$
(
'
#add
'
).
attr
(
'
disabled
'
,
true
);
}
});
});
//数量减少操作
$
(
'
#min
'
).
on
(
'
click
'
,
function
()
{
t
.
val
(
parseInt
(
t
.
val
())
-
1
);
if
(
parseInt
(
t
.
val
())
==
1
)
{
$
(
'
#min
'
).
attr
(
'
disabled
'
,
true
);
}
$
(
'
#add
'
).
attr
(
'
disabled
'
,
false
);
var
value
=
parseInt
(
t
.
val
())
-
1
||
1
;
t
.
val
(
value
);
})
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录