mys.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!--pages/my/my.wxml-->
  2. <template name="mys">
  3. <view class="my-nav">
  4. <block wx:for="{{myData.nav}}" wx:key="{{index}}">
  5. <view class="{{index == myData.myInd ? 'slecte-nav' : ''}}" bindtap="myChoice" data-index="{{index}}">{{item}}</view>
  6. </block>
  7. </view>
  8. <swiper current="{{myData.myInd}}" bindchange="mySlide" style="height: 74%;">
  9. <swiper-item>
  10. <view class="my-information">
  11. <view class="information-item" bindtap="setName">
  12. <image class="head" src="{{myData.avatar ? myData.avatar : '../../static/image/default.png'}}"></image>
  13. <view class="set-name">
  14. <text class="name">{{myData.userName}}</text>
  15. <text>点击修改头像和名字</text>
  16. </view>
  17. </view>
  18. <view class="shaiwa">如何使用电视上的晒娃功能</view>
  19. <view class="mengwa" bindtap="album">萌娃相册</view>
  20. </view>
  21. </swiper-item>
  22. <swiper-item>
  23. <scroll-view class="scroll-view" scroll-y>
  24. <view class="my-collection">
  25. <view class="collection-item" wx:for="{{myData.favoritesList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.targetCode}}">
  26. <image src="{{item.iconImg}}"></image>
  27. </view>
  28. </view>
  29. <view class="bottom">已经拖到底啦</view>
  30. </scroll-view>
  31. </swiper-item>
  32. <swiper-item>
  33. <scroll-view class="scroll-view" scroll-y>
  34. <view class="my-collection">
  35. <view class="collection-item" wx:for="{{myData.playLogList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.courseId}}">
  36. <image src="{{item.courseIcon}}"></image>
  37. </view>
  38. </view>
  39. <view class="bottom">已经拖到底啦</view>
  40. </scroll-view>
  41. </swiper-item>
  42. </swiper>
  43. </template>