From 08942d70a8172b5ebbee5641b617ac0b70cc0fe5 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Fri, 25 Mar 2022 09:31:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=9B=A2=E6=B2=B9=E5=8A=A0=E6=B2=B9=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=B6=85=E8=BF=87800=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 4 ++++ pages/goods/refuel-confirm/refuel-confirm.vue | 4 ++-- pages/goods/refuel-details/refuel-details.vue | 9 ++++++++- pages/order/confirmation.vue | 8 ++++---- pages/pay/payment/payment.vue | 2 +- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 9cba30d..075b9c5 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -6,6 +6,10 @@ { "launchtype" : "remote" }, + "h5" : + { + "launchtype" : "remote" + }, "mp-weixin" : { "launchtype" : "remote" diff --git a/pages/goods/refuel-confirm/refuel-confirm.vue b/pages/goods/refuel-confirm/refuel-confirm.vue index 59cb8ef..b81c6f0 100644 --- a/pages/goods/refuel-confirm/refuel-confirm.vue +++ b/pages/goods/refuel-confirm/refuel-confirm.vue @@ -67,7 +67,7 @@ - + 重要说明 diff --git a/pages/goods/refuel-details/refuel-details.vue b/pages/goods/refuel-details/refuel-details.vue index c229ded..aa8c146 100644 --- a/pages/goods/refuel-details/refuel-details.vue +++ b/pages/goods/refuel-details/refuel-details.vue @@ -66,7 +66,7 @@ + @blur="Listeningfocus" maxlength="3" /> 约{{litre}}L @@ -284,6 +284,13 @@ }, //失去焦点算价格和油升 Listeningfocus() { + if(this.inputMoney > 800){ + uni.showToast({ + title: '加油金额不能超过800元', + icon: "none" + }); + this.inputMoney = 800; + } //原来计算方式 this.litre = parseFloat(this.inputMoney / this.priceOfficial).toFixed(2); this.totalPrice = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(2); diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index 467c15d..4887a31 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -95,7 +95,7 @@ - 积分支付可用积分: {{user.gold}} @@ -105,7 +105,7 @@ - + @@ -116,8 +116,8 @@ - - + + 汇联通工会卡可用余额: {{tongCardPrice}}元 diff --git a/pages/pay/payment/payment.vue b/pages/pay/payment/payment.vue index c29f0e5..56dea76 100644 --- a/pages/pay/payment/payment.vue +++ b/pages/pay/payment/payment.vue @@ -18,7 +18,7 @@ - +