feat: 优化确认提示信息格式,简化兑换、转账和提现页面的消息展示
This commit is contained in:
@@ -151,13 +151,7 @@ async function handleSubmit() {
|
|||||||
|
|
||||||
const alert = await alertController.create({
|
const alert = await alertController.create({
|
||||||
header: "确认兑换",
|
header: "确认兑换",
|
||||||
message: `
|
message: `兑换金额:¥${amount.toFixed(2)}\n转出钱包:${fromWallet.value.walletType.name}\n转入钱包:${toWallet.value.walletType.name}`,
|
||||||
<div style="text-align: left; padding: 12px 0;">
|
|
||||||
<p style="margin: 8px 0;"><strong>兑换金额:</strong>¥${amount.toFixed(2)}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>转出钱包:</strong>${fromWallet.value.walletType.name}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>转入钱包:</strong>${toWallet.value.walletType.name}</p>
|
|
||||||
</div>
|
|
||||||
`,
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: "取消",
|
text: "取消",
|
||||||
|
|||||||
@@ -124,13 +124,7 @@ async function handleSubmit() {
|
|||||||
|
|
||||||
const alert = await alertController.create({
|
const alert = await alertController.create({
|
||||||
header: "确认转账",
|
header: "确认转账",
|
||||||
message: `
|
message: `转账金额:¥${amount.toFixed(2)}\n转账钱包:${selectedWallet.value.walletType.name}\n收款人:${recipientPhone.value}`,
|
||||||
<div style="text-align: left; padding: 12px 0;">
|
|
||||||
<p style="margin: 8px 0;"><strong>转账金额:</strong>¥${amount.toFixed(2)}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>转账钱包:</strong>${selectedWallet.value.walletType.name}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>收款人:</strong>${recipientPhone.value}</p>
|
|
||||||
</div>
|
|
||||||
`,
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: "取消",
|
text: "取消",
|
||||||
|
|||||||
@@ -112,14 +112,7 @@ async function handleSubmit() {
|
|||||||
|
|
||||||
const alert = await alertController.create({
|
const alert = await alertController.create({
|
||||||
header: "确认提现",
|
header: "确认提现",
|
||||||
message: `
|
message: `提现金额:¥${amount.toFixed(2)}\n提现钱包:${selectedWallet.value.walletType.name}\n收款银行:${selectedBankAccount.value.bankName}\n收款账号:${selectedBankAccount.value.type === "bank_card" ? selectedBankAccount.value.bankCardNumber : selectedBankAccount.value.alipayAccount}`,
|
||||||
<div style="text-align: left; padding: 12px 0;">
|
|
||||||
<p style="margin: 8px 0;"><strong>提现金额:</strong>¥${amount.toFixed(2)}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>提现钱包:</strong>${selectedWallet.value.walletType.name}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>收款银行:</strong>${selectedBankAccount.value.bankName}</p>
|
|
||||||
<p style="margin: 8px 0;"><strong>收款账号:</strong>${selectedBankAccount.value.type === "bank_card" ? selectedBankAccount.value.bankCardNumber : selectedBankAccount.value.alipayAccount}</p>
|
|
||||||
</div>
|
|
||||||
`,
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: "取消",
|
text: "取消",
|
||||||
|
|||||||
Reference in New Issue
Block a user