摘要: / / 轮播图的处理 wx.request({ url: 'http://www.zfb.com/images', success: (res)=> { console.log(res.data.data) this.setData({ list:res.data.data }) } }) 阅读全文
posted @ 2021-05-31 00:30 锕果先生 阅读(58) 评论(0) 推荐(0)
摘要: //添加页面 public function index(){ return View::fetch('admin/index'); } //处理添加页面 //获取数据 // 获取表单上传文件 例如上传了001.jpg $key=input('post.key'); $image = $reques 阅读全文
posted @ 2021-05-31 00:24 锕果先生 阅读(592) 评论(0) 推荐(0)
摘要: $params = $request->post(); $file = $request->file('images'); $fileName = \think\facade\Filesystem::disk('public') ->putFile( '/', $file); $params['im 阅读全文
posted @ 2021-05-24 01:29 锕果先生 阅读(465) 评论(0) 推荐(0)
摘要: //php查询数据 static public function selfs($id){ return self::where('id',$id)->first();}//内置验证 $this->validate(request(),[ 'username'=>'required', 'pwd'=> 阅读全文
posted @ 2021-05-13 19:34 锕果先生 阅读(171) 评论(0) 推荐(0)