- wx.chooseMessageFile选择大文件,连续选择第三次,接口返回的undifined?
const res = await wx.chooseMessageFile({ count: 1, type: "file", extension: ["mp3", "wav", "m4a"], timestamp: timestamp, }); if (!res || !res.tempFiles || res.tempFiles.length === 0) { throw new Error("未选择文件或选择被取消"); } const tempFile = res.tempFiles[0]; console.log("选择的文件:", tempFile); 多次选择大文件,第三次和之后都是返回的undefined
07-16 - input组件 cursor-color 属性设置光标真机不生效?开发工具是生效的。
<input class="nameInput" type="text" v-model="formData.realname" placeholder="请输入姓名" cursor-color="#ffffff" /> 如果这个属性用不了,有其他方案代替吗
07-15 - 小程序webview跳转到微信公共号文章,配置不了官业务域名,有什么其他实现方案?
// 点击轮播图 async function handleSwiperFn(url: string) { console.log(url, "轮播图跳转链接"); // if (!url) { // uni.showToast({ title: "链接地址为空", icon: "none" }); // return; // } // if (!url.includes("https://dev-remix.midiplus.com")) { // uni.showToast({ title: "非公众号链接", icon: "none" }); // return; // } const wechatArticleUrl = "https://mp.weixin.qq.com/s/X258_Vu5Ibm9CIO7c0SgCA"; uni.navigateTo({ url: `/pages/webView/webView?url=${encodeURIComponent(wechatArticleUrl)}`, }); } webView页面实现跳转地址 onLoad((options) => { if (options.url) { // 解码URL并添加微信通用参数 console.log(options.url, "传递的链接地址"); encodedUrl.value = decodeURIComponent(options.url); } else { uni.showToast({ title: "没有跳转地址链接!", icon: "none", }); uni.navigateBack(); } });
07-11 - wx.previewImage 微信开发工具可以预览,手机预览和真机测试一直转圈加载不出来?
wx.previewImage,微信版本3.8.2,手机型号小米,预览一直转圈加载不出来, 使用本地下载预览,真机也是加载不出来,服务端返回的图片地址https://test-mp.midiplus.com/storage/public:MjAyNC8wNS8xNS9ac08yS2xuR29JaW10ZlVYcGlDbnhWdjB4QXpBd0VlWUNRMG11UWJkUllaUHFaM0l5YjdoYkFzR1lJVThRaUFqLndlYnA=
05-07