后 navigationStyle default为什么失效 [图片]
navigateTo 跳转到页面之后 navigationStyle default为什么失效?[图片] 这个是跳转到mynews页面 app.json里是custom [图片] mynews里是default [图片] 但是 在开发者工具里还是 [图片] 胶囊挡住了 不是default的样式
2023-09-09[图片][图片]怎么解决得呀 我的也不生效
使用 tdesign 组件库的 t-input 组件无法正常调用 bindinput 事件函数?如标题,使用组件库时无法触发 bindinput 事件,使用原生 input 组件没有问题
2023-08-01[图片]这两个值不相等 看起来 就是 [图片]滑块 和鼠标的位置不一样
微信小程序的触摸事件,尤其是bindtouchmove的设计问题- 当前 Bug 的表现(不敢说是bug,就是觉得有点奇怪) 当一个触摸滑动事件进行的时候,有些奇怪 用图片说明下。 [图片] 1 我们这里面一共有35个view。 现在我们用鼠标滑动。方向大概是这样的 [图片] 但是我发现在touchMove的时候获得的targetId 一直是1,也就是它。 [图片] 一直是touchStart的那个View的Id,这个在设计上是有什么考虑吗? 贴下代码和log; 代码:[图片] [图片] - 预期表现 能不能返回当前滑动到的view 的Id?
2020-08-04怎么解决的呢
usingComponents 引入页面onLoad未执行- 当前 Bug 的表现(可附上截图) usingComponents 引入页面onLoad未执行 - 预期表现 onLoad: function(options) { console.log(111112); }, - 复现路径 /pages/landlord/myHouse/myHouse - 提供一个最简复现 Demo index.wxml [代码]<[代码][代码]myHouse[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'myHouse'}}"[代码][代码]></[代码][代码]myHouse[代码][代码]>[代码][代码]<[代码][代码]contract[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'contract'}}"[代码][代码]></[代码][代码]contract[代码][代码]>[代码][代码]<[代码][代码]houseControl[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'houseControl'}}"[代码][代码]></[代码][代码]houseControl[代码][代码]>[代码][代码]<[代码][代码]rent[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'rent'}}"[代码][代码]></[代码][代码]rent[代码][代码]>[代码][代码]<[代码][代码]personal[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{PageCur == 'personal'}}"[代码][代码]></[代码][代码]personal[代码][代码]>[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"cu-bar tabbar shadow foot"[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"myHouse"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/myHouse{{PageCur=='myHouse'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]" {{PageCur=='myHouse'?'text-green':'text-bar'}}"[代码][代码]>我的房屋</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"contract"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/contract{{PageCur=='contract'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='contract'?'text-green':'text-bar'}}"[代码][代码]>合同管理</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"houseControl"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/houseControl{{PageCur=='houseControl'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='houseControl'?'text-green':'text-bar'}}"[代码][代码]>房控</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"rent"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/rent{{PageCur=='rent'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='rent'?'text-green':'text-bar'}}"[代码][代码]>收租</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"action"[代码] [代码]bindtap[代码][代码]=[代码][代码]"NavChange"[代码] [代码]data-cur[代码][代码]=[代码][代码]"personal"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'cuIcon-cu-image'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]image[代码] [代码]src[代码][代码]=[代码][代码]"/images/icon/personal{{PageCur=='personal'?'_cur':''}}.png"[代码][代码]></[代码][代码]image[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"{{PageCur=='personal'?'text-green':'text-bar'}}"[代码][代码]>个人中心</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码]</[代码][代码]view[代码][代码]>[代码]index.json引入相关页面 [代码]{[代码][代码] [代码][代码]"usingComponents"[代码][代码]: {[代码][代码] [代码][代码]"myHouse"[代码][代码]: [代码][代码]"/pages/landlord/myHouse/myHouse"[代码][代码],[代码][代码] [代码][代码]"contract"[代码][代码]: [代码][代码]"/pages/landlord/contract/contract"[代码][代码],[代码][代码] [代码][代码]"houseControl"[代码][代码]: [代码][代码]"/pages/landlord/houseControl/houseControl"[代码][代码],[代码][代码] [代码][代码]"rent"[代码][代码]: [代码][代码]"/pages/landlord/rent/rent"[代码][代码],[代码][代码] [代码][代码]"personal"[代码][代码]: [代码][代码]"/pages/landlord/personal/personal"[代码][代码] [代码][代码]}[代码][代码]}[代码]index.js [代码]const app = getApp();[代码] [代码]Page({[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 页面的初始数据[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]PageCur: [代码][代码]'myHouse'[代码][代码],[代码][代码] [代码][代码]// height: app.globalData.height * 2 + 24,[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 生命周期函数--监听页面加载[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码](options) {[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 页面方法[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]NavChange(e) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]PageCur: e.currentTarget.dataset.cur[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onShareAppMessage() {[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'我的房屋'[代码][代码],[代码][代码] [代码][代码]// imageUrl: '/images/share.jpg',[代码][代码] [代码][代码]path: [代码][代码]'pages/landlord/myHouse/myHouse'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码] [代码]})[代码] 页面如下 当加载页面 myHouse 在myHouse 页面 onLoad方法却未执行 这个是为什么了 如何调用onload呢
2020-07-31什么时候 能够解决呢
npm导入 crypto.js报死循环Maximum call stack size exceed?[图片]这是独立的一个js,引入了npm包 crypto.js, [图片]在login内引入cropt.js文件,就会报错 [图片] [图片]把引入包注释了就不报错了 求求各位大佬给个答案把
2020-02-21怎么解决的呀 急
npm 包引入后导致循环调用小程序里引入 npm 包后,上线后小程序一直报错 Maximum call stack size exceeded 是不是引入的包里面造成的循环? [代码] [代码] [代码]const CryptoJs = require('crypto-js')[代码] [代码] [代码] [代码]const key = CryptoJS.enc.Utf8.parse(xxxx)[代码] [代码] [代码][代码]if[代码] [代码](url && url.indexOf(xxx) >= 0) {[代码][代码] [代码][代码]let decRes = CryptoJS.AES.decrypt(res.data, key, {[代码][代码] [代码][代码]mode: CryptoJS.mode.ECB,[代码][代码] [代码][代码]padding: CryptoJS.pad.Pkcs7[代码][代码] [代码][代码]})[代码][代码] [代码][代码]decRes = decRes.toString(CryptoJS.enc.Utf8)[代码] [代码] [代码][代码]return[代码] [代码]decRes[代码][代码] [代码][代码]}[代码] 经过错误收集,全部是安卓手机的报错。是不是安卓手机不支持引入 npm 包加载呢? [图片] [图片]
2020-02-21