摘要: 图片上传与表单内容提交时异步执行,图片先行长传,然后点击提交时表单的内容才执行添加(图片上传是会生成一个id,这是应将id存入缓存中,等表单内容提交时执行一个修改的操作将表单内容保存) 一、文件上传部分(图片) wxml代码 (代码截图与效果图) wxml代码部分: 1 <view class="v 阅读全文
posted @ 2020-12-27 22:14 Conqueror· 阅读(685) 评论(0) 推荐(0) 编辑
摘要: $url="https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code"; $res=\Qiniu\json_decode(file_get_contents($url),true); $userid=Users::where('openid',$res['openid'])->find(); 阅读全文
posted @ 2020-12-27 16:34 Conqueror· 阅读(193) 评论(0) 推荐(0) 编辑