common\models\Goods::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( )
    public function attributeLabels()
    {
        return ['id' => 'ID', 'name' => '商品名称', 'category_id' => '分类', 'store_id' => '营业点', 'cover' => '封面图片', 'image' => '封面图片', 'photos' => '商品图片', 'price' => '现价', 'price_original' => '原价', 'cost' => '成本价', 'description' => '描述', 'status' => '商品状态', 'surplus' => '库存', 'sales' => '月售', 'unit' => '数量单位', 'is_new' => '是否最新商品', 'is_hot' => '是否热门商品', 'is_promotion' => '是否促销商品', 'created_at' => '创建时间', 'updated_at' => '更新时间'];
    }