|
|
@ -136,10 +136,14 @@ const showBreakMessage = (mContent, callback) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
|
const showQuestionMessage = (mContent,textColor, callback) => { |
|
|
|
showSelectModal('疑问', mContent, callback,textColor) |
|
|
|
const showQuestionMessage = (mContent, callback) => { |
|
|
|
showSelectModal('疑问', mContent, callback) |
|
|
|
} |
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
|
const showQuestionMessage1 = (mContent,textColor, callback)=> { |
|
|
|
console.log(textColor) |
|
|
|
showSelectModal1("疑问", mContent, callback,textColor); |
|
|
|
} |
|
|
|
|
|
|
|
// 打开警告弹框(确定+倒计时) |
|
|
|
const showWarningMessage = (mContent, callback) => { |
|
|
|
showConfirmCountdownModal('警告', mContent, callback) |
|
|
@ -229,11 +233,10 @@ const showSelectWarningModal = (mContent, callback) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
|
const showSelectModal = (mIconType, mContent, callback,textColor) => { |
|
|
|
const showSelectModal = (mIconType, mContent, callback) => { |
|
|
|
showModal({ |
|
|
|
iconType: mIconType, |
|
|
|
content: mContent, |
|
|
|
textColor:textColor, |
|
|
|
success(res) { |
|
|
|
if (callback != undefined) { |
|
|
|
if (res.confirm == true) { |
|
|
@ -247,7 +250,25 @@ const showSelectModal = (mIconType, mContent, callback,textColor) => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
|
const showSelectModal1 = (mIconType, mContent, callback,textColor)=> { |
|
|
|
this.showModal({ |
|
|
|
iconType: mIconType, |
|
|
|
content: mContent, |
|
|
|
textColor:textColor, |
|
|
|
success: function(res) { |
|
|
|
if (callback != undefined) { |
|
|
|
if (res.confirm == true) { |
|
|
|
callback(true); |
|
|
|
console.log('用户点击确定') |
|
|
|
} else { |
|
|
|
callback(false); |
|
|
|
console.log('用户点击取消') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
// 打开疑问弹框(确定+倒计时) |
|
|
|
const showConfirmCountdownQuestionModal = (mContent, callback) => { |
|
|
|
showConfirmCountdownModal('疑问', mContent, callback) |
|
|
@ -436,6 +457,7 @@ defineExpose({ |
|
|
|
showErrorMessage, |
|
|
|
showBreakMessage, |
|
|
|
showQuestionMessage, |
|
|
|
showQuestionMessage1, |
|
|
|
showWarningMessage, |
|
|
|
showConfirmCountdownFailModal, |
|
|
|
showConfirmMessageModal, |
|
|
@ -457,7 +479,7 @@ defineExpose({ |
|
|
|
showSelectCountdownWarningModal, |
|
|
|
showSelectCountdownQuestionModal, |
|
|
|
showMessage, |
|
|
|
showModal |
|
|
|
showModal, |
|
|
|
}) |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|