优化下单流程

This commit is contained in:
2025-07-30 15:34:11 +08:00
parent 2832cd3832
commit a8a84f8b39
10 changed files with 170 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
import {useEffect, useState} from "react";
import {Image, Button, Cell, CellGroup, Input, Space, ActionSheet} from '@nutui/nutui-react-taro'
import {Location, ArrowRight} from '@nutui/icons-react-taro'
import Taro from '@tarojs/taro'
import Taro, {useDidShow} from '@tarojs/taro'
import {ShopGoods} from "@/api/shop/shopGoods/model";
import {getShopGoods} from "@/api/shop/shopGoods";
import {View} from '@tarojs/components';
@@ -87,6 +87,10 @@ const OrderConfirm = () => {
await PaymentHandler.pay(orderData, paymentType);
};
useDidShow(() => {
reload().then()
})
useEffect(() => {
if (goodsId) {
getShopGoods(Number(goodsId)).then(res => {