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

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

Loading…
Cancel
Save