浏览代码

修改预览显示

lex-xin 4 年之前
父节点
当前提交
14f3fdba29
共有 1 个文件被更改,包括 19 次插入12 次删除
  1. 19 12
      src/views/resetTeaming/modals/subject-preview.vue

+ 19 - 12
src/views/resetTeaming/modals/subject-preview.vue

@@ -111,18 +111,25 @@
 				<el-col :span="5" :offset="1" style="text-align: right;">现价</el-col>
 			</el-row>
 
-			<el-row class="option-row" v-for="(instr, index) in accessOries" :key="index" @click.native="onAuxiliarie(instr)">
-				<el-col :span="12">
-					<i class="check_default" :class="[ instr.checked ? 'check_active' : '' ]"></i>{{ instr.name }}
-				</el-col>
-				<el-col :span="6">
-					<del style="color: #AAA; font-size: 12px;">¥{{ instr.goodsList[0] ? instr.goodsList[0].marketPrice : 0 | moneyFormat }}</del>
-				</el-col>
-				<el-col :span="6">
-					<span style="color: #1A1A1A" v-if="instr.price == 0">免费</span>
-					<span style="color: #1A1A1A" v-else>¥{{ instr.price | moneyFormat }}</span>
-				</el-col>
-			</el-row>
+			<div v-for="(instr, index) in accessOries" :key="index">
+                <el-row class="option-row" @click.native="onAuxiliarie(instr)">
+                    <el-col :span="12">
+                        <i class="check_default" :class="[ instr.checked ? 'check_active' : '' ]"></i>{{ instr.name }}
+                    </el-col>
+                    <el-col :span="6">
+                        <del style="color: #AAA; font-size: 12px;">¥{{ instr.goodsList[0] ? instr.goodsList[0].marketPrice : 0 | moneyFormat }}</del>
+                    </el-col>
+                    <el-col :span="6">
+                        <span style="color: #1A1A1A" v-if="instr.price == 0">免费</span>
+                        <span style="color: #1A1A1A" v-else>¥{{ instr.price | moneyFormat }}</span>
+                    </el-col>
+                </el-row>
+                <el-row style="padding-left: 24px;" v-if="instr.childGoodsList">
+					<el-col>
+						<span v-for="(child, index) in instr.childGoodsList" :key="child.id" style="font-size: 12px; color: #aaaaaa;">{{ child.name }} {{instr.childGoodsList.length - 1 == index ? '' : ','}}</span>
+					</el-col>
+				</el-row>
+            </div>
 
 			<!-- <el-row class="option-row lines">
 				<el-col :span="12" class="fontBold">