123456789101112131415161718192021222324252627282930313233343536 |
- <import src="../template/qa/qa.wxml"/>
- <import src="../template/materials/materials.wxml"/>
- <import src="../template/detail/detail.wxml"/>
- <import src="../template/schedule/schedule.wxml"/>
- <view class="root-view">
- <view class="frame-view">
- <!-- 切换页面 -->
- <view class="tab-wrapper">
- <view wx:for="{{tabData}}" data-index="{{index}}" id="tab-{{index}}" wx:key="{{index}}" class="{{isSelect == index ? 'tab-select' : 'tab-item'}}" bindtap="switchTab">
- <text>{{item}}</text>
- </view>
- </view>
- <view class="detail-wrapper">
- <!-- 这里是问答 -->
- <view class="detail-item" hidden="{{isSelect !== 0}}">
- <template is="qa" data="{{qa: qaData, reply, teacherId, inputvalue}}"/>
- </view>
- <!-- 这里是学习资料 -->
- <view class="detail-item" hidden="{{isSelect !== 1}}">
- <template is="materials" data="{{materials}}"/>
- </view>
- <!-- 这里是详情-->
- <view class="detail-item" hidden="{{isSelect !== 2}}">
- <template is="detail" data="{{goal}}"/>
- </view>
- <!-- 课程列表 -->
- <view class="detail-item" hidden="{{isSelect !== 3}}">
- <template is="schedule" data="{{courseList: schedule, unfolded: scheduleUnfolded, scheduleLesson, currentSelect: scheduleSelect}}"/>
- </view>
- </view>
- </view>
- <view class="input-wrapper" hidden="{{isSelect !== 0}}">
- <view class="input-item"><input maxlength="-1" bindtap="setReplay" value="{{_inputvalue}}" bindinput="getValue" focus="{{focus}}" cursor-spacing="10" placeholder="我也说两句" confirm-type="done"/></view>
- <view class="submit" bindtap="submit" >发送</view>
- </view>
- </view>
|