一小时学会微信小程序
摘要:一小时学会微信小程序 目录 一、小程序概要 1.1、发展历史 1.2、小程序的诞生 二、微信小程序介绍 三、开发微信小程序的软件下载与初步配置 3.1、获取微信小程序的AppID 3.2、下载安装微信开发者工具 3.3、创建第一个小程序项目 3.4、小程序项目的基本组成结构 3.5、小程序配置的介绍
阅读全文
posted @
2023-02-04 13:35
最帅爸爸
阅读(565)
推荐(0) 编辑
微信小程序之发起请求
摘要:wx.request({ url: api.api + '/weChat/api/user/myAunt', // 仅为示例,并非真实的接口地址 data: {}, method: 'GET', header: {token:'ad26e36b19fc48df914d3edf27d42ac6'},
阅读全文
posted @
2022-09-21 09:32
最帅爸爸
阅读(28)
推荐(0) 编辑
前端微信登录获取code,userInfo,openid
摘要:getUser(e) { wx.getUserProfile({ desc: '用户完善会员资料', success: res => { let userInfo = res.userInfo; uni.showLoading({ title: '登录中' }); wx.login({ //成功放回
阅读全文
posted @
2022-09-20 09:51
最帅爸爸
阅读(87)
推荐(0) 编辑
微信小程序分享好友,朋友圈
摘要:<template> <view> <button open-type="share">发送给好友</button> </view> </template> <script> export default { data() { return { } }, onLoad(){ wx.showShare
阅读全文
posted @
2022-09-17 22:27
最帅爸爸
阅读(98)
推荐(0) 编辑
小程序uni-app发起网络异步请求
摘要:// uni.request({ // url: 'api/boxs/search', // // 使用监听函数防止this指向改变 // success: res => { // // 判断是否成功返回数据 // if (res.data.code != 200) return uni.$show
阅读全文
posted @
2022-08-14 17:26
最帅爸爸
阅读(226)
推荐(0) 编辑