userId; $params['user_info'] = $this->userInfo; $result = PcLogic::commonData($params); return JsonService::data($result); } /** * @notes 获取商品详情 * @author Tab * @date 2021/11/30 11:11 */ public function goodsDetail() { $params = (new PcValidate())->goCheck('goodsDetail'); $params['user_id'] = $this->userId; $result = PcLogic::goodsDetail($params); return JsonService::data($result); } /** * @notes 获取商品评论 * @return \think\response\Json * @author Tab * @date 2021/11/30 11:57 */ public function goodsCommentCategory() { $params = (new PcValidate())->goCheck('goodsCommentCategory'); $result = PcLogic::goodsCommentCategory($params); return JsonService::data($result); } /** * @notes 获取商品评论列表 * @return \think\response\Json * @author Tab * @date 2021/11/30 14:17 */ public function goodsCommentLists() { return JsonService::dataLists(new GoodsCommentLists()); } /** * @notes 设置用户信息 * @author Tab * @date 2021/12/2 16:43 */ public function setUserInfo() { $params = (new PcValidate())->post()->goCheck('setUserInfo'); $params['user_id'] = $this->userId; $result = PcLogic::setUserInfo($params); if ($result) { return JsonService::success('修改成功'); } return JsonService::fail(PcLogic::getError()); } /** * @notes 售后申请页信息 * @author Tab * @date 2021/12/3 15:09 */ public function afterSaleApplyPage() { $params = (new PcValidate())->goCheck('afterSaleApplyPage'); $result = PcLogic::afterSaleApplyPage($params); return JsonService::data($result); } /** * @notes 获取页面 * @return \think\response\Json * @author cjhao * @date 2021/12/6 18:48 */ public function getPage() { $type = $this->request->get('type',PcDecorateThemePageEnum::TYPE_HOME); $result = (new PcLogic)->getPage($type); return JsonService::data($result); } }