- 博客(21)
- 收藏
- 关注
原创 微信小程序+tp6 登录控制
后端代码 public static function memberLoginBusiness($member,$password){ try{ if (time()-Cache::store('redis')->get('time_'.$member) < 60*5){ return jsonCode('10000','账号已锁定'); } $result = Me
2022-03-15 22:07:53
253
原创 微信小程序+tp6 httpt封装
创建 http.jsfunction request(options) { // 请求拦截器 // ... // 1. 加一些统一的参数,或者配置 if (!options.url.startsWith("https://") && !options.url.startsWith("http://")) { options.url = "https://showme2.myhope365.com" + options.url } // 默认的请求头
2022-03-13 20:40:41
381
原创 微信小程序+tp6 发送手机验证码
前端wxml<view class='content'> <form bindsubmit="formSubmit"> <view class='phone-box'> <text class='phone'>手机号</text> <input name="phone" type='number' placeholder="请输入手机号" maxlength='11' name="phone" class='numbe
2022-03-06 19:40:55
406
原创 微信小程序 时间选择器
<picker mode="date" value="{{date1}}" start="2010-01-01" end="2030-12-31" bindchange="bindDateChange"> <view class="form_group"> <text>住房时间:</text> <text class="textss" style="width:460rpx;text-align:left;"&g.
2022-02-15 09:37:00
288
原创 微信小程序+tp6 授权登录 中间键token验证 接口恶意请求
<buttonbindtap="login">授权登录</button>js 代码login(){ wx.getUserProfile({ desc: '获取用户信息', success(userInfo){ let nick_name = userInfo.userInfo.nickName; wx.login({ success (res) { let co..
2022-02-14 16:41:30
1069
原创 微信小程序 防抖
主要我做的是搜索页面引入 Lin UI gei 下来 git clone https://github.com/TaleLin/lin-ui.git自己引入搜索组件/*函数防抖*/ function debounce(fn, interval) { var timer; var gapTime = interval || 1000;//间隔时间,如果interval不传,则默认1000ms return function (...
2022-02-14 14:43:55
528
原创 tp5 远程图片本地化
function test() { if(!file_exists('./uploads/20190513')) mkdir('./uploads/20190513',0777,true); $img = 'https://www.wanmeizy.com/uploads/ueditor/upload/image/20190513/155771589064749921.jpg'; $test = './uploads/'.substr($img,.
2022-02-09 17:00:42
328
原创 微信小程序 导航tabBar切换 滑动效果
.wxml<!-- nav导航 --><view class="goods"> <block wx:for="{{tab}}" wx:key="key"> <view class="{{item.style}}" bindtap="tarClick" data-index="{{index}}">{{item.titcle}}</view> </block></view><!--导航下 视
2022-02-09 16:56:57
1015
原创 微信小程序实现滑动布局
效果展示自己把代码运行一遍 自己看控件布局wxml文件<view class="module-group"> <view class="module-title"> <view class="titlename">电影</view> <!--“更多”点击跳转的--> <navigator class="more">更多</navigator> </view>.
2022-02-09 16:53:24
473
原创 微信小程序+tp6 实现瀑布流刷新
js页面代码Page({ data: { page:1,//页码 movies:[],//即将展示的数据 last_page:'',//最后一页页码 }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) {//页面加载求出第一页数据 let that = this; wx.request({ url: 'http://www.test.com/test'.
2022-02-09 16:48:28
587
原创 tp5 excel导出线上图片示例
public function excel(){ $list = Db::table('news')->select(); //导出的文件名称 $file_name = date('Y-m-d_H:i:s') . '表格' . '.xls'; $PHPExcel=new \PHPExcel(); $PHPSheet = $PHPExcel->getActiveSheet(); $PHPExcel-.
2021-12-02 11:39:40
197
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人