From 42458fe43b111c37139f9a2876a97918a518e77a Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 10 Nov 2023 16:44:46 +0800 Subject: [PATCH] =?UTF-8?q?toast=20=E7=A4=BA=E4=BE=8B=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=BC=B9=E7=AA=97=20top/center=20=E7=9A=84?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/toast/toast.uvue | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/pages/API/toast/toast.uvue b/pages/API/toast/toast.uvue index 9e41d537..ebdb2d57 100644 --- a/pages/API/toast/toast.uvue +++ b/pages/API/toast/toast.uvue @@ -10,7 +10,9 @@ - + + + @@ -88,7 +90,31 @@ }, }) }, - // #ifdef APP-PLUS + // #ifdef APP-PLUS + toast5TapTop: function () { + uni.showToast({ + title: "显示一段轻提示", + position: 'top', + success: function (res) { + this.exeRet = "success:" + JSON.stringify(res) + new Date() + }, + fail: function (res) { + this.exeRet = "fail:" + JSON.stringify(res) + }, + }) + }, + toast5TapCenter: function () { + uni.showToast({ + title: "显示一段轻提示", + position: 'center', + success: function (res) { + this.exeRet = "success:" + JSON.stringify(res) + new Date() + }, + fail: function (res) { + this.exeRet = "fail:" + JSON.stringify(res) + }, + }) + }, toast5Tap: function () { uni.showToast({ title: "显示一段轻提示", -- GitLab