course.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view class="topbox" style="padding-top:{{top}}px;height:{{top*1+hgt*1}}px;">
  2. <view class="leftindexbox clearfix" style="top: {{top*1+8}}px;border: 1px solid #d1cfcf;">
  3. <image bindtap="golastap" class="leftgoto" src="../../../img/back.png"></image>
  4. <view bindtap="golastap" class="leftitbox"></view>
  5. <text></text>
  6. <image bindtap="goindextap" class="gotoindex" src="../../../img/goindex.png"></image>
  7. <view bindtap="goindextap" class="gotoidxbox"></view>
  8. </view>
  9. <view class="fontfpm fontr32 center maintitle titleStyle" style="line-height: 44px;padding-left:82px;">培训课程</view>
  10. </view>
  11. <view class="course" style="padding-top:{{top*1+hgt*1}}px;">
  12. <view class="coverImage">
  13. <image src="{{detailobj.cover}}" mode="widthFix"/>
  14. </view>
  15. <view class="courseTab">
  16. <view class="{{activeIndex==1?'tabActive':''}}" data-index="1" bindtap="switchTab">简介</view>
  17. <view class="{{activeIndex==2?'tabActive':''}}" data-index="2" bindtap="switchTab">课程</view>
  18. </view>
  19. <view hidden="{{activeIndex!=1}}" class="instruction">
  20. <view class="iTitle">{{detailobj.title}}</view>
  21. <view class="iMessage">
  22. <view class="iMsgleft">
  23. <view>课时: {{detailobj.course_num}}</view>
  24. </view>
  25. <view class="iMsgRight">来源: {{detailobj.from}}</view>
  26. </view>
  27. <view class="idescBox">简介</view>
  28. <view class="iDescInfo">{{detailobj.des}}</view>
  29. </view>
  30. <view hidden="{{activeIndex!=2}}" class="courselist">
  31. <view wx:for="{{courseArr}}" wx:key="{{index}}" data-id="{{item.id}}" class="courseItem" bindtap="viewCourseFun">
  32. <view class="itemleft">
  33. <image hidden="{{item.type != 'video'}}" src="../../img/trainvideo.png" mode="widthFix"/>
  34. <image hidden="{{item.type != 'image'}}" src="../../img/trainarticle.png" mode="widthFix"/>
  35. <image hidden="{{item.type != 'audio'}}" src="../../img/classaduio.png" mode="widthFix"/>
  36. <image hidden="{{item.type != 'pdf'}}" src="../../img/pdf.png" mode="widthFix"/>
  37. </view>
  38. <view class="itemRight">
  39. <view class="ellipsis">{{item.title}}</view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="signupBtn" bindtap="signUpFun">立即报名</view>
  45. <view wx:if="{{dialog}}" class="viewMask" bindtap="hideMaskFunc">
  46. <view class="viewBlock" catchtap="dothis">
  47. <view class="viewTitle">立即报名</view>
  48. <view class="viewContent">
  49. <view class="viewInput">
  50. <view>姓名</view>
  51. <input type="text" value="{{fName}}" bindinput="getinputName" placeholder="请输入姓名" />
  52. </view>
  53. <view class="viewInput">
  54. <view><text>*</text></view>
  55. <input type="number" value="{{fPhone}}" bindinput="getinputPhone" placeholder="请输入手机号" />
  56. </view>
  57. </view>
  58. <button class="viewButton" loading="{{uloading}}" disabled="{{uloading}}" bindtap="submitFunc">确认</button>
  59. </view>
  60. </view>
  61. <!-- 隐私协议授权 -->
  62. <privacy-popup bind:agree="agreePrivacy"></privacy-popup>
  63. <mustlogin loginFlag="{{loginFlag}}" orgname="{{companyobj.company_name}}" logo="{{companyobj.logo}}" mobileflag="{{phoneFlag}}" phoneflag="{{true}}" typenum="{{0}}" id="loginbox" bind:run="login"></mustlogin>