uniapp
diangedan
这个作者很懒,什么都没留下…
展开
-
uni.showLoading代替
loading原创 2022-10-28 09:12:53 · 431 阅读 · 0 评论 -
计算scroll-view高度
滚动高度原创 2022-10-21 11:17:47 · 418 阅读 · 0 评论 -
uniCloud 入门前端数据库
云存储原创 2022-08-19 18:15:20 · 1627 阅读 · 1 评论 -
uniCloud 云函数
云函数原创 2022-08-19 16:03:45 · 1606 阅读 · 0 评论 -
uni 热更新
热更新原创 2022-06-27 14:49:06 · 90 阅读 · 0 评论 -
uniapp 热更新后台管理
热更新 4. 在中添加以下配置运行项目到Chrome原创 2022-06-21 10:15:22 · 815 阅读 · 0 评论 -
IOS打开文件标题乱码
previewFile(item) { // this.previewFileBtn(item.url, item.fileName, (err) => { this.$api.msg(err) }) const _self = this upload.previewFile(item.fileUrl, function(err) { _self.$api.msg(err) }, item.fileName) }const.原创 2022-01-24 18:09:47 · 2759 阅读 · 0 评论 -
部分机型拍照闪退 或者 无法唤起相机
const takePic = async(num = 1) => { const res = await requestPermissions(readPic) if (res && res.success) { const [err, data] = await uni.chooseImage({ count: num, sizeType: ['original', 'compressed'] // 可以指定是原图还是压缩图,默认二者都有.原创 2021-11-15 10:17:02 · 435 阅读 · 0 评论 -
兼容打电话api
export const makePhone = phoneNumber => { // #ifdef APP-PLUS if (uni.getSystemInfoSync().platform === 'android') { plus.device.dial(phoneNumber, false) } else { uni.makePhoneCall({ phoneNumber }) } // #endif // #ifndef APP-PLUS un.原创 2021-11-15 09:48:27 · 140 阅读 · 0 评论 -
兼容某些机型不显示 toast
const msg = (title, duration = 1500, mask = false, icon = 'none') => { if (Boolean(title) === false) { return } uni.showToast({ title, duration, mask, icon })}原创 2021-11-15 09:46:02 · 259 阅读 · 0 评论