Commit fe859a4c authored by GuanHua's avatar GuanHua

fix: 无默认地址情况下,选择地址后请求合同信息添加loading

parent 4657dc5a
......@@ -122,6 +122,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
memberId: orderInfo.supplyMembersId,
memberRoleId: orderInfo.supplyMembersRoleId,
}
setSpinningState(true)
const rulesRes = await PublicApi.getOrderTradingRulesByProductId(param)
const { data } = rulesRes
if (data) {
......@@ -178,6 +179,11 @@ const Order: React.FC<OrderPropsType> = (props) => {
const initOrderInfo = async () => {
const result = []
const sessionOrderInfo: any = await getOrderInfo(spam_id)
if (!sessionOrderInfo) {
message.error("订单不存在")
history.goBack()
}
for (const item of sessionOrderInfo.orderList) {
const tempOrderList = []
for (const orderItem of item.orderList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment