Dragon-v

2021年9月26日

微信小程序+PHP实现文件上传七牛云

摘要: 1.wxml代码: <l-image-picker count="3" bind:linchange="onChangeTap" /> 2.js代码: onChangeTap(e){ //获取所有的图片,类型是一个数组 var image=e.detail.all var _this=this // 阅读全文

posted @ 2021-09-26 20:54 Dragon-v 阅读(538) 评论(0) 推荐(0) 编辑

2021年9月24日

微信小程序获取地理位置

摘要: 1.wxml代码: <input type="text" value="{{home}}" bindtap="home"/> 2.js代码 home(){ var _this = this wx.chooseLocation({ success:function(e){ var home=e.nam 阅读全文

posted @ 2021-09-24 11:17 Dragon-v 阅读(109) 评论(0) 推荐(0) 编辑

2021年9月23日

微信小程序+PHP 实现授权登录

摘要: 1.写wxml页面 <!--前台页面,通过判断决定展示登录还是信息--> <view wx:if="{{isHide}}"> <view wx:if="{{canIUse}}" > <view class='header'> <image src='/image/hhh.jpg'></image> 阅读全文

posted @ 2021-09-23 16:41 Dragon-v 阅读(1559) 评论(0) 推荐(0) 编辑

2021年9月21日

微信小程序+PHP实现上拉刷新

摘要: 1.写wxml代码:(因为这里是测试,所以写的比较简答) <view class="view" wx:for="{{list}}" wx:key="*this"> <view class="view1">{{item.content}}</view> </view> 2.写js代码: // page 阅读全文

posted @ 2021-09-21 20:58 Dragon-v 阅读(66) 评论(0) 推荐(0) 编辑

2021年9月16日

微信小程序实现富文本编辑器

摘要: 1.参考官方文档 https://developers.weixin.qq.com/miniprogram/dev/component/editor.html 在文档最下方有示例代码,如下图: 点击“在开发者工具中预览效果” 2.将示例代码保存至桌面,以便后期操作 3.文件甲中有一下文件,如下图,我 阅读全文

posted @ 2021-09-16 20:26 Dragon-v 阅读(2095) 评论(0) 推荐(0) 编辑

2021年9月13日

微信小程序实现轮播图

摘要: 1.前端wxml代码 <!--index.wxml--> <view> <view class="page-body"> <view class="page-section page-section-spacing swiper" style="white:100%" style="height:2 阅读全文

posted @ 2021-09-13 14:08 Dragon-v 阅读(756) 评论(0) 推荐(0) 编辑

2021年9月2日

PHP TP5 Ajax图片上传

摘要: 1.先写出前端页面 (1).Html代码 <form> <div class="form-group"> <label>商品logo:</label> <input type="file" class="form-control logo" accept="image/gif,image/jpeg, 阅读全文

posted @ 2021-09-02 15:35 Dragon-v 阅读(167) 评论(0) 推荐(0) 编辑
PHP TP5 利用jQuery实现无刷新分页与无刷新搜索

摘要: 1.先将数据完整展示出来 (1)后台代码 public function GoodsShow(){ //每页显示数量 $size=5; $model=new \app\test\model\Goods(); $data=$model->join('type','t_id=type_id')->sel 阅读全文

posted @ 2021-09-02 15:00 Dragon-v 阅读(234) 评论(0) 推荐(0) 编辑

2021年9月1日

jQuery 实现全选全不选

摘要: $('.check_all').change(function () { if ($(this).prop("checked")==true){ var count=$(":checkbox[name='ids']").prop("checked",true); }else{ $(":checkbo 阅读全文

posted @ 2021-09-01 11:25 Dragon-v 阅读(86) 评论(0) 推荐(0) 编辑

2021年8月30日

PHP TP5 实现规格数据排列

摘要: public function spec($spec){ $res=[]; foreach ($spec as $item){ $res[$item['spec_id']]=[ 'spec_id'=>$item['spec_id'], 'spec_name'=>$item['spec_name'], 阅读全文

posted @ 2021-08-30 19:11 Dragon-v 阅读(60) 评论(0) 推荐(0) 编辑