Browse Source

修改预览显示

lex-xin 4 years ago
parent
commit
404246d47f
1 changed files with 22 additions and 16 deletions
  1. 22 16
      src/views/resetTeaming/modals/subject-preview.vue

+ 22 - 16
src/views/resetTeaming/modals/subject-preview.vue

@@ -7,7 +7,7 @@
 		</div>
 
 		<div class="section">
-			<h2 class="title">乐团辅训系统</h2>
+			<h2 class="title">器乐练习系统</h2>
             <p style="font-size: 14px; padding: 2px 0; color: #a1a1a1" v-if="serviceValidDate">服务有效期:{{ serviceValidDate }}</p>
 			<el-row class="title-row">
 				<el-col :span="12">服务项目</el-col>
@@ -25,7 +25,7 @@
 						<el-icon v-if="item.courseType == 'PROJECT'" class="el-icon-question" @click.native="onQuestions" />
 					</el-col>
 					<el-col :span="6">
-						<del style="color: #AAA; font-size: 12px;">¥{{ item.courseOriginalPrice | moneyFormat }}</del>
+						<!-- <del style="color: #AAA; font-size: 12px;">¥{{ item.courseOriginalPrice | moneyFormat }}</del> -->
 					</el-col>
 					<el-col :span="6">
 						<span style="color: #1A1A1A">¥{{ item.courseCurrentPrice | moneyFormat }}</span>
@@ -47,7 +47,7 @@
 				</el-row>
 			</template>
 
-			<el-row class="option-row lines">
+			<!-- <el-row class="option-row lines">
 				<el-col :span="12" class="fontBold">
 					仅需支付
 				</el-col>
@@ -57,7 +57,7 @@
 				<el-col :span="6">
 					<span class="fontBold" style="color: #f85043;">¥{{ orderInfo.musicClassFee | moneyFormat }}</span>
 				</el-col>
-			</el-row>
+			</el-row> -->
 		</div>
 
 		<div class="section" v-if="instrumentResult.length > 0">
@@ -100,7 +100,7 @@
 				</el-row>
 			</div>
 
-			<el-row class="option-row lines">
+			<!-- <el-row class="option-row lines">
 				<el-col :span="12" class="fontBold">
 					仅需支付
 				</el-col>
@@ -110,7 +110,7 @@
 				<el-col :span="6">
 					<span class="fontBold" style="color: #f85043;">¥{{ orderInfo.goodsPrice | moneyFormat }}</span>
 				</el-col>
-			</el-row>
+			</el-row> -->
 		</div>
 
 		<div class="section" v-if="accessOries.length > 0" key="accessOries">
@@ -134,7 +134,7 @@
 				</el-col>
 			</el-row>
 
-			<el-row class="option-row lines">
+			<!-- <el-row class="option-row lines">
 				<el-col :span="12" class="fontBold">
 					仅需支付
 				</el-col>
@@ -144,7 +144,7 @@
 				<el-col :span="6">
 					<span class="fontBold" style="color: #f85043;">¥{{ orderInfo.accessPrice | moneyFormat }}</span>
 				</el-col>
-			</el-row>
+			</el-row> -->
 		</div>
 
 		<!-- 原价现价 -->
@@ -267,17 +267,17 @@ export default {
                             courseCurrentPrice: 0,
                             courseOriginalPrice: 0,
                             courseType: null,
-                            name: '乐团辅训系统'
+                            name: '器乐练习系统'
                         }
                         tempInfo.forEach(info => {
                             if(!info.isStudentOptional) {
                                 this.courseShowStatus = true
                                 tempCourse = {
                                     courseCurrentPrice: (info.courseCurrentPrice + tempCourse.courseCurrentPrice),
-                                    courseOriginalPrice: 9800,
+                                    courseOriginalPrice: (info.courseCurrentPrice + tempCourse.courseCurrentPrice),
                                     courseType: 'PROJECT',
                                     isStatus: true,
-                                    name: '乐团辅训系统'
+                                    name: '器乐练习系统'
                                 }
                             }
                         })
@@ -592,14 +592,20 @@ export default {
                             })
                         }
                         goodsGroupIds[item.id] = 'ACCESSORIES'
+
+                        buyList.push({
+                            name: item.name,
+                            type: '团购',
+                            price: item.price
+                        })
                     }
                 })
                 // if (tempAccessPrice > 0) {
-                    buyList.push({
-                        name: '辅件',
-                        type: '团购',
-                        price: tempAccessPrice
-                    })
+                    // buyList.push({
+                    //     name: '辅件',
+                    //     type: '团购',
+                    //     price: tempAccessPrice
+                    // })
                 // }
             }
             let tempGroupPurchasePrice = amount