|
|
@@ -43,10 +43,10 @@ tools.formatDecimal = function (num, decimal) {
|
|
|
* 错误提示
|
|
|
* @param msg
|
|
|
*/
|
|
|
-tools.error = function (msg) {
|
|
|
+tools.error = function (msg,icon='error') {
|
|
|
uni.showToast({
|
|
|
'title': msg,
|
|
|
- 'icon': 'error',
|
|
|
+ 'icon': icon,
|
|
|
'mask': true,
|
|
|
'duration': 1500
|
|
|
})
|
|
|
@@ -56,10 +56,10 @@ tools.error = function (msg) {
|
|
|
* 成功提示
|
|
|
* @param msg
|
|
|
*/
|
|
|
-tools.success = function (msg) {
|
|
|
+tools.success = function (msg,icon='success') {
|
|
|
uni.showToast({
|
|
|
'title': msg,
|
|
|
- 'icon': 'success',
|
|
|
+ 'icon': icon,
|
|
|
'mask': true,
|
|
|
'duration': 1500
|
|
|
})
|