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