摘要: // 第一天$start = date('Y-m-01', time()); echo $start; // 最后一天 $end = date('Y-m-d',strtotime("$start +1 months-1 day")); echo $end; 阅读全文
posted @ 2020-08-14 11:40 糖糖Y 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 效果图 文件夹列表 popup.wxml <view class="wx-popup" hidden="{{flag}}"> <view class='popup-container'> <view class="wx-popup-title">{{title}}</view> <view clas 阅读全文
posted @ 2020-08-13 10:58 糖糖Y 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: index.wxml <view class="container"> <view class="matter"> <image wx:for="{{info}}" src="{{item.pic}}" style="width: {{imagewidth}}px; height: {{imageh 阅读全文
posted @ 2020-08-13 10:41 糖糖Y 阅读(1900) 评论(0) 推荐(0) 编辑
摘要: wxml <image wx:for="{{info}}" src="{{item.pic}}" bindtap="preview" data-list="{{item.pic}}" data-src="{{item.pic}}"></image> js Page({ //图片预览 preview: 阅读全文
posted @ 2020-08-13 09:06 糖糖Y 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <div class="mobile"></div> 1 .mobile{ 2 width: 360px; 3 height: 710px; 4 background: url(/static/backend/image/bgiphone2.jpg); 5 background-repeat: no 阅读全文
posted @ 2020-08-13 08:52 糖糖Y 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 页面使用form表单,button放在form表单中,没有设置type类型,默认为submit提交,所有打开弹窗的时候就会出现一闪而过就消失的问题。 解决方法:给button添加 type='button' 阅读全文
posted @ 2020-08-11 15:52 糖糖Y 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 class IndexController extends Controller 4 { 5 public function index(Request $request){ 6 $course_id = $request->input("course_id"); 7 $li 阅读全文
posted @ 2020-08-11 15:48 糖糖Y 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 $arr = [ 4 [ 5 'id'=>1, 6 'name'=>'Tom' 7 ], 8 [ 9 'id'=>2, 10 'name'=>'Tom' 11 ], 12 [ 13 'id'=>3, 14 'name'=>'Tom' 15 ], 16 [ 17 'id'=>4 阅读全文
posted @ 2020-08-07 13:29 糖糖Y 阅读(2423) 评论(0) 推荐(0) 编辑
摘要: wxml页面: 1 <view class="container"> 2 <view wx:for="{{info}}" data-index="{{index}}" class="card" id="{{item.id}}" style="position: absolute; left:{{it 阅读全文
posted @ 2020-08-07 09:40 糖糖Y 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 效果图: HTML页面代码 1 <div class="layui-form-item"> 2 <label class="layui-form-label">收货地址</label> 3 <div class="layui-input-inline" style="width: 20%;"> 4 阅读全文
posted @ 2020-08-07 09:16 糖糖Y 阅读(613) 评论(0) 推荐(0) 编辑