scheduleSubjectInner.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <import src="../template/qa/qa.wxml"/>
  2. <import src="../template/materials/materials.wxml"/>
  3. <import src="../template/detail/detail.wxml"/>
  4. <import src="../template/schedule/schedule.wxml"/>
  5. <view class="root-view">
  6. <view class="frame-view">
  7. <!-- 切换页面 -->
  8. <view class="tab-wrapper">
  9. <view wx:for="{{tabData}}" data-index="{{index}}" id="tab-{{index}}" wx:key="{{index}}" class="{{isSelect == index ? 'tab-select' : 'tab-item'}}" bindtap="switchTab">
  10. <text>{{item}}</text>
  11. </view>
  12. </view>
  13. <view class="detail-wrapper">
  14. <!-- 这里是问答 -->
  15. <view class="detail-item" hidden="{{isSelect !== 0}}">
  16. <template is="qa" data="{{qa: qaData, reply, teacherId, inputvalue}}"/>
  17. </view>
  18. <!-- 这里是学习资料 -->
  19. <view class="detail-item" hidden="{{isSelect !== 1}}">
  20. <template is="materials" data="{{materials}}"/>
  21. </view>
  22. <!-- 这里是详情-->
  23. <view class="detail-item" hidden="{{isSelect !== 2}}">
  24. <template is="detail" data="{{goal}}"/>
  25. </view>
  26. <!-- 课程列表 -->
  27. <view class="detail-item" hidden="{{isSelect !== 3}}">
  28. <template is="schedule" data="{{courseList: schedule, unfolded: scheduleUnfolded, scheduleLesson, currentSelect: scheduleSelect}}"/>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="input-wrapper" hidden="{{isSelect !== 0}}">
  33. <view class="input-item"><input maxlength="-1" bindtap="setReplay" value="{{_inputvalue}}" bindinput="getValue" focus="{{focus}}" cursor-spacing="10" placeholder="我也说两句" confirm-type="done"/></view>
  34. <view class="submit" bindtap="submit" >发送</view>
  35. </view>
  36. </view>