修复:复读报错

This commit is contained in:
2026-01-05 13:53:03 +08:00
parent 4901ec8737
commit d18c32753f
6 changed files with 41 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
</view>
<!-- 订单备注区域 -->
<view class="remark-section common-section" @click="showRemarkPopup = true">
<view class="remark-section common-section" @click="showRemarkPopup = true" v-if="props.orderType !== 'relearn'">
<view class="remark-row">
<text class="remark-label">{{ $t('order.remark') }}</text>
<view class="remark-value">
@@ -409,7 +409,7 @@ const handleSubmit = async () => {
* 创建订单
*/
const createOrder = async (): Promise<string | null> => {
const orderParams = {
const orderParams = {
userId: props.userInfo.id,
paymentMethod: 4, // 天医币
orderMoney: totalAmount.value,
@@ -419,7 +419,8 @@ const createOrder = async (): Promise<string | null> => {
// couponName: selectedCoupon.value?.couponEntity.couponName,
vipDiscountAmount: vipDiscounted.value,
districtMoney: promotionDiscounted.value,
remark: remark.value,
// 复读的时候备注传入格式id,名称
remark: props.orderType === 'relearn' ? `${props.goodsList[0].productId},${props.goodsList[0].productName}` : remark.value,
orderType: props.orderType,
productList: props.orderType === 'order' ? goodsListParams.value : null,
vipBuyConfigId: props.orderType === 'vip' ? props.goodsList[0].productId : null,