随笔分类 -  微信小程序

摘要:本章实现的内容:1.微信调后端接口 实现微信小程序渲染页面 2.微信小程序列表页、详情页 后台接口: 路由: //微信小程序 Route::get('Wx','WxController@Wx'); //查询所有数据 Route::get('w_id','WxController@w_id'); // 阅读全文
posted @ 2020-11-24 21:01 满眼都是她 阅读(753) 评论(0) 推荐(0)
摘要:相关链接:微信开发文档 wxml: <button class="fixed-text fixed-button" open-type="share" title="分享" hover-class="none">分享好友</button> js: onShareAppMessage:function 阅读全文
posted @ 2020-11-12 21:47 满眼都是她 阅读(446) 评论(0) 推荐(0)
摘要:一、使用view形式的回到顶部 wxml: <image src='图标' hidden='{{!floorstatus}}' bindtap="goTop" class="goTop"></image> wxss: /* 返回顶部 */ .goTop{ height: 80rpx; width: 阅读全文
posted @ 2020-11-12 21:36 满眼都是她 阅读(118) 评论(0) 推荐(0)
摘要:小程序请求: fangs(){ var th = this; wx.request({ url: 'http://www.zfw.com/api/v1/fangs', //仅为示例,并非真实的接口地址 data: { fangs:[], }, header: { 'content-type': 'a 阅读全文
posted @ 2020-11-12 21:18 满眼都是她 阅读(167) 评论(0) 推荐(0)
摘要:登录流程图: 整理思路: 1. 通过passport,账号密码登录获取token passport配置 2. 利用token拿到oppenid => AppID、AppSecret 、code 前两者是微信小程序开发者获取、code是小程序发送到服务器 小程序发起请求获取token并缓存到小程序: 阅读全文
posted @ 2020-11-12 11:33 满眼都是她 阅读(319) 评论(0) 推荐(1)