|
|
@@ -72,12 +72,12 @@ func (self *ProductController) Latest() {
|
|
|
}
|
|
|
pd.DeliverStartTime = pd.DeliverStartAt.Unix()
|
|
|
pd.DeliverStopTime = pd.DeliverStopAt.Unix()
|
|
|
+ pd.HaveSize = false
|
|
|
//店铺列表专区商品增加规格显示
|
|
|
if ptype == product_model.SHOP_SALE && product_model.GetProductAttrConfig(pd.RelateProductId) != nil {
|
|
|
-
|
|
|
+ pd.HaveSize = true
|
|
|
list := product_model.GetProductConfigAttrsByPId(pd.RelateProductId)
|
|
|
for _, item := range list {
|
|
|
-
|
|
|
productKeyConfig := product_model.GetProductAttrKey(item.AttrKeyId)
|
|
|
if productKeyConfig != nil {
|
|
|
if item.SizeType == product_model.SIZE_TYPE_1 {
|