|
@@ -113,7 +113,7 @@ export default {
|
|
|
goods_name: resData.goods_name, //商品名称
|
|
|
goods_picture_id: resData.goods_picture_id, //封面图片id
|
|
|
goods_person_name_desc: resData.goods_person_name_desc, //老师
|
|
|
- price: resData.price, //价格
|
|
|
+ price: resData.price || resData.goods_price, //价格
|
|
|
discount_code: this.back_discount_code,
|
|
|
};
|
|
|
getLearnWebContent(MethodName, data)
|
|
@@ -156,17 +156,10 @@ export default {
|
|
|
this.codeloading = true;
|
|
|
let MethodName = "order-order_manager-VerificationDiscountCode";
|
|
|
let resData = JSON.parse(JSON.stringify(this.data));
|
|
|
- let price = 0;
|
|
|
- if (resData.price) {
|
|
|
- price = resData.price;
|
|
|
- }
|
|
|
- if (resData.goods_price) {
|
|
|
- price = resData.goods_price;
|
|
|
- }
|
|
|
let data = {
|
|
|
goods_id: resData.goods_id, //商品id
|
|
|
goods_type: resData.goods_type, //商品类型
|
|
|
- price: price, //价格
|
|
|
+ price: resData.price || resData.goods_price, //价格
|
|
|
discount_code: this.discount_code.trim(),
|
|
|
};
|
|
|
getLearnWebContent(MethodName, data).then((res) => {
|