|
@ -9,7 +9,7 @@ |
|
|
<image class="icon" :src="icon" /> |
|
|
<image class="icon" :src="icon" /> |
|
|
</slot> |
|
|
</slot> |
|
|
<slot name="content"> |
|
|
<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> |
|
|
</slot> |
|
|
<view class="split_line"></view> |
|
|
<view class="split_line"></view> |
|
|
<slot name="button"> |
|
|
<slot name="button"> |
|
@ -58,6 +58,8 @@ const seconds = ref(0) |
|
|
const success = ref(() => {}) |
|
|
const success = ref(() => {}) |
|
|
const version = ref('') |
|
|
const version = ref('') |
|
|
const modal = ref(null) |
|
|
const modal = ref(null) |
|
|
|
|
|
const textColor = ref('#000') |
|
|
|
|
|
const count = ref(0) |
|
|
// onMounted(() => { |
|
|
// onMounted(() => { |
|
|
// const systemInfo = uni.getSystemInfoSync() |
|
|
// const systemInfo = uni.getSystemInfoSync() |
|
|
// // #ifdef H5 |
|
|
// // #ifdef H5 |
|
@ -134,8 +136,8 @@ const showBreakMessage = (mContent, callback) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
// 打开疑问弹框(取消+确定) |
|
|
const showQuestionMessage = (mContent, callback) => { |
|
|
const showQuestionMessage = (mContent,textColor, callback) => { |
|
|
showSelectModal('疑问', mContent, 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({ |
|
|
showModal({ |
|
|
iconType: mIconType, |
|
|
iconType: mIconType, |
|
|
content: mContent, |
|
|
content: mContent, |
|
|
|
|
|
textColor:textColor, |
|
|
success(res) { |
|
|
success(res) { |
|
|
if (callback != undefined) { |
|
|
if (callback != undefined) { |
|
|
if (res.confirm == true) { |
|
|
if (res.confirm == true) { |
|
@ -375,7 +378,11 @@ const showModal = (data) => { |
|
|
} else { |
|
|
} else { |
|
|
cancelColor.value = '#666F83' |
|
|
cancelColor.value = '#666F83' |
|
|
} |
|
|
} |
|
|
|
|
|
if (data.textColor) { |
|
|
|
|
|
textColor.value = data.textColor |
|
|
|
|
|
} else { |
|
|
|
|
|
textColor.value = '#000' |
|
|
|
|
|
} |
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
showConfirmButton.value = data.showConfirmButton |
|
|
showConfirmButton.value = data.showConfirmButton |
|
|
} else { |
|
|
} else { |
|
|