|
@ -153,11 +153,14 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
// 打开疑问弹框(取消+确定) |
|
|
showQuestionMessage(mContent,textColor, callback) { |
|
|
showQuestionMessage(mContent, callback) { |
|
|
// this.textColor = textColor?textColor:'#000' |
|
|
this.showSelectModal("疑问", mContent, callback); |
|
|
this.showSelectModal("疑问", mContent, callback,textColor); |
|
|
}, |
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
|
|
|
showQuestionMessage1(mContent,textColor, callback) { |
|
|
|
|
|
console.log(textColor) |
|
|
|
|
|
this.showSelectModal1("疑问", mContent, callback,textColor); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 打开警告弹框(确定+倒计时) |
|
|
// 打开警告弹框(确定+倒计时) |
|
|
showWarningMessage(mContent, callback) { |
|
|
showWarningMessage(mContent, callback) { |
|
|
this.showConfirmCountdownModal("警告", mContent, callback); |
|
|
this.showConfirmCountdownModal("警告", mContent, callback); |
|
@ -249,7 +252,26 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
// 初始化弹框并打开(取消+确定) |
|
|
showSelectModal(mIconType, mContent, callback,textColor) { |
|
|
showSelectModal(mIconType, mContent, callback) { |
|
|
|
|
|
this.showModal({ |
|
|
|
|
|
iconType: mIconType, |
|
|
|
|
|
content: mContent, |
|
|
|
|
|
success: function(res) { |
|
|
|
|
|
if (callback != undefined) { |
|
|
|
|
|
if (res.confirm == true) { |
|
|
|
|
|
callback(true); |
|
|
|
|
|
console.log('用户点击确定') |
|
|
|
|
|
} else { |
|
|
|
|
|
callback(false); |
|
|
|
|
|
console.log('用户点击取消') |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
|
|
|
showSelectModal1(mIconType, mContent, callback,textColor) { |
|
|
this.showModal({ |
|
|
this.showModal({ |
|
|
iconType: mIconType, |
|
|
iconType: mIconType, |
|
|
content: mContent, |
|
|
content: mContent, |
|
|