yujialong 2 weeks ago
parent 333d47faa8
commit c26e1fc4f0
  1. 16
      order/shopCart/shopCart.vue

@ -157,17 +157,18 @@
//
createParam(e, authority, shopCartId) {
const { orderType } = this
const { mall, typeIds } = e
const trial = orderType == 2 //
return {
dataOrCourseId: e.associatedProduct, // id
mallId: e.mallId,
productName: e.productName, //
dataOrCourseId: mall.associatedProduct, // id
mallId: mall.mallId,
productName: mall.productName, //
periodOfUse: '', // 使
startTime: this.$util.formatDate(new Date(), 'yyyy-MM-dd'), //
endTime: '', //
remainingPeriod: '', //
marketValue: '', //
marketPrice: e.marketUnitPrice, //
marketPrice: mall.marketUnitPrice, //
finalPrice: 0, //
finalValue: 0, //
discountRate: '0%', //
@ -177,11 +178,12 @@
ship: 0, // 01
authority, // 01
options: 2,
miniProgramPictureAddress: e.appletIcon || '', //
miniProgramPictureAddress: mall.appletIcon || '', //
settlementPrice: trial ? 0 : '', //
settlementPriceUnit: 0, //
serviceFee: 0, //
shopCartId// id
shopCartId, // id
typeId: typeIds && typeIds.length ? typeIds[0] : '',
}
},
//
@ -235,7 +237,7 @@
//
const res = await detailsOfGoods(e.mallId)
const n = res.orderDetails
courses.push(this.createParam(n.mall, this.$util.getOrderType(n.classificationIds[0]), e.id))
courses.push(this.createParam(n, this.$util.getOrderType(n.classificationIds[0]), e.id))
resolve()
}))
})

Loading…
Cancel
Save