abiao лет назад: 4
Родитель
Сommit
3d1db840e7

+ 2 - 2
go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

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