From 69cf2b1ed059b8eed4740ba76d73bf4c195c1775 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期三, 08 一月 2025 14:10:59 +0800
Subject: [PATCH] 添加虚拟卡时添加二次确认
---
pages/rechargeCard/rechargeCard.wxml | 1 +
pages/rechargeCard/rechargeCard.js | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/pages/rechargeCard/rechargeCard.js b/pages/rechargeCard/rechargeCard.js
index 9377c0c..53ee238 100644
--- a/pages/rechargeCard/rechargeCard.js
+++ b/pages/rechargeCard/rechargeCard.js
@@ -47,7 +47,8 @@
"vcNum": "200030000000"
}],
showDialog: false,
- isWXRefreshing: false
+ isWXRefreshing: false,
+ isAddCardDialog:false
},
// 鍒囨崲 Tabs
switchTab: function (e) {
@@ -190,8 +191,24 @@
showDialog: false
})
},
+
+
+
//娣诲姞铏氭嫙鍗�
handleClick() {
+ this.setData({
+ isAddCardDialog: true
+ })
+ },
+ cancelDialog(){
+ this.setData({
+ isAddCardDialog: false
+ })
+ },
+ addCardPost(){
+ this.setData({
+ isAddCardDialog: false
+ })
wx.showLoading({
title: '姝e湪娣诲姞璇风◢鍊�...', // 鍔犺浇鎻愮ず鏂囧瓧
mask: true // 鏄惁鏄剧ず閫忔槑钂欏眰锛岄槻姝㈣Е鎽哥┛閫忥紝榛樿涓� false
diff --git a/pages/rechargeCard/rechargeCard.wxml b/pages/rechargeCard/rechargeCard.wxml
index 55234ff..c5d9583 100644
--- a/pages/rechargeCard/rechargeCard.wxml
+++ b/pages/rechargeCard/rechargeCard.wxml
@@ -63,4 +63,5 @@
</view>
<t-fab icon="gesture-add" text="娣诲姞铏氭嫙鍗�" bind:click="handleClick" bind:move="handleMove" aria-label="澧炲姞" usingCustomNavbar draggable y-bounds="{{[0, 32]}}" style="--td-primary-color-7:#2D8BF7"></t-fab>
<t-dialog visible="{{showDialog}}" content="鎮ㄨ繕鏈変綑棰濇湭浣跨敤锛屽闇�閿�鍗★紝璇峰厛浣跨敤瀹屾垨閫�娆惧悗鎵嶅彲鎿嶄綔銆�" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" />
+ <t-dialog class="dialog" visible="{{isAddCardDialog}}" content="纭娣诲姞铏氭嫙鍗″悧锛�" confirm-btn="{{ { content: '纭', variant: 'base', theme: 'danger' } }}" close-on-overlay-click="false" cancel-btn="鍙栨秷" bind:confirm="addCardPost" bind:cancel="cancelDialog" />
</view>
\ No newline at end of file
--
Gitblit v1.8.0