| | |
| | | title, |
| | | icon: 'none', |
| | | mask: false, |
| | | duration: 1500, |
| | | duration: 1200, |
| | | position: 'center' |
| | | } |
| | | if (options && options.image) { |
| | |
| | | content, |
| | | showCancel: false, |
| | | confirmText: '确定', |
| | | confirmColor: '#04BA97' |
| | | confirmColor: '#20613D' |
| | | } |
| | | options = Object.assign({}, initOptions, options) |
| | | return new Promise((resolve) => { |
| | |
| | | cancelText: '取消', |
| | | cancelColor: '#000000', |
| | | confirmText: '确定', |
| | | confirmColor: '#04BA97' |
| | | confirmColor: '#20613D' |
| | | } |
| | | options = Object.assign({}, initOptions, options) |
| | | return new Promise((resolve, reject) => { |
| | |
| | | ...options, |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | resolve() |
| | | resolve(res) |
| | | } |
| | | if (res.cancel) { |
| | | reject() |