|
@@ -2,19 +2,15 @@
|
|
<view class="course-container">
|
|
<view class="course-container">
|
|
<view>
|
|
<view>
|
|
<text class="course-title">授课科目*</text>
|
|
<text class="course-title">授课科目*</text>
|
|
- <view wx:for="{{list}}" wx:key="index" class="course-list">
|
|
|
|
- <view class="course-type" bindtap="toChooseCourseType">
|
|
|
|
- <view>{{courseOptionChosed || item.title}}</view>
|
|
|
|
|
|
+ <view wx:for="{{list}}" wx:key="index" class="course-list" wx:for-index="type_index">
|
|
|
|
+ <view class="course-type" bindtap="toChooseCourseType{{type_index}}" data-index="{{type_index}}">
|
|
|
|
+ <view>{{courseOptionChoseds[type_index] || item.title}}</view>
|
|
<image class="iconImg" src="../../images/down.png"></image>
|
|
<image class="iconImg" src="../../images/down.png"></image>
|
|
</view>
|
|
</view>
|
|
- <view class="course-detail" bindtap="toChooseCourseDetail">
|
|
|
|
- <view>{{courseDetailChosedText || '课程详情'}}</view>
|
|
|
|
|
|
+ <view class="course-detail" bindtap="toChooseCourseDetail{{type_index}}" data-index="{{type_index}}">
|
|
|
|
+ <view>{{courseDetailChosedTexts[type_index] || '课程详情'}}</view>
|
|
<image class="iconImg" src="../../images/down.png"></image>
|
|
<image class="iconImg" src="../../images/down.png"></image>
|
|
</view>
|
|
</view>
|
|
- <!-- <view wx:if="{{list.length > 1}}" class="addCourse" bindtap="reMoveCourseDetail">
|
|
|
|
- <image class="addIconImg" src="../../images/delete.png"></image>
|
|
|
|
- <view></view>
|
|
|
|
- </view> -->
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -99,15 +95,15 @@
|
|
<!-- 课程类别 -->
|
|
<!-- 课程类别 -->
|
|
<view wx:if="{{showCourseOptions}}">
|
|
<view wx:if="{{showCourseOptions}}">
|
|
<!-- 空白区(背景) -->
|
|
<!-- 空白区(背景) -->
|
|
- <view class="mask" bindtap="hiddenChooseCourseType"></view>
|
|
|
|
|
|
+ <view class="mask" bindtap="hiddenChooseCourseType{{chosedIndex}}"></view>
|
|
<!-- 内容区 -->
|
|
<!-- 内容区 -->
|
|
<view class="courseTitle-wrapper">
|
|
<view class="courseTitle-wrapper">
|
|
<view class="chooseContent-title">
|
|
<view class="chooseContent-title">
|
|
- <view bindtap="hiddenChooseCourseType">取消</view>
|
|
|
|
- <view bindtap="confirmChooseCourseType">确定</view>
|
|
|
|
|
|
+ <view bindtap="hiddenChooseCourseType{{chosedIndex}}">取消</view>
|
|
|
|
+ <view bindtap="confirmChooseCourseType{{chosedIndex}}">确定</view>
|
|
</view>
|
|
</view>
|
|
<scroll-view scroll-y="true" class="CourseTitleScroll">
|
|
<scroll-view scroll-y="true" class="CourseTitleScroll">
|
|
- <view class="chooseContent" wx:for="{{courseOptions}}" wx:key="key" bindtap="onChooseCourseType" data-index="{{index}}">
|
|
|
|
|
|
+ <view class="chooseContent" wx:for="{{courseOptions[chosedIndex]}}" wx:key="key" bindtap="onChooseCourseType{{chosedIndex}}" data-index="{{index}}">
|
|
<view style="position: absolute;left: 40rpx;">{{item.name}}</view>
|
|
<view style="position: absolute;left: 40rpx;">{{item.name}}</view>
|
|
<image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
|
|
<image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
|
|
</view>
|
|
</view>
|
|
@@ -118,22 +114,16 @@
|
|
<!-- 课程详情 -->
|
|
<!-- 课程详情 -->
|
|
<view wx:if="{{shouwCourseDetails}}">
|
|
<view wx:if="{{shouwCourseDetails}}">
|
|
<!-- 空白区(背景) -->
|
|
<!-- 空白区(背景) -->
|
|
- <view class="mask" bindtap="hiddenChooseCourseDetail"></view>
|
|
|
|
|
|
+ <view class="mask" bindtap="hiddenChooseCourseDetail{{courseDetailIndex}}"></view>
|
|
<!-- 内容区 -->
|
|
<!-- 内容区 -->
|
|
<view class="courseDetail-wrapper">
|
|
<view class="courseDetail-wrapper">
|
|
<view class="chooseContent-title">
|
|
<view class="chooseContent-title">
|
|
- <view bindtap="hiddenChooseCourseDetail">取消</view>
|
|
|
|
- <view bindtap="confirmCourseDetail">确定</view>
|
|
|
|
|
|
+ <view bindtap="hiddenChooseCourseDetail{{courseDetailIndex}}">取消</view>
|
|
|
|
+ <view bindtap="confirmCourseDetail{{courseDetailIndex}}">确定</view>
|
|
</view>
|
|
</view>
|
|
- <!-- <scroll-view scroll-y="true" class="courseDetailScroll">
|
|
|
|
- <view class="chooseContent" wx:for="{{courseLists[courseOptionIndex]}}" wx:key="key" bindtap="onChooseCourseDetail" data-index="{{index}}">
|
|
|
|
- <view style="position: absolute;left: 40rpx;">{{item.courseName}}</view>
|
|
|
|
- <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
|
|
|
|
- </view>
|
|
|
|
- </scroll-view> -->
|
|
|
|
<scroll-view scroll-y="true" class="courseDetailScroll">
|
|
<scroll-view scroll-y="true" class="courseDetailScroll">
|
|
- <checkbox-group bindchange="chechboxChangeCourseDetail">
|
|
|
|
- <label wx:for="{{courseLists[courseOptionIndex]}}" wx:key="index">
|
|
|
|
|
|
+ <checkbox-group bindchange="chechboxChangeCourseDetail{{courseDetailIndex}}">
|
|
|
|
+ <label wx:for="{{courseLists[courseDetailIndex][courseOptionIndexs[courseDetailIndex]]}}" wx:key="index">
|
|
<checkbox class="checkboxList" value="{{item.courseName}}">{{item.courseName}}</checkbox>
|
|
<checkbox class="checkboxList" value="{{item.courseName}}">{{item.courseName}}</checkbox>
|
|
</label>
|
|
</label>
|
|
</checkbox-group>
|
|
</checkbox-group>
|