摘要: 一、获取微信用户绑定的手机号,需先调用login接口 wx.login 成功回调后拿到code,携带参数 code 发送 post 请求到后台拿到openid和session_key var that = this; wx.login({ success(res) { console.log(res 阅读全文
posted @ 2022-03-15 21:53 流弊的小涛 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 一、小程序通过id属性传值 1.当我们在标签上添加id属性进行传值,可以在当前标签添加点击事件来获取id中的值。 <view class="container"> <view class="usermotto"> <!-- 传入普通字符串数值 --> <button class="user-mott 阅读全文
posted @ 2022-03-15 21:36 流弊的小涛 阅读(2214) 评论(0) 推荐(0) 编辑