Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
62cac7f701c2fc47d1956abbb7b4ba5a6216f029
2 parents
214a69c6
7a87d814
Merge branch 'feature/cart' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
148 additions
and
106 deletions
library/Plugin/Helpers.php
static/js/shopping-cart/cart-info.js → static/js/cart/cart-info.js
static/js/shopping-cart/cart.js → static/js/cart/cart.js
static/js/shopping-cart/chose-panel.js → static/js/cart/chose-panel.js
static/js/shopping-cart/entry.js → static/js/cart/entry.js
static/js/shopping-cart/gift-advance.js → static/js/cart/gift-advance.js
static/js/shopping-cart/good.js → static/js/cart/good.js
static/js/shopping-cart/order-ensure.js → static/js/cart/order-ensure.js
static/js/shopping-cart/order-info.js → static/js/cart/order-info.js
static/js/shopping-cart/select-address.js → static/js/cart/select-address.js
static/js/shopping-cart/select-coupon.js → static/js/cart/select-coupon.js
static/js/product/detail/like.js
static/sass/shopping-cart/_chose-panel.scss → static/sass/cart/_chose-panel.scss
static/sass/shopping-cart/_gift-advance-good.scss → static/sass/cart/_gift-advance-good.scss
static/sass/shopping-cart/_good.scss → static/sass/cart/_good.scss
static/sass/shopping-cart/_index.scss → static/sass/cart/_index.scss
static/sass/shopping-cart/_order-ensure.scss → static/sass/cart/_order-ensure.scss
static/sass/shopping-cart/_select-address.scss → static/sass/cart/_select-address.scss
static/sass/shopping-cart/_select-coupon.scss → static/sass/cart/_select-coupon.scss
static/sass/index.scss
template/m.yohobuy.com/actions/cart/index/gift-advance.phtml
template/m.yohobuy.com/actions/cart/index/index.phtml
template/m.yohobuy.com/partials/shopping-cart/cart-content.phtml → template/m.yohobuy.com/partials/cart/cart-content.phtml
template/m.yohobuy.com/partials/shopping-cart/chose-panel.phtml → template/m.yohobuy.com/partials/cart/chose-panel.phtml
template/m.yohobuy.com/partials/shopping-cart/gift-advance-good.phtml → template/m.yohobuy.com/partials/cart/gift-advance-good.phtml
template/m.yohobuy.com/partials/shopping-cart/good.phtml → template/m.yohobuy.com/partials/cart/good.phtml
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
library/Plugin/Helpers.php
View file @
62cac7f
...
...
@@ -10,9 +10,9 @@ class Helpers
/**
* 构建网站的URL
*
*
* 备注:所有的URL构建都尽量使用该方法,便于以后维护.
*
*
* @param string $uri 如 "/passport/reg/index"
* @param array $param 参数项 array(key1 => value1, key2 => value2,),默认为array()
* @param string $module 模块名 如"index"表示默认, "guang"表示逛,"list"表示商品列表,"search"表示搜索
...
...
@@ -53,7 +53,7 @@ class Helpers
/**
* 根据尺寸获得图片url
*
*
* @param string $url 路径
* @param integer $width 图片宽度
* @param integer $height 图片高度
...
...
@@ -67,7 +67,7 @@ class Helpers
/**
* 获取过滤APP里附加参数后的URL链接
*
*
* @param string $url 路径
* @return string 去除掉如&openby:yohobuy={"action":"go.brand"}这样的APP附加参数
*/
...
...
@@ -84,7 +84,7 @@ class Helpers
/**
* 根据用户访问的COOKIE判断出性别
*
*
* @return string
*/
public
static
function
getGenderByCookie
()
...
...
@@ -102,7 +102,7 @@ class Helpers
/**
* 根据用户访问的COOKIE判断出频道
*
*
* @return int
*/
public
static
function
getChannelByCookie
()
...
...
@@ -124,7 +124,7 @@ class Helpers
/**
* 从用户加入购物车的COOKIE取出购物车凭证
*
*
* @return string
*/
public
static
function
getShoppingKeyByCookie
()
...
...
@@ -135,7 +135,7 @@ class Helpers
/**
* 获取商品的ICON
*
*
* @param int $type
* @return array
*/
...
...
@@ -195,7 +195,7 @@ class Helpers
/**
* 格式化商品信息
*
*
* @param array $productData 需要格式化的商品数据
* @param bool $showTags 控制是否显示标签
* @param bool $showNew 控制是否显示NEW图标
...
...
@@ -273,7 +273,7 @@ class Helpers
/**
* 格式化资讯文章
*
*
* @param array $articleData 需要格式化的资讯数据
* @param bool $showTag 是否显示左上角标签
* @param mixed $isApp 是否显示分享,在APP客户端里嵌入需要传url链接
...
...
@@ -348,7 +348,7 @@ class Helpers
/**
* 格式化广告焦点图数据
*
*
* @param array $bannerData 需要格式化的广告图数据
* @param int $width 图片的宽度
* @param int $height 图片的高度
...
...
@@ -370,7 +370,7 @@ class Helpers
/**
* 生成公开的TOKEN凭证
*
*
* @param string $string 字符串
* @return string
*/
...
...
@@ -381,7 +381,7 @@ class Helpers
/**
* 验证TOKEN凭证
*
*
* @param string $string 字符串
* @param string $token 公开访问TOKEN
* @return bool
...
...
@@ -397,7 +397,7 @@ class Helpers
/**
* 验证手机是否合法
*
*
* @param int $mobile
* @return boolean
*/
...
...
@@ -411,7 +411,7 @@ class Helpers
/**
* 验证密码是否合法
*
*
* @param int $password
* @return boolean
*/
...
...
@@ -425,7 +425,7 @@ class Helpers
/**
* 验证邮箱是否合法
*
*
* @param string $email
* @return boolean
*/
...
...
@@ -438,8 +438,8 @@ class Helpers
}
/**
* 验证国际手机号是否合法
*
* 验证国际手机号是否合法
*
* @param string $areaMobile
* @return boolean
*/
...
...
@@ -518,7 +518,7 @@ class Helpers
/**
* 格式化订单商品
*
*
* @param array $orderGoods 订单
* @param int $count 计订单件数
* @param bool $haveLink 控制是否需要商品链接
...
...
@@ -620,7 +620,7 @@ class Helpers
foreach
(
$value
[
'goods_list'
]
as
$single
)
{
$oneGoods
[
'id'
]
=
$single
[
'product_skn'
];
$oneGoods
[
'name'
]
=
$single
[
'product_name'
];
$oneGoods
[
'thumb'
]
=
!
empty
(
$single
[
'goods_images'
])
?
Images
::
getImageUrl
(
$single
[
'goods_images'
],
120
,
1
2
0
)
:
''
;
$oneGoods
[
'thumb'
]
=
!
empty
(
$single
[
'goods_images'
])
?
Images
::
getImageUrl
(
$single
[
'goods_images'
],
120
,
1
6
0
)
:
''
;
$oneGoods
[
'appearDate'
]
=
'12月'
;
// 目前app接口没有返回该数据
$oneGoods
[
'price'
]
=
$single
[
'last_price'
];
$oneGoods
[
'marketPrice'
]
=
$single
[
'market_price'
];
...
...
@@ -686,7 +686,7 @@ class Helpers
/**
* 获取会员的级别
*
*
* @param string $vipInfo
* @return int
*/
...
...
@@ -714,9 +714,9 @@ class Helpers
/**
* 同步用户的会话
*
*
* 转向老的PHP服务器上处理, 因购物车相关的操作会依赖SESSION
*
*
* @param int $uid 用户ID
* @param string $refer 访问来源
* @param string $callback 回调方法名
...
...
@@ -730,9 +730,9 @@ class Helpers
/**
* 退出清除用户的会话
*
*
* 转向老的PHP服务器上处理, 因购物车相关的操作会依赖SESSION
*
*
* @param int $uid 用户ID
* @param string $refer 访问来源
* @param string $callback 回调方法名
...
...
static/js/
shopping-
cart/cart-info.js → static/js/cart/cart-info.js
View file @
62cac7f
static/js/
shopping-
cart/cart.js → static/js/cart/cart.js
View file @
62cac7f
static/js/
shopping-
cart/chose-panel.js → static/js/cart/chose-panel.js
View file @
62cac7f
static/js/
shopping-
cart/entry.js → static/js/cart/entry.js
View file @
62cac7f
static/js/
shopping-
cart/gift-advance.js → static/js/cart/gift-advance.js
View file @
62cac7f
static/js/
shopping-
cart/good.js → static/js/cart/good.js
View file @
62cac7f
static/js/
shopping-
cart/order-ensure.js → static/js/cart/order-ensure.js
View file @
62cac7f
static/js/
shopping-
cart/order-info.js → static/js/cart/order-info.js
View file @
62cac7f
static/js/
shopping-
cart/select-address.js → static/js/cart/select-address.js
View file @
62cac7f
static/js/
shopping-
cart/select-coupon.js → static/js/cart/select-coupon.js
View file @
62cac7f
static/js/product/detail/like.js
View file @
62cac7f
...
...
@@ -8,7 +8,7 @@
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
),
tip
=
require
(
'../../plugin/tip'
),
chosePanel
=
require
(
'../../
shopping-
cart/chose-panel'
);
chosePanel
=
require
(
'../../cart/chose-panel'
);
var
likeEle
=
document
.
getElementById
(
'likeBtn'
),
likeHammer
=
likeEle
&&
new
Hammer
(
likeEle
);
...
...
@@ -83,6 +83,3 @@ if (addToCartHammer) {
});
}
...
...
static/sass/
shopping-
cart/_chose-panel.scss → static/sass/cart/_chose-panel.scss
View file @
62cac7f
static/sass/
shopping-
cart/_gift-advance-good.scss → static/sass/cart/_gift-advance-good.scss
View file @
62cac7f
...
...
@@ -44,6 +44,10 @@
&
:before
{
content
:
'赠品'
;
display
:
block
;
font-size
:
12px
;
line-height
:
25rem
/
$pxConvertRem
;
transform
:
scale
(
0
.833
);
}
}
...
...
@@ -52,6 +56,7 @@
}
.name
{
width
:
440rem
/
$pxConvertRem
;
font-size
:
28rem
/
$pxConvertRem
;
}
...
...
@@ -74,8 +79,14 @@
}
.price
{
margin-left
:
10rem
/
$pxConvertRem
;
font-size
:
24rem
/
$pxConvertRem
;
color
:
#000
;
color
:
#f1545b
;
&
.market-price
{
color
:
#999
;
text-decoration
:
line-through
;
}
}
.count
{
...
...
@@ -96,9 +107,9 @@
}
.title
{
height
:
50rem
/
$pxConvertRem
;
line-height
:
50rem
/
$pxConvertRem
;
padding-left
:
20rem
/
$pxConvertRem
;
height
:
60rem
/
$pxConvertRem
;
line-height
:
60rem
/
$pxConvertRem
;
padding
:
0
20rem
/
$pxConvertRem
;
font-size
:
24rem
/
$pxConvertRem
;
background
:
#f8f8f8
;
}
...
...
@@ -109,4 +120,4 @@
content
:
'加价购'
;
}
}
}
\ No newline at end of file
}
...
...
static/sass/
shopping-
cart/_good.scss → static/sass/cart/_good.scss
View file @
62cac7f
...
...
@@ -7,6 +7,7 @@
position
:
absolute
;
top
:
50%
;
margin-top
:
-14rem
/
$pxConvertRem
;
margin-left
:
20rem
/
$pxConvertRem
;
font-size
:
28rem
/
$pxConvertRem
;
color
:
#f0f0f0
;
...
...
@@ -15,9 +16,40 @@
}
}
.few-tag
{
width
:
132rem
/
$pxConvertRem
;
position
:
absolute
;
left
:
100rem
/
$pxConvertRem
;
text-align
:
center
;
top
:
75%
;
color
:
#fff
;
}
.gift-tag
{
background-color
:
#88BE51
;
}
.plus-tag
{
background-color
:
#FC1264
;
}
.few-tag-expire
{
position
:
absolute
;
top
:
40%
;
left
:
20rem
/
$pxConvertRem
;
background-color
:
#7f7f7f
;
display
:
inline-block
;
color
:
#fff
;
border-radius
:
12rem
/
$pxConvertRem
;
padding
:
4rem
/
$pxConvertRem
;
font-size
:
20rem
/
$pxConvertRem
;
width
:
48rem
/
$pxConvertRem
;
text-align
:
center
;
}
.info
{
float
:
left
;
margin-left
:
3
0rem
/
$pxConvertRem
;
margin-left
:
6
0rem
/
$pxConvertRem
;
padding
:
16rem
/
$pxConvertRem
0
;
padding-right
:
20rem
/
$pxConvertRem
;
}
...
...
@@ -32,13 +64,18 @@
.deps
{
margin-left
:
173rem
/
$pxConvertRem
;
padding-bottom
:
60
rem
/
$pxConvertRem
;
padding-bottom
:
72
rem
/
$pxConvertRem
;
border-bottom
:
1px
solid
#e0e0e0
;
width
:
380rem
/
$pxConvertRem
;
position
:
relative
;
min-height
:
140rem
/
$pxConvertRem
;
}
.name
{
font-size
:
28rem
/
$pxConvertRem
;
color
:
#5a5a5a
;
width
:
80%
;
display
:
inline-block
;
}
.row
:nth-child
(
2
)
{
...
...
@@ -71,9 +108,13 @@
}
.count
{
font-size
:
20
rem
/
$pxConvertRem
;
font-size
:
32
rem
/
$pxConvertRem
;
color
:
#999
;
margin-left
:
22rem
/
$pxConvertRem
;
//margin-left: 22rem / $pxConvertRem;
display
:
inline-block
;
width
:
19%
;
position
:
absolute
;
text-align
:
center
;
}
.sold-out
,
.low-stocks
{
...
...
@@ -181,15 +222,15 @@
font-size
:
40rem
/
$pxConvertRem
;
line-height
:
60rem
/
$pxConvertRem
;
text-align
:
center
;
}
&
:last-child
{
span
{
width
:
168rem
/
$pxConvertRem
;
overflow
:
hidden
;
font-size
:
48em
/
$pxConvertRem
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
}
}
}
...
...
@@ -205,7 +246,6 @@
top
:
20rem
/
$pxConvertRem
;;
font-size
:
52em
/
$pxConvertRem
;
}
}
}
...
...
static/sass/
shopping-
cart/_index.scss → static/sass/cart/_index.scss
View file @
62cac7f
static/sass/
shopping-
cart/_order-ensure.scss → static/sass/cart/_order-ensure.scss
View file @
62cac7f
static/sass/
shopping-
cart/_select-address.scss → static/sass/cart/_select-address.scss
View file @
62cac7f
static/sass/
shopping-
cart/_select-coupon.scss → static/sass/cart/_select-coupon.scss
View file @
62cac7f
static/sass/index.scss
View file @
62cac7f
...
...
@@ -158,5 +158,5 @@ a {
@import
"category/index"
;
@import
"product/index"
;
@import
"index/index"
;
@import
"
shopping-
cart/index"
;
@import
"cart/index"
;
@import
"me/index"
;
//个人中心
...
...
template/m.yohobuy.com/actions/cart/index/gift-advance.phtml
View file @
62cac7f
{
{>
layout/header
}
}
<div
class=
"gift-advance-page yoho-page"
>
{
{#
shoppingCart
}
}
{
{#if
gift
}
}
{
{#
gift
}
}
{
{>
shopping-cart/gift-advance-good
}
}
{
{/
gift
}
}
{
{^
}
}
{
{#
advance
}
}
<div
class=
"advance-block"
>
<p
class=
"title"
>
{
{title
}
}</p>
{
{#
goods
}
}
{
{>
shopping-cart/gift-advance-good
}
}
{
{/
goods
}
}
</div>
{
{/
advance
}
}
{
{/if
}
}
{
{/
shoppingCart
}
}
{
{#if
advanceBuyPage
}
}
{
{#
advanceBuy
}
}
<div
class=
"advance-block"
>
<p
class=
"title"
>
{
{title
}
}</p>
{
{#goods
}
}
{
{>
cart/gift-advance-good
}
}
{
{/goods
}
}
</div>
{
{/
advanceBuy
}
}
{
{else
}
}
{
{#
gift
}
}
{
{>
cart/gift-advance-good
}
}
{
{/
gift
}
}
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/actions/cart/index/index.phtml
View file @
62cac7f
...
...
@@ -27,7 +27,7 @@
{
{#
commonCart
}
}
<div
class=
"cart-content common"
>
{
{>
shopping-
cart/cart-content
}
}
{
{>
cart/cart-content
}
}
</div>
{
{/
commonCart
}
}
...
...
@@ -38,7 +38,7 @@
<span
class=
"txt"
>预售商品全场包邮,到货后立即发货</span>
<span
class=
"txt"
>预售商品不参加活动,不可使用优惠券</span>
</p>
{
{>
shopping-
cart/cart-content
}
}
{
{>
cart/cart-content
}
}
</div>
{
{/
preSellCart
}
}
{
{/
shoppingCart
}
}
...
...
@@ -52,5 +52,5 @@
</div>
{
{>
product/recommend-for-you
}
}
</div>
{
{>
shopping-
cart/chose-panel
}
}
{
{>
cart/chose-panel
}
}
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/partials/
shopping-
cart/cart-content.phtml → template/m.yohobuy.com/partials/cart/cart-content.phtml
View file @
62cac7f
<div class="cart-goods">
{{# goods}}
{{>
shopping-
cart/good}}
{{> cart/good}}
{{/ goods}}
{{# $notValidGoods}}
{{>
shopping-
cart/good}}
{{> cart/good}}
{{/ $notValidGoods}}
</div>
...
...
template/m.yohobuy.com/partials/
shopping-
cart/chose-panel.phtml → template/m.yohobuy.com/partials/cart/chose-panel.phtml
View file @
62cac7f
template/m.yohobuy.com/partials/
shopping-
cart/gift-advance-good.phtml → template/m.yohobuy.com/partials/cart/gift-advance-good.phtml
View file @
62cac7f
...
...
@@ -22,8 +22,8 @@
<span class="price">
¥{{price}}
</span>
<span class="price">
¥{{salePrice}}
<span class="price market-price">
¥{{marketPrice}}
</span>
<span class="count">
×{{count}}
...
...
@@ -33,4 +33,4 @@
</div>
</div>
\ No newline at end of file
</div>
...
...
template/m.yohobuy.com/partials/
shopping-
cart/good.phtml → template/m.yohobuy.com/partials/cart/good.phtml
View file @
62cac7f
<div class="shopping-cart-good clearfix" data-id={{id}}>
<span class="checkbox icon-cb-checked iconfont"></span>
<!-- {{#if isSoldOut}}
<p class="">失效</p>
{{^}}
{{#if isGift}}
{{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{/if}}
{{#if isSoldOut}}
<span class="few-tag-expire">失效</span>
{{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{/if}}
{{/if}}-->
<div class="info">
<img class="thumb lazy" data-original={{thumb}}>
<!--
<a class="" href="{{url}}">
<img class="thumb lazy" data-original="{{thumb}}">
</a>
{{#if isAdvanceBuy}}
<p class="few-tag">加价购</p>
<p class="few-tag
plus-tag
">加价购</p>
{{^}}
{{#if isGift}}
<p class="few-tag">赠品</p>
<p class="few-tag
gift-tag
">赠品</p>
{{/if}}
{{/if}}
{{#if isSoldOut}}
<p class="few-tag">失效</p>
{{/if}}
-->
</a>
<div class="deps show">
<p class="name row">{{name}}</p>
<span class="count">
×{{count}}
</span>
<p class="row">
{{#if color}}
<span class="color">
...
...
@@ -48,9 +39,7 @@
<span class="price">
¥{{price}}
</span>
<span class="count">
×{{count}}
</span>
{{#if soldOut}}
<span class="sold-out">
已售罄
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
62cac7f
...
...
@@ -221,29 +221,34 @@
{{!-- 购物车 --}}
{{#if shoppingCartPage}}
<script>
seajs.use('js/
shopping-
cart/cart');
seajs.use('js/cart/cart');
seajs.use('js/product/recommend-for-you');
</script>
{{/if}}
{{#if gift
Advance
Page}}
{{#if giftPage}}
<script>
seajs.use('js/shopping-cart/gift-advance');
seajs.use('js/cart/gift-advance');
</script>
{{/if}}
{{#if advanceBuyPage}}
<script>
seajs.use('js/cart/gift-advance');
</script>
{{/if}}
{{#if orderEnsurePage}}
<script>
seajs.use('js/
shopping-
cart/order-ensure');
seajs.use('js/cart/order-ensure');
</script>
{{/if}}
{{#if selectAddressPage}}
<script>
seajs.use('js/me/address');
seajs.use('js/
shopping-
cart/select-address');
seajs.use('js/cart/select-address');
</script>
{{/if}}
{{#if selectCouponPage}}
<script>
seajs.use('js/
shopping-
cart/select-coupon');
seajs.use('js/cart/select-coupon');
</script>
{{/if}}
{{!-- 个人中心 --}}
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
62cac7f
...
...
@@ -674,12 +674,12 @@ class CartModel
break
;
}
if
(
$only
AdvanceBuy
)
{
if
(
$only
Gift
)
{
// 赠品
$result
[
'freebie'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'gift_list'
]);
break
;
}
if
(
$only
Gift
)
{
if
(
$only
AdvanceBuy
)
{
// 加价购
$result
[
'advanceBuy'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'price_gift'
]);
break
;
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
62cac7f
...
...
@@ -143,11 +143,11 @@ class IndexController extends AbstractAction
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$cartType
=
$this
->
get
(
'cartType'
,
'ordinary'
);
$data
=
array
(
'
shoppingCar
tPage'
=>
true
);
$data
=
array
(
'
gif
tPage'
=>
true
);
$data
+=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
,
$cartType
,
true
);
// 渲染模板
$this
->
_view
->
display
(
'gift-advance
-good
'
,
$data
);
$this
->
_view
->
display
(
'gift-advance'
,
$data
);
}
/*
...
...
@@ -161,11 +161,11 @@ class IndexController extends AbstractAction
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$cartType
=
$this
->
get
(
'cartType'
,
'ordinary'
);
$data
=
array
(
'
shoppingCart
Page'
=>
true
);
$data
=
array
(
'
advanceBuy
Page'
=>
true
);
$data
+=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
,
$cartType
,
false
,
true
);
// 渲染模板
$this
->
_view
->
display
(
'gift-advance
-good
'
,
$data
);
$this
->
_view
->
display
(
'gift-advance'
,
$data
);
}
/*
...
...
@@ -425,10 +425,10 @@ class IndexController extends AbstractAction
$this
->
echoJson
(
$result
);
}
}
/**
* 加入购物车
*
*
* @param string productSku 商品的SKU
* @param int buyNumber 购买数量
* @param int promotionId 促销ID, 加价购有关
...
...
@@ -460,5 +460,5 @@ class IndexController extends AbstractAction
$this
->
echoJson
(
$result
);
}
}
...
...
Please
register
or
login
to post a comment