摘要: https://better-scroll.github.io/docs/zh-CN/guide 阅读全文
posted @ 2024-02-28 10:38 huihuihero 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 问题描述 此组件的获焦和失焦事件,在第一次执行获焦方法后,主动点击失焦。然后再执行获焦方法,会发现本次的获焦方法未生效。流程如下 <uni-easyinput ref="inputElem" v-model="value" /> const inputElem = ref(null) //step1 阅读全文
posted @ 2024-02-22 16:03 huihuihero 阅读(162) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_48674314/article/details/129093224 阅读全文
posted @ 2024-01-30 11:23 huihuihero 阅读(35) 评论(0) 推荐(0) 编辑
摘要: <div class="container"> <div class="item">1</div> <div class="item">2</div> <div class="item">3</div> <div class="item">4</div> <div class="item">5</d 阅读全文
posted @ 2024-01-29 16:49 huihuihero 阅读(12) 评论(0) 推荐(0) 编辑
摘要: cache.js /** * 存储数据 * key: 缓存的键名,必填 * value: 缓存的值,选填 * * when: 缓存的过期时间,选填: * 【1】传入具体秒数时(单位必须为秒),到期后清除; * 【2】传入单词 forever时,永不清除; * 【3】传入单词 once时,获取一次后清 阅读全文
posted @ 2024-01-25 16:34 huihuihero 阅读(33) 评论(0) 推荐(0) 编辑
摘要: request.js import { rootUrl } from "@/config/app-config.js" import handleCache from '@/utils/cache/cache.js'; import { showToast } from "@/utils/vant" 阅读全文
posted @ 2024-01-25 16:30 huihuihero 阅读(88) 评论(0) 推荐(0) 编辑
摘要: bug描述:hbuildx 3.99版本,ios系统:video高度设置若使用rpx,或者使用浮点px如 200.5 px,则会有控制层不弹出的bug。 解决思路:根据屏幕宽度,以及视频宽高比例,计算出video高度的整数px。见下图 阅读全文
posted @ 2024-01-25 16:26 huihuihero 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 效果图 文件图 直接贴代码 emotion.vue <template> <div class="emotion-container beauty-scroll-livechat"> <div class="emotion-btn" @click="toggleEmotionShow"> <span 阅读全文
posted @ 2023-12-28 16:52 huihuihero 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 问题代码如图 bug原因 建了vue2版本和vue3版本的uniapp分别测试,vue3版本的scroll-view存在scroll-into-view不生效的问题,目前未修复(23.12.20) 已找到解决方法: scroll-view 里需要设置 :scroll-with-animation=" 阅读全文
posted @ 2023-12-20 13:30 huihuihero 阅读(270) 评论(0) 推荐(0) 编辑
摘要: export function onReload() { let currentPath = getCurrentPages()?.pop()?.$page?.fullPath || '' if (currentPath) { uni.redirectTo({ url: currentPath }) 阅读全文
posted @ 2023-11-28 09:27 huihuihero 阅读(6) 评论(0) 推荐(0) 编辑