12345678910111213141516171819202122232425262728293031323334353637 |
- import ad from '../index/ad'
- ad({
- data: {
- right: [{
- text: 'Cancel',
- style: 'background-color: #ddd; color: white',
- },
- {
- text: 'Delete',
- style: 'background-color: #F4333C; color: white',
- }],
- left: [{
- text: 'Reply',
- style: 'background-color: #108ee9; color: white',
- },
- {
- text: 'Cancel',
- style: 'background-color: #ddd; color: white',
- }],
- },
- onClick(e) {
- console.log('onClick', e.detail)
- if (e.detail.data) {
- wx.showModal({
- title: `The data is ${e.detail.data}`,
- showCancel: !1,
- })
- }
- },
- onShare() {
- console.log('onShare')
- },
- onCellClick() {
- console.log('onCellClick')
- },
- })
|