1.0.0 • Published 2 years ago

miniprogram-l v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Page({ handleClick() { console.log('handleClick') },

handleRandom() { const max = 100 const min = 0 this.setData({ val: Math.floor(Math.random() * (max - min + 1) - 1) }) },

handlePopup() { this.popup.showPopup() },

onReady() { // 获得 popup 组件 this.popup = this.selectComponent('#popup') },

// 取消事件 _error() { console.log('你点击了取消') this.popup.hidePopup() }, // 确认事件 _success() { console.log('你点击了确定') this.popup.hidePopup() },

data: { val: 30, myColors: { percent: 50, color: '#67C23A' }, { percent: 80, color: '#E6A23C' }, { percent: 100, color: '#F56C6C' } }, })