示例#1
0
    def get(self, *args, **kwargs):
        # 数据库中获取数据,显示在页面

        merchant_id = 14
        product_id = self.get_argument('productid', None)
        service = ProductService(ProductRepository())
        series = service.get_product_detail(merchant_id, product_id)

        self.render('Product/JdProductDetail.html', product_id=product_id)
示例#2
0
 def get(self, *args, **kwargs):
     merchant_id = 6
     product_id = self.get_argument("product_id", None)
     service = ProductService(ProductRepository())
     series = service.get_product_detail(merchant_id, product_id)
     self.render("Product/JdProductDetail.html", series=series)