|
@@ -1779,21 +1779,7 @@ export default {
|
|
|
contractGoodsIds = ""; // 合同所需要的商品Id (只需要乐器编号)
|
|
|
// 课程 this.topfor payfor checkfor
|
|
|
let mgs = this.lookPreviewRow.yuji;
|
|
|
- let check = [];
|
|
|
- for (let i in this.checkfor) {
|
|
|
- if (this.checkfor[i] && i != 'submit') {
|
|
|
- check.push(this.checkfor[i].ischeck)
|
|
|
- }
|
|
|
- }
|
|
|
- let checkFlag = false
|
|
|
- check.forEach(item => {
|
|
|
- checkFlag = checkFlag || item
|
|
|
- })
|
|
|
- console.log(mgs, 'yuji')
|
|
|
- if (!checkFlag) {
|
|
|
- marketPrice += Number(parseFloat(mgs))
|
|
|
- //
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
let coursePrice = Number(mgs)
|
|
|
let csi = this.checkfor;
|
|
@@ -1957,6 +1943,21 @@ export default {
|
|
|
} else {
|
|
|
this.needPrice = Number(amount.toFixed(2));
|
|
|
}
|
|
|
+ let check = [];
|
|
|
+ for (let i in this.checkfor) {
|
|
|
+ if (this.checkfor[i] && i != 'submit') {
|
|
|
+ check.push(this.checkfor[i].ischeck)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let checkFlag = false
|
|
|
+ check.forEach(item => {
|
|
|
+ checkFlag = checkFlag || item
|
|
|
+ })
|
|
|
+ console.log(mgs, couponPrice, 'yuji')
|
|
|
+ if (!checkFlag) {
|
|
|
+ marketPrice += Number(parseFloat(coursePrice))
|
|
|
+ //
|
|
|
+ }
|
|
|
this.orderInfo = {
|
|
|
amount: Number(amount.toFixed(2)),
|
|
|
marketPrice: Number(marketPrice.toFixed(2)),
|