index.wxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!--index.wxml-->
  2. <view class="top">
  3. <view class="logo">
  4. <image src="../../images/logo.png" ></image>
  5. <view>巴中逸沣安全培训</view>
  6. <text>BA ZHONG YIFENG SAFETY TRAINING</text>
  7. </view>
  8. <view wx:if="{{data.length>0}}" class="marquee_container" style="--marqueeWidth--:-12em">
  9. <view class="zd"></view>
  10. <image src="../../images/tt.png" mode="widthFix"></image>
  11. <view class="marquee_text">
  12. <navigator url="../intro/intro?id={{item.id}}&type=1" wx:for="{{news}}">{{item.title}}</navigator>
  13. </view>
  14. </view>
  15. <block wx:for="{{data}}" wx:key='*this'>
  16. <navigator class="part" wx:if="{{item.type == 'nav'}}" open-type="{{item.name == '在线报名'?'switchTab':'navigate'}}" url="..{{item.path}}">
  17. <view>{{item.name}}</view>
  18. <text>{{item.name}}</text>
  19. <image src="{{item.icon}}" mode="widthFix"></image>
  20. </navigator>
  21. </block>
  22. <!-- <navigator open-type="switchTab" class="part">
  23. <view>机构介绍</view>
  24. <text>机构介绍</text>
  25. <image src="../../images/机构介绍.png" mode="widthFix"></image>
  26. </navigator>
  27. <navigator url="../apply/apply" open-type="switchTab" class="part">
  28. <view>在线报名</view>
  29. <text>在线报名</text>
  30. <image src="../../images/在线报名.png" mode="widthFix"></image>
  31. </navigator>
  32. <navigator class="part">
  33. <view>考场介绍</view>
  34. <text>考场介绍</text>
  35. <image src="../../images/考场介绍.png" mode="widthFix"></image>
  36. </navigator>
  37. <navigator class="part" url="../online/online" >
  38. <view>在线培训</view>
  39. <text>在线培训</text>
  40. <image src="../../images/在线培训.png" mode="widthFix"></image>
  41. </navigator>
  42. <navigator url="../plan/plan" class="part">
  43. <view>培训计划</view>
  44. <text>培训计划</text>
  45. <image src="../../images/培训计划.png" mode="widthFix"></image>
  46. </navigator>
  47. <navigator class="part">
  48. <view>联系我们</view>
  49. <text>联系我们</text>
  50. <image src="../../images/联系我们.png" mode="widthFix"></image>
  51. </navigator> -->
  52. <!-- <view class="news"> -->
  53. <!-- <image src="../../images/tt.png" mode="widthFix"></image>
  54. <text wx:for="{{news}}">{{item}}</text> -->
  55. <!-- </view> -->
  56. </view>
  57. <view class="bottom">
  58. <view class="tab">
  59. <text wx:for="{{data}}" wx:key='*this' wx:if="{{item.type=='article'}}" bindtap='tabchange'
  60. data-id='{{index}}' class="{{act==index ? 'active':''}}">{{item.name}}</text>
  61. <!-- <text bindtap='tabchange' data-id='1' class="{{act==1 ? 'active':''}}">咨询文章</text> -->
  62. <!-- <text bindtap='tabchange' data-id='2' class="{{act==2 ? 'active':''}}">咨询文章</text> -->
  63. </view>
  64. <view wx:for="{{data}}" wx:key='*this' wx:if="{{item.type=='article' && act == index}}" class="article">
  65. <navigator url="../intro/intro?id={{list.id}}&type=1" class="list" wx:for="{{item.list}}" wx:for-item="list" wx:key='*this'>
  66. <view>{{list.title}}</view>
  67. <text>{{list.ctime}}</text>
  68. </navigator>
  69. </view>
  70. </view>
  71. <view class="login" wx:if='{{show}}'>
  72. <view>
  73. <view>
  74. <image src="../../images/logo.png" mode="widthFix"></image>
  75. <text class="slogen">巴中逸沣安全培训</text>
  76. </view>
  77. <text class="xx">申请获取您的用户信息(头像、昵称等)</text>
  78. <button bindgetuserinfo="onGotUserInfo" open-type="getUserInfo">确定</button>
  79. </view>
  80. </view>