|
|
@ -13,7 +13,7 @@ |
|
|
|
<image class="icon" :src="icon" /> |
|
|
|
</slot> |
|
|
|
<slot name="content"> |
|
|
|
<rich-text class="content" :nodes="content"> |
|
|
|
<rich-text class="content" :nodes="content" :style="{'color': textColor}" :key='count'> |
|
|
|
</rich-text> |
|
|
|
</slot> |
|
|
|
<view class='split_line'></view> |
|
|
@ -62,7 +62,9 @@ |
|
|
|
isDisabled: true, //为 true 时,表示用户可以点击,反之则不可以 |
|
|
|
seconds: 0, |
|
|
|
success: () => {} ,// 回调方法 |
|
|
|
version:"" |
|
|
|
version:"", |
|
|
|
textColor:'#000', |
|
|
|
count:0 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -151,8 +153,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 打开疑问弹框(取消+确定) |
|
|
|
showQuestionMessage(mContent, callback) { |
|
|
|
this.showSelectModal("疑问", mContent, callback); |
|
|
|
showQuestionMessage(mContent,textColor, callback) { |
|
|
|
// this.textColor = textColor?textColor:'#000' |
|
|
|
this.showSelectModal("疑问", mContent, callback,textColor); |
|
|
|
}, |
|
|
|
|
|
|
|
// 打开警告弹框(确定+倒计时) |
|
|
@ -246,10 +249,11 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 初始化弹框并打开(取消+确定) |
|
|
|
showSelectModal(mIconType, mContent, callback) { |
|
|
|
showSelectModal(mIconType, mContent, callback,textColor) { |
|
|
|
this.showModal({ |
|
|
|
iconType: mIconType, |
|
|
|
content: mContent, |
|
|
|
textColor:textColor, |
|
|
|
success: function(res) { |
|
|
|
if (callback != undefined) { |
|
|
|
if (res.confirm == true) { |
|
|
@ -396,6 +400,11 @@ |
|
|
|
this.cancelColor = '#666F83' |
|
|
|
} |
|
|
|
|
|
|
|
if (data.textColor) { |
|
|
|
this.textColor = data.textColor |
|
|
|
} else { |
|
|
|
this.textColor = '#000' |
|
|
|
} |
|
|
|
if (data.showConfirmButton === false || data.showConfirmButton === true) { |
|
|
|
this.showConfirmButton = data.showConfirmButton |
|
|
|
} else { |
|
|
|