You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
286 B

8 months ago
8 months ago
  1. //用户二次确认
  2. function showConfirm(title, callback) {
  3. uni.showModal({
  4. title,
  5. cancelText : '取消',
  6. confirmText : '确认',
  7. success: function(res) {
  8. if (res.confirm) {
  9. callback && callback()
  10. } else if (res.cancel) {}
  11. }
  12. });
  13. }
  14. export default {
  15. showConfirm
  16. }