From 802971e1c3f378354dbd5014a0c552f9081d4a00 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期二, 26 八月 2025 13:14:05 +0800 Subject: [PATCH] 部分模块加上声音提示 --- H5/Js/IPQC_SJ/Add.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/H5/Js/IPQC_SJ/Add.js b/H5/Js/IPQC_SJ/Add.js index d19e67d..cba4509 100644 --- a/H5/Js/IPQC_SJ/Add.js +++ b/H5/Js/IPQC_SJ/Add.js @@ -186,9 +186,11 @@ }, true, 1).then(function (res1) { if (res1.rtnCode == 1) { that.tableMxData = res1.rtnData; + that.$playSound('success'); } else { that.$toast.fail(res1.rtnMsg); + that.$playSound('error'); } }).catch(function (error) { that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�"); @@ -201,6 +203,7 @@ if (!that.inputValue) { this.$toast.fail("妫�楠屽�间笉鑳戒负绌�"); + that.$playSound('error'); that.isLoading = false; return; } @@ -222,12 +225,14 @@ that.$notify({ type: 'success', message: res1.rtnMsg }); + that.$playSound('success'); that.refreshJYItem();//鍒锋柊妫�楠岄」鐩� //that.handleTabClick();//鍒锋柊妫�楠屾槑缁嗛潰鏉� //that.$refs.inputValue.focus(); that.inputValue = null; } else { that.$toast.fail(res1.rtnMsg); + that.$playSound('error'); that.inputValue = null; } that.isLoading = false; @@ -311,9 +316,11 @@ }, true, 1).then(function (res1) { if (res1.rtnData.outSum == 1) { that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' }); + that.$playSound('success'); that.init(); } else { that.$toast.fail(res1.rtnData.outMsg); + that.$playSound('error'); } that.ttrre = false }).catch(function (error) { @@ -336,9 +343,11 @@ }, true, 1).then(res1 => { if (res1.rtnCode == 1) { that.$notify({ type: 'success', message: '閲嶆柊鍔犺浇鎴愬姛' }); + that.$playSound('success'); that.init(); } else { that.$toast.fail(res1.rtnMsg); + that.$playSound('error'); } that.isLoading = false; }).catch(error => { -- Gitblit v1.9.3