摘要: 首先展示一下效果图: 代码实现: --wxml <view class="bgView flexStandard"> <view class="titleBox"> <view class="titleView"><text class="title">钱包余额</text></view> <vie 阅读全文
posted @ 2021-03-30 19:52 jerry_min 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 1.设计良好的数据表结构,允许部分沉余,尽量避免join查询,提高效率。 2.选择合理的数据表数据类型及存储引擎,适当的添加索引。 3.mysql库主从同步,读写分离. 4.找规律分表,减少单表数据量提升查询速度。 5.添加缓存,比如redis ,memcached 6.将不经常改动的页面静态化,增 阅读全文
posted @ 2021-03-30 19:44 jerry_min 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1.支付采用支付宝沙箱环境消费 首相调用支付宝沙箱环境 点击支付请求 echo "<form id='alipayment' action='/alipay/pagepay/pagepay.php' method='post' style='display: none'> <input id='WI 阅读全文
posted @ 2021-03-29 11:24 jerry_min 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 在添加图片 请求到方法接收 open打开当前的图片路径 text 第一个参数时你要添加的水印是 第二个参数是路径 public function imlist(){ // 获取表单上传文件 例如上传了001.jpg $file = request()->file('img'); // 移动到框架应用 阅读全文
posted @ 2021-03-29 11:07 jerry_min 阅读(128) 评论(0) 推荐(0) 编辑
摘要: html: <div class="row cl" id="app"> <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>小区地址:</label> <div class="formControls col 阅读全文
posted @ 2021-03-19 09:43 jerry_min 阅读(96) 评论(0) 推荐(0) 编辑
摘要: js实现: <script> uploadfiles(2655,"files"); function uploadfiles(ids,folder) { $(function(){ var $list = $("#the_"+ids); $btn = $("#Btn_"+ids); var uplo 阅读全文
posted @ 2021-03-17 10:15 jerry_min 阅读(186) 评论(1) 推荐(0) 编辑
摘要: php实现: public function excel() { //导出 $res = \app\admin\model\book\Book::select(); vendor("PHPExcel.PHPExcel"); $resultPHPExcel = new \PHPExcel(); //设 阅读全文
posted @ 2021-03-17 10:12 jerry_min 阅读(75) 评论(0) 推荐(0) 编辑
摘要: laravel提示错误信息: {{implode($errors->get('name')," ")}} html:代码 <div class="page-container"> <form method="get" onsubmit="return search()"> <div class="t 阅读全文
posted @ 2021-03-17 10:09 jerry_min 阅读(318) 评论(0) 推荐(0) 编辑
摘要: /** 提前声明 ElasticSearch 私有属性 方便以下使用 * @var */ private $es; /** ElasticSearch的前提 下载 composer require elasticsearch/elasticsearch * * Uploads constructor 阅读全文
posted @ 2021-03-17 10:04 jerry_min 阅读(232) 评论(0) 推荐(0) 编辑
摘要: // 异步 webupload 上传图片,压缩,加水印 public function upfile(Request $request) { // header("Content-Type:text/html;charset=UTF-8"); $file = $request->file('file 阅读全文
posted @ 2021-03-17 10:02 jerry_min 阅读(111) 评论(0) 推荐(0) 编辑