|
|
@ -9,7 +9,7 @@ |
|
|
|
<image class="icon" :src="icon" /> |
|
|
|
</slot> |
|
|
|
<slot name="content"> |
|
|
|
<rich-text class="content" :nodes="content"> </rich-text> |
|
|
|
<rich-text class="content" :nodes="content" :style="{'color': textColor}" :key='count'> </rich-text> |
|
|
|
</slot> |
|
|
|
<view class="split_line"></view> |
|
|
|
<slot name="button"> |
|
|
@ -58,6 +58,8 @@ const seconds = ref(0) |
|
|
|
const success = ref(() => {}) |
|
|
|
const version = ref('') |
|
|
|
const modal = ref(null) |
|
|
|
const textColor = ref('#000') |
|
|
|
const count = ref(0) |
|
|
|
// onMounted(() => { |
|
|
|
// const systemInfo = uni.getSystemInfoSync() |
|
|
|
// // #ifdef H5 |
|
|
@ -134,8 +136,8 @@ const showBreakMessage = (mContent, callback) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
|
const showQuestionMessage = (mContent, callback) => { |
|
|
|
showSelectModal('疑问', mContent, callback) |
|
|
|
const showQuestionMessage = (mContent,textColor, callback) => { |
|
|
|
showSelectModal('疑问', mContent, callback,textColor) |
|
|
|
} |
|
|
|
|
|
|
|
// 打开警告弹框(确定+倒计时) |
|
|
@ -227,10 +229,11 @@ const showSelectWarningModal = (mContent, callback) => { |
|
|
|
} |
|
|
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
|
const showSelectModal = (mIconType, mContent, callback) => { |
|
|
|
const showSelectModal = (mIconType, mContent, callback,textColor) => { |
|
|
|
showModal({ |
|
|
|
iconType: mIconType, |
|
|
|
content: mContent, |
|
|
|
textColor:textColor, |
|
|
|
success(res) { |
|
|
|
if (callback != undefined) { |
|
|
|
if (res.confirm == true) { |
|
|
@ -375,7 +378,11 @@ const showModal = (data) => { |
|
|
|
} else { |
|
|
|
cancelColor.value = '#666F83' |
|
|
|
} |
|
|
|
|
|
|
|
if (data.textColor) { |
|
|
|
textColor.value = data.textColor |
|
|
|
} else { |
|
|
|
textColor.value = '#000' |
|
|
|
} |
|
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
|
showConfirmButton.value = data.showConfirmButton |
|
|
|
} else { |
|
|
|