- wx.loadFontFace问题?
wx.loadFontFace({ family: 'Resource Han Rounded CN Medium', source: 'url("https://www.ecotrackbracelets.com/Animal_Bracelet/sys/common/static/wechatResource/ResourceHanRoundedCN-Medium.ttf")', global:true, success(res) { console.log("success "+res.status) console.log("success "+JSON.stringify(res)) }, fail: function(res) { console.log("fail "+res.status) }, complete: function(res) { console.log("complete "+res.status) } }); }, 上面的代码已经加入download域名,调试时报错Failed to load font https://www.ecotrackbracelets.com/Animal_Bracelet/sys/common/static/wechatResource/ResourceHanRoundedCN-Medium.ttf net::ERR_CACHE_MISS (env: Windows,mp,1.06.2409140; lib: 3.8.6) 后台服务器报错[图片] 请问下是哪儿的问题?
06-09 - animation在list里单个item动画不显示?
<view class="bar-container"> <view class="moving-bar {{ item.isOpen ? 'running' : 'paused' }}" wx:for="{{item.bars}}" wx:key="index" style="animation-delay: {{item.delay}}s;"> </view> <text>{{item.isOpen}}</text> </view> .bar-container { height: 40px; /* 使容器充满屏幕 */ display: flex; width: calc(100% - 140rpx); justify-content: space-around; /* 竖条之间均匀分布 */ align-items: center; /* 竖条从中间开始 */ margin:3px 10px; background-color: #AAE9E8; border-radius: 50px; padding: 0px 48px 0px 18px; } .moving-bar { width: 2px; height: 13px; background-color: #11AEAC; animation: moveUpDown 0.8s ease-in-out infinite; } .running { animation-play-state: running; } .paused { animation-play-state: paused; } @keyframes moveUpDown { 0% { height: 10px; /* 起始高度 */ /* margin-top: -6px; */ } 50% { height: 20px; /* 中间高度 */ /* margin-top: -8px; */ } 100% { height: 10px; /* 结束高度 */ /* margin-top: -6px; */ } } const soundList = this.data.soundList; // 设置当前音频为关闭状态 soundList[index].isOpen = true; this.setData({ isPlay: true, soundList: soundList, // 更新 soundList }, () => { console.log('Updated soundList:', this.data.soundList); // 确认更新 console.log(' ',this.data.soundList[index].isOpen); }); }); 我在使用moving-bar时,单个动画可以实现。放到list里不可行。所有item要么执行动画,要么都不执行。isOpen的值变化在单个item里不执行动画。怎么回事
05-27 - navigateToMiniprogram使用问题?
应用场景是在小程序使用webview加载的h5页面里调用wx.miniProgram.navigateToMiniprogram时,没有响应。在小程序页面使用wx。navigateToMiniprogram是可以打开其它小程序的。请问下是怎么回事?
05-21 - 获取不到验证码
西班牙手机,获取不到短信验证码。微信小程序。微信可以登录。需要怎么排查,请给予联系方式或解决方案。 <button class="login-btn" bindtap="login" open-type="getPhoneNumber" bindgetphonenumber="handleGetPhoneNumber" >登录</button> handleGetPhoneNumber (e) { //手机号快速验证 console.log(e.detail.code) // 动态令牌 console.log(e.detail.errMsg) // 回调信息(成功失败都会返回) console.log(e.detail.errno) // 错误码(失败时返回) this._getWxCode(e.detail.code) },
03-12 - AR图像识别 首次加载问题
首次进入页面加载时白屏状态。下载完模型后才恢复正常。 <kivicube-scene wx:if="{{sceneShow}}" class="kivicube" scene-id="{{sceneId}}" camera-position="{{cameraPosition}}" bindready="ready" binderror="error" binddownloadAssetStart="downloadStart" binddownloadAssetProgress="downloadProgress" binddownloadAssetEnd="downloadEnd" bindloadSceneStart="loadStart" bindloadSceneEnd="loadEnd" bindsceneStart="sceneStart" bindopenUrl="openUrl" bindphoto="photo" /> onLoad: function (options) { let id = options.id; this.setData({ sceneId: id }); // 开始加载状态 this.setData({ isLoading: true }); downloadSceneAsset(this.data.sceneId, (progress) => { console.log("progress", progress); }).then(() => { this.setData({ isLoading: false, isSceneReady: true }); // 下载完成,更新状态 }).catch((error) => { this.setData({ isLoading: false, isSceneReady: false }); // 下载失败,更新状态 }); }, ready({ detail }) { console.log("当前场景基础信息", detail); if (detail && detail.sceneInfo) { this.scene = detail.sceneInfo; // 确保正确获取场景实例 } }, downloadStart() {}, downloadProgress() {}, downloadEnd() { this.setData({ isSceneReady: true // 下载完成后设置场景准备好 }); }, sceneStart() { wx.showToast({ title: "可开始体验场景", icon: "none" }); }, photo({ detail: photoPath }) { wx.showLoading({ title: "拍照中", mask: true, }); wx.saveImageToPhotosAlbum({ filePath: photoPath, success() { wx.hideLoading(); console.log("保存照片成功"); }, fail(e) { wx.hideLoading(); console.error("保存照片失败", e); }, }); }, onUnload() {},
03-04 - 微信小程序跳转微信小店,显示未发布
小程序跳转微信小店,提示小程序未发布,
2024-12-23 - wx.previewImage 预览图片 部分手机黑屏?
华为手机mate 30 微信版本8.0.54 图片链接https://www.ecotrackbracelets.com/Animal_Bracelet/sys/common/static/animalLetterFile/12月16日(3)_1734335652098.gif 以及华为nova 9
2024-12-19