record.id}
dataSource={formattedDataSource}
/>
{item}}
/>
);
};
// 步骤条配置
const steps = [{
title: '选择购买终端',
stepKey: 0,
icon: 'shop',
content: terminalInfoCard(),
}, {
title: '选择商品',
stepKey: 1,
icon: 'environment',
content: goodsSelectCard(),
}, {
title: '确认订单',
stepKey: 2,
icon: 'profile',
content: confirmInfoCard(),
}];
return (
{steps.map((item, index) =>
(
}
/>
)
)}
{steps[currentStep].content}
已选择
{selectedGoods.length}
件商品
{/*
优惠: ¥
*/}
总价:
{`¥ ${toDecimal2(totalPrice - adjustPrice)}`}
}
style={{ width: this.state.width }}
>
{
(currentStep > 0) && (
)
}
{/* 步骤一:选择终端 */}
{
(currentStep === 0) && (
)
}
{/* 步骤二:选择产品 */}
{
(currentStep === 1) && (
)
}
{/* 步骤三:确认订单 */}
{
(currentStep === 2) && (
)
}
);
}
}