上一页 1 2 3 4 5 6 ··· 28 下一页
摘要: 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:29 huihuihero 阅读(422) 评论(0) 推荐(0) 编辑
摘要: bug描述:hbuildx 3.99版本,ios系统:video高度设置若使用rpx,或者使用浮点px如 200.5 px,则会有控制层不弹出的bug。 解决思路:根据屏幕宽度,以及视频宽高比例,计算出video高度的整数px。见下图 阅读全文
posted @ 2024-01-25 16:26 huihuihero 阅读(74) 评论(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 阅读(398) 评论(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 阅读(748) 评论(0) 推荐(0) 编辑
摘要: export function onReload() { let currentPath = getCurrentPages()?.pop()?.$page?.fullPath || '' if (currentPath) { uni.redirectTo({ url: currentPath }) 阅读全文
posted @ 2023-11-28 09:27 huihuihero 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 终版:cache.js /** * 存储数据 * key: 缓存的键名,必填 * value: 缓存的值,选填 * * when: 缓存的过期时间,选填: * 【1】传入具体秒数时(单位必须为秒),到期后清除; * 【2】传入单词 forever时,永不清除; * 【3】传其他值或不传值时,App关 阅读全文
posted @ 2023-11-24 15:23 huihuihero 阅读(450) 评论(0) 推荐(0) 编辑
摘要: onLoad(){ // #ifdef APP-PLUS var height = 0; uni.getSystemInfo({ success: (sysinfo) => { height = sysinfo.windowHeight; }, complete: () => {} }); var 阅读全文
posted @ 2023-11-22 16:41 huihuihero 阅读(155) 评论(0) 推荐(0) 编辑
摘要: driver.js(推荐) https://driverjs.com/ vue-tour https://pulsardev.github.io/vue-tour/ intro.js https://introjs.com/docs/ 博客:https://blog.csdn.net/weixin_ 阅读全文
posted @ 2023-10-09 15:47 huihuihero 阅读(94) 评论(0) 推荐(0) 编辑
摘要: /** * 获取视频时长,单位s * how to use * getVideoDuration('https://xx.xxx.mp4').then(res=>{ * console.log("视频时长",res) * }) */ export function getVideoDuration( 阅读全文
posted @ 2023-09-18 14:34 huihuihero 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 移动端项目配置:在index.html里添加以下代码即可 <script> let sUserAgent = navigator.userAgent.toLowerCase(); let isIpad = sUserAgent.match(/ipad/i) == "ipad"; let isIpho 阅读全文
posted @ 2023-09-04 11:05 huihuihero 阅读(76) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 28 下一页