
微信小程序
_七七_
这个作者很懒,什么都没留下…
展开
-
uniapp中使用uview2的from表单自定义校验不生效
uniapp中使用uview2的from表单自定义校验不生效(微信小程序)原创 2022-05-31 13:43:01 · 4799 阅读 · 0 评论 -
uniapp小程序提示更新最新版本
在App.vue中<script> export default { onLaunch: function() { uni.removeStorageSync('userInfo'); const updateManager = uni.getUpdateManager(); //本API返回全局唯一的版本更新管理器对象: updateManager,用于管理小程序更新。 updateManager.onCheckForUpdate((res) => { //原创 2022-03-03 09:31:05 · 1743 阅读 · 0 评论 -
微信小程序计时器
wxml: <text class='marright'>{{hours}}:{{minute}}:{{second}}</text>js: page({ data: { hours: '0' + 0, // 时 minute: '0' + 0, // 分 second: '0' + 0 // 秒 }, onLoad: function (options) {原创 2021-08-06 11:43:34 · 465 阅读 · 0 评论 -
uniapp的微信小程序微信授权登录
一、授权用户公开信息 // 授权公开信息 authorization() { uni.getUserProfile({ desc: '授权', success: (res) => { console.log('getUserProfile',res) this.information = true } }); },展示效果:二、获取手机号授权 // 绑定原创 2021-07-27 16:36:24 · 1029 阅读 · 0 评论 -
微信小程序获取当前城市
一、在app.json里面需要配置permission 属性例:"permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" }}如果不写则会有以下提示二、获取微信官方开发文档获取经纬度官方文档链接:https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.htmlw原创 2021-04-29 11:16:08 · 269 阅读 · 0 评论