         print(arr!)
         
         var index :Int
-        self.goodsScrollView.contentSize = CGSizeMake((CGFloat(arr!.count)*65), 30)
+        goodsScrollView.contentSize = CGSizeMake((CGFloat(arr!.count)*65), 30)
         for index = 0 ; index < arr!.count ; ++index {
             
             let btn = UIButton(type: .System)

        pramas["page"] = 1
        HttpManager.httpGetRequest(.GET, api_url: API_URL+"/product_list", params: pramas, onSuccess: { (successData) -> Void in
            print("=======\(successData)")
            self.goods.removeAll()
            self.goods = Goods.initWithGoods(successData)
            self.goodsCollectionView.reloadData()
            }) { (failData) -> Void in

            btn.setTitleColor(UIColor.redColor(),forState: .Highlighted)
            btn.tag = ((arr![index]["id"]) as? Int)!
            btn.addTarget(self, action: Selector("tagClick:"), forControlEvents: .TouchUpInside)
            goodsScrollView.addSubview(btn)
        }
    }
    
    //MARK:点击标签
    func tagClick(btn : UIButton){
        print(btn.tag)
        loadProduct(btn.tag)
    }
    
    //MARK:加载商品
