摘要: 需求: 正常页面: 在路由处增加字段: "mp-weixin": { "pageOrientation": "landscape" //横屏 } 阅读全文
posted @ 2023-10-08 16:32 danmo_xx 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 在unipp小程序开放平台上申请,不申请无法使用 申请成功后,点击详情,appID很重要,微信小程序是写在app.json里,uniapp是写在源码视图里 文档介绍(https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/u 阅读全文
posted @ 2023-09-05 11:43 danmo_xx 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 先上效果图: camera实现官网有详细的介绍 代码实现: flash手电筒 cover-view是扫一扫中间蓝色的横线,不能设置style阴影,会出不来 onScancode扫码成功之后的操作(e.detail.result) <view class="scan-border"> <view st 阅读全文
posted @ 2023-08-31 16:41 danmo_xx 阅读(1600) 评论(0) 推荐(0) 编辑
摘要: 在腾讯地图官网要提前申请key 在微信开放平台要提前申请腾讯地图使用权限 效果图 腾讯官网有详细的介绍,根据步骤下载js文件放在本地,在使用的页面引入即可 template页面:一定要给地图设置宽长度,否不展示 latitude是getLocation获取到的经纬度,也可以是接口返回的经纬度 pol 阅读全文
posted @ 2023-08-31 16:15 danmo_xx 阅读(1762) 评论(0) 推荐(0) 编辑
摘要: 通过v-model实现双向绑定,在data定义carNumberList为空,扫码结果直接赋值即可 问题就是出现在this 阅读全文
posted @ 2023-08-30 11:35 danmo_xx 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 效果图: <view class=""> <view class="spinner"> <view class="spinner-container container1"> <view class="circle1"></view> <view class="circle2"></view> <v 阅读全文
posted @ 2022-12-06 15:54 danmo_xx 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 常用场景:登录时服务协议and隐私政策等 uni.downloadFile({ url: '文件路径(建议使用服务器地址)', filePath: wx.env.USER_DATA_PATH + '/' + '自定义.pdf', //修改打开文件的title success: function(re 阅读全文
posted @ 2022-11-30 14:29 danmo_xx 阅读(1737) 评论(0) 推荐(0) 编辑
摘要: 常使用场景:uniapp用户登录时未勾选服务协议。 阅读全文
posted @ 2022-11-30 14:25 danmo_xx 阅读(362) 评论(0) 推荐(0) 编辑
摘要: wx.chooseMedia 功能描述 拍摄或从手机相册中选择图片或视频 温馨提示:不建议使用:wx.chooseImage,原因:从基础库 2.21.0 开始,本接口停止维护,请使用 wx.chooseMedia 代替 uni.chooseMedia({ count: 1, sourceType: 阅读全文
posted @ 2022-11-23 11:29 danmo_xx 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: wx.requestSubscribeMessage 官网地址:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html#%E8%AE%A2%E9%98%85%E6%B 阅读全文
posted @ 2022-11-18 18:12 danmo_xx 阅读(1006) 评论(0) 推荐(0) 编辑