摘要: 原因:跳转到未渲染过的页面时,页面还没渲染就进行赋值操作,所以赋值不上去。 如果往后跳转,可以使用 uni.$emit和uni.$on页面传值。即uni.navigateBack({delta:1}),尽量不要使用uni.navigateTo(会造成页面重叠)。 能够接收到数据并赋值。 解决办法:使 阅读全文
posted @ 2023-08-25 09:14 芒果不忙- 阅读(964) 评论(0) 推荐(0)
摘要: deep(data){ data.forEach(item=>{ console.log(item) if(item.children){ this.deep(item.children) } if(!item.children||!item.children.length||item.childr 阅读全文
posted @ 2023-08-24 10:20 芒果不忙- 阅读(32) 评论(0) 推荐(0)
摘要: computed: { _searchForm () { return JSON.parse(JSON.stringify(this.searchForm)) }},watch: { _searchForm: { handler: function (newVal, oldVal) { if (ne 阅读全文
posted @ 2023-08-19 11:11 芒果不忙- 阅读(86) 评论(0) 推荐(0)
摘要: duration (val) { let h = parseInt(val / 60 / 60 % 24) h = h < 10 ? '0' + h : h let m = parseInt(val / 60 % 60) m = m < 10 ? '0' + m : m let s = parseI 阅读全文
posted @ 2023-08-19 11:07 芒果不忙- 阅读(105) 评论(0) 推荐(0)
摘要: const arr = [ { label: '2', value: '2' }, { label: '1', value: '1' }, { label: '3', value: '3' } ] // 把value=1和value=2的数据筛掉 let newArr = arr.filter(op 阅读全文
posted @ 2023-08-18 13:32 芒果不忙- 阅读(182) 评论(0) 推荐(0)
摘要: 密钥对生成 http://web.chacuo.net/netrsakeypair const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' + '2iRe41HdTNF8RUhNnH 阅读全文
posted @ 2023-02-17 13:36 芒果不忙- 阅读(501) 评论(0) 推荐(0)
摘要: screen () { const element = document.documentElement; if (this.fullscreen) { // 退出全屏 if (!document.exitFullscreen && document.exitFullscreen) { docume 阅读全文
posted @ 2023-02-17 09:33 芒果不忙- 阅读(704) 评论(0) 推荐(0)
摘要: 建立文件夹 common.css( src-assets-style-common.css)@import url('https://at.alicdn.com/t/font_2595646_76zzktmge22.css');//引入自己某个项目的iconfont图标库//记得引入scss bod 阅读全文
posted @ 2023-02-09 13:41 芒果不忙- 阅读(135) 评论(0) 推荐(0)