上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页
摘要: 1.1.1 查询所有数据 $selData = DB::table('article')->get(); 1.1.2 单条件查询 #DB::table('表名')->where('字段','表达式','数据')->get(); $selData = DB::table('article')->whe 阅读全文
posted @ 2021-12-14 09:59 王越666 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 将数据拼装成如下格式 id 奖品(prize) 概率(rate) 数量(num) 已抽数量(prize_num) 1 一等奖 10% 10 0 2 二等奖 15% 20 0 3 三等奖 35% 50 0 根据如上实现抽奖如下($prizes表示上面表格数据) public function prom 阅读全文
posted @ 2021-12-14 09:13 王越666 阅读(200) 评论(0) 推荐(0) 编辑
摘要: html:页面 首先给下拉框一个页面改变事件,将下拉框的值发送至后台,进行查询 <select name="interest" id="serarch" onchange="serch()" class="input-text" > <option value="1">妇产科</option> <o 阅读全文
posted @ 2021-12-13 21:36 王越666 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1:laravel安装框架 composer create-project --prefer-dist laravel/laravel 项目名称 2:配置数据库 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=dcat-a 阅读全文
posted @ 2021-12-13 17:07 王越666 阅读(373) 评论(0) 推荐(0) 编辑
摘要: https://developer.qiniu.com/fusion/1228/fusion-quick-start https://blog.csdn.net/qq_27292113/article/details/72722958 阅读全文
posted @ 2021-12-12 20:04 王越666 阅读(24) 评论(0) 推荐(0) 编辑
摘要: HTML代码: <form class="layui-form" action="{{route('doctor.store')}}" method="post" enctype="multipart/form-data" style="width: 500px"> <div class="layu 阅读全文
posted @ 2021-12-12 15:42 王越666 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 小程序utlis新建文件tool.js 2:加入以下代码: /*函数节流*/ function throttle(fn, interval) { var enterTime = 0;//触发的时间 var gapTime = interval || 300 ;//间隔时间,如果interval不传, 阅读全文
posted @ 2021-12-11 22:03 王越666 阅读(474) 评论(0) 推荐(0) 编辑
摘要: public function sendCode(Request $request) { $phone = $request->get('phone'); if(empty($phone)){ return ['code'=>10001, 'msg' => '手机号不能为空', 'data'=> [ 阅读全文
posted @ 2021-12-11 21:48 王越666 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 参考博客: 王峰的token https://blog.csdn.net/qq_42839386/article/details/118279530 1:composer 下载 composer require firebase/php-jwt 2:手动新建目录app\Service 3:servi 阅读全文
posted @ 2021-12-11 21:41 王越666 阅读(620) 评论(0) 推荐(0) 编辑
摘要: wxml: <!--pages/good_index/good_index.wxml--> <view class='list'> <block wx:for='{{info}}' wx:key='list' wx:for-item="item"> <view class="list_item"> 阅读全文
posted @ 2021-12-11 20:36 王越666 阅读(311) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页