Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jinhu.tung
9 years ago
Commit
6556effd197ee0c94da420e59133f51edd8da95c
1 parent
172e0773
product detail
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
apps/shopping/views/partial/cart-list.hbs
apps/shopping/views/partial/cart/cart-list-body.hbs
public/js/shopping/cart/stepper.js
apps/shopping/views/partial/cart-list.hbs
View file @
6556eff
...
...
@@ -40,13 +40,13 @@
<input type="hidden" name="product_ids[]"/>
</li>
<li>
<a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">
<a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">
<img src="\{{image goods_images 100 134}}" alt="\{{product_name}}">
</a>
</li>
<li class="pro-info">
\{{!-- <div class="brand-name">\{{brand_name}}</div> --}}
<div class="pro-name"><a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">\{{product_name}}</a></div>
<div class="pro-name"><a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">\{{product_name}}</a></div>
<div class="size">
\{{#if size_name}}
<span>尺寸: \{{size_name}}</span>
...
...
@@ -103,13 +103,13 @@
<input type="hidden" name="product_ids[]"/>
</li>
<li>
<a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">
<a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">
<img src="\{{image goods_images 100 134}}" alt="\{{product_name}}">
</a>
</li>
<li class="pro-info">
\{{!-- <div class="brand-name">\{{brandName}}</div> --}}
<div class="pro-name"><a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">\{{product_name}}</a></div>
<div class="pro-name"><a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">\{{product_name}}</a></div>
<div class="color-size editable" data-product_id=\{{product_id}} id="edit_\{{product_id}}">
\{{#if color_name}}
<span class="mr20">颜色: \{{color_name}}</span>
...
...
@@ -158,12 +158,12 @@
<span class="iconfont warning"></span>
</li>
<li>
<a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">
<a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">
<img src="\{{image goods_images 100 134}}" alt="\{{product_name}}">
</a>
</li>
<li class="pro-info">
<div class="pro-name"><a href="/product/
item/\{{goods_id}}_\{{product_id
}}.html">\{{product_name}}</a></div>
<div class="pro-name"><a href="/product/
pro_\{{goods_id}}_\{{product_id}}/\{{cn_alphabet
}}.html">\{{product_name}}</a></div>
<div>
\{{#if color_name}}
<span class="mr20">颜色: \{{color_name}}</span>
...
...
apps/shopping/views/partial/cart/cart-list-body.hbs
View file @
6556eff
...
...
@@ -17,13 +17,13 @@
<input
type=
"hidden"
name=
"product_ids[]"
/>
</li>
<li>
<a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
<a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
<img
src=
"
{{
image
goods_images
100
134
}}
"
alt=
"
{{
product_name
}}
"
>
</a>
</li>
<li
class=
"pro-info"
>
{{!-- <div class="brand-name">{{brand_name}}</div> --}}
<div
class=
"pro-name"
><a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
{{
product_name
}}
</a></div>
<div
class=
"pro-name"
><a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
{{
product_name
}}
</a></div>
<div
class=
"size"
>
{{#if
size_name
}}
<span>
尺寸:
{{
size_name
}}
</span>
...
...
@@ -70,13 +70,13 @@
<input
type=
"hidden"
name=
"product_ids[]"
/>
</li>
<li>
<a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
<a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
<img
src=
"
{{
image
goods_images
100
134
}}
"
alt=
"
{{
product_name
}}
"
>
</a>
</li>
<li
class=
"pro-info"
>
{{!-- <div class="brand-name">{{brandName}}</div> --}}
<div
class=
"pro-name"
><a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
{{
product_name
}}
</a></div>
<div
class=
"pro-name"
><a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
{{
product_name
}}
</a></div>
<div
class=
"color-size editable"
data-product_id=
{{
product_id
}}
id="edit_
{{
product_id
}}
"
>
{{#if
color_name
}}
<span
class=
"mr20"
>
颜色:
{{
color_name
}}
</span>
...
...
@@ -115,12 +115,12 @@
<span
class=
"iconfont warning"
>

</span>
</li>
<li>
<a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
<a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
<img
src=
"
{{
image
goods_images
100
134
}}
"
alt=
"
{{
product_name
}}
"
>
</a>
</li>
<li
class=
"pro-info"
>
<div
class=
"pro-name"
><a
href=
"/product/
item/
{{
goods_id
}}
_
{{
product_id
}}
.html"
>
{{
product_name
}}
</a></div>
<div
class=
"pro-name"
><a
href=
"/product/
pro_
{{
goods_id
}}
_
{{
product_id
}}
/
{{
cn_alphabet
}}
.html"
>
{{
product_name
}}
</a></div>
<div>
{{#if
color_name
}}
<span
class=
"mr20"
>
颜色:
{{
color_name
}}
</span>
...
...
public/js/shopping/cart/stepper.js
View file @
6556eff
...
...
@@ -12,7 +12,7 @@ var Stepper = {
// 减少商品数量
decrease
:
function
(
sku
,
currNum
)
{
if
(
parseInt
(
currNum
,
10
)
<=
1
)
{
//return callback(1);
//
return callback(1);
}
else
{
Util
.
ajax
({
url
:
'/shopping/cart/product/change_num'
,
...
...
Please
register
or
login
to post a comment