success('请求成功'); } /** * 轮播图 * */ public function images(){ $home_images=new HomeImages(); $get_list=$home_images->where('address',1)->with('product')->where('status','1')->order('weigh desc,id desc')->select(); $this->result('获取成功', $get_list, 1); } /** * 首页弹窗 * */ public function images_tan(){ $home_images=new HomeImages(); $get_list=$home_images->where('address',2)->with('product')->where('status','1')->order('weigh desc,id desc')->find(); $this->result('获取成功', $get_list, 1); } /** * 商品推荐图 * */ public function images_pro(){ $home_images=new HomeImages(); $get_list=$home_images->where('address',3)->with('product')->where('status','1')->order('weigh desc,id desc')->limit('4')->select(); $this->result('获取成功', $get_list, 1); } /** * 商品推荐图 * */ public function images_h5(){ $home_images=new HomeImages(); $get_list=$home_images->where('address',4)->where('status','1')->field('image')->order('weigh desc,id desc')->select(); $this->result('获取成功', $get_list, 1); } /** * 关于我们 * */ public function aboutus(){ $home_images=new Config(); $get_list=$home_images->where('name','aboutus')->field('value')->find(); $this->result('获取成功', $get_list, 1); } /** * 报告中心 * */ public function product_list(){ $chanpin=new Chanpin(); $get_list=$chanpin->where('status','1')->order('id desc')->select(); $this->result('获取成功', $get_list, 1); } /** * g购物车须知 * */ public function car_info(){ $home_images=new Config(); $get_list=$home_images->where('name','car_info')->field('value')->find(); $this->result('获取成功', $get_list, 1); } /** * g购物车须知 * */ public function is_show_index(){ $array=[]; $array['0']['name']='二手车'; $array['0']['img']='/static/images/icon_buycar@2x.png'; $array['0']['is_show']=1; $array['0']['url']='/pages/shop/old_car'; $array['1']['name']='我要卖车'; $array['1']['img']='/static/images/icon_carsale@2x.png'; $array['1']['is_show']=1; $array['1']['url']='./sell'; $array['2']['name']='维保查询';//打开需要改分类数据库---- $array['2']['img']='/static/images/icon_insure@2x.png'; $array['2']['is_show']=1; $array['2']['url']='/pages/mine/weibao'; $array['3']['name']='车辆检测'; $array['3']['img']='/static/images/icon_seektopurchase@2x.png'; $array['3']['is_show']=1; $array['3']['url']='/pages/index/jiance'; $array['4']['name']='商家入驻'; $array['4']['img']='/static/images/icon_businesssettlement@2x.png'; $array['4']['is_show']=1; $array['4']['url']='./intoshop'; $array['5']['name']='车抵贷款'; $array['5']['img']='/static/images/icon_mortgage@2x.png'; $array['5']['is_show']=1; $array['5']['url']='./loan'; $array['6']['name']='新车'; $array['6']['img']='/static/images/icon_newcar@2x.png'; $array['6']['is_show']=1; $array['6']['url']='/pages/shop/new_car'; $array['7']['name']='汽车分期'; $array['7']['img']='/static/images/icon_bystages@2x.png'; $array['7']['is_show']=1; $array['7']['url']='../mine/jisuanqi'; $array['8']['name']='商城'; $array['8']['img']='/static/images/icon_automobile@2x.png'; $array['8']['is_show']=1; $array['8']['url']='/pages/mine/shop'; $array['9']['name']='购车需知'; $array['9']['img']='/static/images/icon_carpurchasepoints@2x.png'; $array['9']['is_show']=1; $array['9']['url']='./xuzhi'; $this->result('获取成功', $array, 1); } /** * g购物车须知 * */ public function is_pay(){ $array=['is_show'=>1,'is_show_shop'=>1,'is_show_article'=>1]; $this->result('是否支付,店铺是否开启', $array, 1); } }