From 423527559bdd1350e27703a55a67f0d8deb05090 Mon Sep 17 00:00:00 2001
From: "DESKTOP-PJ5G56S\\Administrator" <13478707150@163.com>
Date: Tue, 8 Jul 2025 22:07:26 +0800
Subject: [PATCH] [feature] form ;layout => vertical
---
src/pages/feeconfirm/components/Alipay/index.jsx | 17 ----
src/pages/feeconfirm/components/FormBar/index.jsx | 95 +++-------------------
src/pages/feeconfirm/components/Wxpay/index.jsx | 19 +----
src/pages/feedback/index.jsx | 2 +-
.../paymentmethod/components/Alipay/index.jsx | 3 -
.../paymentmethod/components/BankPay/index.jsx | 6 +-
src/pages/paymentmethod/components/Wxpay/index.jsx | 6 +-
src/pages/paymentmethod/index.jsx | 2 +-
src/pages/shopinfo/components/FormBar/index.jsx | 36 +++-----
.../shopinfo/components/FormBar/index.module.less | 1 -
src/pages/viplevelup/components/Alipay/index.jsx | 4 +-
src/pages/viplevelup/components/Wxpay/index.jsx | 1 -
src/pages/viplevelup/index.jsx | 5 +-
13 files changed, 34 insertions(+), 163 deletions(-)
diff --git a/src/pages/feeconfirm/components/Alipay/index.jsx b/src/pages/feeconfirm/components/Alipay/index.jsx
index 1fc9aa1..73ccbf0 100644
--- a/src/pages/feeconfirm/components/Alipay/index.jsx
+++ b/src/pages/feeconfirm/components/Alipay/index.jsx
@@ -1,7 +1,6 @@
import { View } from '@tarojs/components';
import { Form } from 'antd-mobile';
import FormLabel from '/components/FormLabel';
-import FormImage from '/components/FormImage';
import styles from './index.module.less';
@@ -12,31 +11,15 @@ export default function Alipay({ namePrefix }) {
- {/*
-
- */}
- {/*
-
- */}
)
}
diff --git a/src/pages/feeconfirm/components/FormBar/index.jsx b/src/pages/feeconfirm/components/FormBar/index.jsx
index d8a9251..abfcb52 100644
--- a/src/pages/feeconfirm/components/FormBar/index.jsx
+++ b/src/pages/feeconfirm/components/FormBar/index.jsx
@@ -1,34 +1,19 @@
import { View } from '@tarojs/components';
-import { Button, CapsuleTabs, Form, Modal, Toast } from 'antd-mobile';
+import { Button, Form, Modal, Toast } from 'antd-mobile';
import FormImage from '/components/FormImage';
import FormLabel from '/components/FormLabel';
-import React, { useEffect, useMemo, useState } from 'react';
+import React, { useEffect } from 'react';
import { getOrderInfoAction } from '/request/actions';
import { getUrlParam } from '/utils';
import Taro from '@tarojs/taro';
-// import Alipay from '../Alipay';
-// import Wxpay from '../Wxpay';
-// import BankPay from '../BankPay';
-
-// import aliSrc from '/assets/icons/ali.svg';
-// import wxSrc from '/assets/icons/wx.svg';
-// import bankSrc from '/assets/icons/bank.svg';
import { orderConfirmAction } from '../../../../request/actions';
import styles from './index.module.less';
-// const TabItem = ({ src, text }) => (
-//
-//
-// {text}
-//
-// );
-
export default function FormBar() {
const [form] = Form.useForm();
- // const [showFee, updateShowFee] = useState(false);
useEffect(() => {
getOrderInfoAction({
@@ -80,96 +65,36 @@ export default function FormBar() {
})
};
- // const way = Form.useWatch('way', form);
- // const feeway = Form.useWatch('feeway', form);
-
- // const detailRenderer = useMemo(() => {
- // return {
- // alipay: ,
- // wx: ,
- // bank:
- // }[way];
- // }, [way]);
-
- // const feeDetailRenderer = useMemo(() => {
- // return {
- // alipay: ,
- // wx: ,
- // bank:
- // }[feeway];
- // }, [feeway]);
-
const payImage = Form.useWatch('payImage', form);
const feeImage = Form.useWatch('feeImage', form);
return (
-
+
-
+
-
+
`¥${val || 0}`} />
-
+
`¥${val || 0}`} />
-
+
-
+
-
+
- {/*
-
- } key='alipay' />
- } key='wx' />
- } key='bank' />
-
-
- {detailRenderer}
- {showFee && (
-
-
- 服务费收款信息
-
-
- `¥${val || 0}`} />
-
-
-
-
-
-
- } key='alipay' />
- } key='wx' />
- } key='bank' />
-
-
- {feeDetailRenderer}
-
- )} */}
)
}
diff --git a/src/pages/feedback/index.jsx b/src/pages/feedback/index.jsx
index e4cc23c..0d80cc2 100644
--- a/src/pages/feedback/index.jsx
+++ b/src/pages/feedback/index.jsx
@@ -32,7 +32,7 @@ export default function Feedback() {
反馈
-
diff --git a/src/pages/paymentmethod/components/Alipay/index.jsx b/src/pages/paymentmethod/components/Alipay/index.jsx
index 14692ea..87379a1 100644
--- a/src/pages/paymentmethod/components/Alipay/index.jsx
+++ b/src/pages/paymentmethod/components/Alipay/index.jsx
@@ -12,7 +12,6 @@ export default function Alipay() {
@@ -20,7 +19,6 @@ export default function Alipay() {
@@ -28,7 +26,6 @@ export default function Alipay() {
diff --git a/src/pages/paymentmethod/components/BankPay/index.jsx b/src/pages/paymentmethod/components/BankPay/index.jsx
index dc2ee80..1d3cf95 100644
--- a/src/pages/paymentmethod/components/BankPay/index.jsx
+++ b/src/pages/paymentmethod/components/BankPay/index.jsx
@@ -11,7 +11,7 @@ export default function BankPay() {
@@ -20,7 +20,7 @@ export default function BankPay() {
@@ -28,7 +28,7 @@ export default function BankPay() {
diff --git a/src/pages/paymentmethod/components/Wxpay/index.jsx b/src/pages/paymentmethod/components/Wxpay/index.jsx
index cb8dfc7..4be536a 100644
--- a/src/pages/paymentmethod/components/Wxpay/index.jsx
+++ b/src/pages/paymentmethod/components/Wxpay/index.jsx
@@ -12,7 +12,7 @@ export default function Wxpay() {
@@ -21,7 +21,7 @@ export default function Wxpay() {
@@ -29,7 +29,7 @@ export default function Wxpay() {
diff --git a/src/pages/paymentmethod/index.jsx b/src/pages/paymentmethod/index.jsx
index f49d600..8014a02 100644
--- a/src/pages/paymentmethod/index.jsx
+++ b/src/pages/paymentmethod/index.jsx
@@ -44,7 +44,7 @@ export default function Payforget() {
支付方式
-
diff --git a/src/pages/shopinfo/components/FormBar/index.jsx b/src/pages/shopinfo/components/FormBar/index.jsx
index 2f7d760..e500e87 100644
--- a/src/pages/shopinfo/components/FormBar/index.jsx
+++ b/src/pages/shopinfo/components/FormBar/index.jsx
@@ -31,48 +31,32 @@ export default function FormBar() {
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- */}
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/src/pages/shopinfo/components/FormBar/index.module.less b/src/pages/shopinfo/components/FormBar/index.module.less
index bc4b9d0..67e47b6 100644
--- a/src/pages/shopinfo/components/FormBar/index.module.less
+++ b/src/pages/shopinfo/components/FormBar/index.module.less
@@ -18,7 +18,6 @@
}
.margin {
- margin-top: 32px;
}
.submit {
diff --git a/src/pages/viplevelup/components/Alipay/index.jsx b/src/pages/viplevelup/components/Alipay/index.jsx
index 5310bfe..10c489f 100644
--- a/src/pages/viplevelup/components/Alipay/index.jsx
+++ b/src/pages/viplevelup/components/Alipay/index.jsx
@@ -16,7 +16,8 @@ export default function Alipay() {
>
-
@@ -24,7 +25,6 @@ export default function Alipay() {
diff --git a/src/pages/viplevelup/components/Wxpay/index.jsx b/src/pages/viplevelup/components/Wxpay/index.jsx
index ff37225..e07131e 100644
--- a/src/pages/viplevelup/components/Wxpay/index.jsx
+++ b/src/pages/viplevelup/components/Wxpay/index.jsx
@@ -25,7 +25,6 @@ export default function Wxpay() {
diff --git a/src/pages/viplevelup/index.jsx b/src/pages/viplevelup/index.jsx
index 2b10161..b75d5ee 100644
--- a/src/pages/viplevelup/index.jsx
+++ b/src/pages/viplevelup/index.jsx
@@ -53,7 +53,7 @@ export default function Payforget() {
会员升级
-
升级费用
@@ -68,8 +68,7 @@ export default function Payforget() {