|
@@ -188,8 +188,9 @@
|
|
|
报名班级
|
|
|
</view>
|
|
|
<view class="options">
|
|
|
- <view class="item" >
|
|
|
- 初级班
|
|
|
+ <view class="item" v-for="(item,index) in tclassList" :key="index"
|
|
|
+ :class="activeClass==index ? '' : 'item-state2'" @click="choseClass(item,index)">
|
|
|
+ {{item.className}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -199,17 +200,9 @@
|
|
|
选择套餐
|
|
|
</view>
|
|
|
<view class="options">
|
|
|
- <view class="item" v-for="item in 9">
|
|
|
- 暑期班 24课时
|
|
|
- </view>
|
|
|
- <view class="item item-state2">
|
|
|
- 春季 36课时
|
|
|
- </view>
|
|
|
- <view class="item item-state2">
|
|
|
- 秋季 36课时
|
|
|
- </view>
|
|
|
- <view class="item item-state2">
|
|
|
- 全年 96课时
|
|
|
+ <view class="item" v-for="(item,index) in coursePackageList" :key="index"
|
|
|
+ :class="activePackage==index ? '' : 'item-state2'" @click="chosePackage(item,index)">
|
|
|
+ {{item.packageName}}班 {{item.courseAmount}}课时
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -290,16 +283,15 @@
|
|
|
courseBase: {},
|
|
|
coursePackageList: [],
|
|
|
tclassList: [],
|
|
|
- packageList: [],
|
|
|
- classList: [],
|
|
|
classDetail: {},
|
|
|
packageDetail: {},
|
|
|
studentId: '',
|
|
|
stuDetail: {},
|
|
|
show: false,
|
|
|
- list: [],
|
|
|
studentList: [],
|
|
|
- popShow:false
|
|
|
+ popShow:false,
|
|
|
+ activeClass: 0,
|
|
|
+ activePackage: 0
|
|
|
}
|
|
|
},
|
|
|
onLoad(op) {
|
|
@@ -310,6 +302,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ choseClass(item,index) {
|
|
|
+ this.activeClass = index;
|
|
|
+ },
|
|
|
+ chosePackage(item,index) {
|
|
|
+ this.activePackage = index;
|
|
|
+ },
|
|
|
getCourseDetail() {
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
@@ -322,27 +320,12 @@
|
|
|
this.courseBase = res.data.courseBase;
|
|
|
this.coursePackageList = res.data.coursePackageList;
|
|
|
this.tclassList = res.data.tclassList;
|
|
|
- var list1 = [];
|
|
|
- var list2 = [];
|
|
|
- for (var i = 0; i < this.coursePackageList.length; i++) {
|
|
|
- list1.push({
|
|
|
- value: this.coursePackageList[i].packageId,
|
|
|
- label: this.coursePackageList[i].packageName
|
|
|
- })
|
|
|
- }
|
|
|
- this.packageList = list1;
|
|
|
|
|
|
for (var j = 0; j < this.tclassList.length; j++) {
|
|
|
- list2.push({
|
|
|
- value: this.tclassList[j].classId,
|
|
|
- label: this.tclassList[j].className
|
|
|
- })
|
|
|
-
|
|
|
if(this.tclassList[j].classId == this.classId) {
|
|
|
this.classDetail = this.tclassList[j];
|
|
|
}
|
|
|
}
|
|
|
- this.classList = list2;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|