getFartherList(); $this->assign('fartherProduct', $fartherProduct); $fartherId = input('get.fartherId') ?? $fartherProduct[0]->product_id; $this->assign('id', $fartherId); $sonProductWhere['product_pid'] = $fartherId; $sonProduct = $productModel->getSonList($sonProductWhere); $this->assign('sonProduct', $sonProduct); $this->assign('show_page', $sonProduct->render()); return $this->fetch(); } }