{{switchReceivingFunc(currentObj.sourceType)}}
{{currentObj.money}} {{currentObj.sourceType==12 ||currentObj.sourceType==15 ||currentObj.sourceType==14 ||currentObj.sourceType == 13?'元分红':'个SQT' }}
请当天领取过期归零
// 红包领取弹出框 redEnvelopesClick() { if (this.redEnvelopesList.length > 0) { this.currentObj = this.redEnvelopesList[0] // 跳出红包领取界面 this.$refs.getRedEnvelopes.open() return } uni.showToast({ title: '暂无可领取', icon: 'error' }); }, // 领取红包 getRedEnvelopesFunc() { // 移除第一个 this.redEnvelopesList.shift() // 上传该红包对象 this.$refs.getRedEnvelopes.close() this.removeThisObj(this.currentObj.redPacketId) }, 这里面的代码中的 ref='getRedEnvelopes' 这个属性来控制红包的显示与隐藏 嘛? 是的,代码中的ref属性'getRedEnvelopes'用于控制红包领取弹出框的显示与隐藏。通过调用this.$refs.getRedEnvelopes.open()可以显示弹出框,调用this.$refs.getRedEnvelopes.close()可以隐藏弹出框。 uni-popup组件控制红包领取弹出框显示与隐藏

原文地址: http://www.cveoy.top/t/topic/28I 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录