mys.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--pages/my/my.wxml-->
  2. <template name="mys">
  3. <view class="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: 92%;">
  9. <swiper-item>
  10. <view class="my-information">
  11. <view class="information-item">
  12. <image class="head" bindtap="setName" src=""></image>
  13. <view class="set-name">
  14. <text class="name">{{myData.userName}}</text>
  15. <text bindtap="setName">点击修改头像和名字</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. </scroll-view>
  30. </swiper-item>
  31. <swiper-item>
  32. <scroll-view class="scroll-view" scroll-y>
  33. <view class="my-collection">
  34. <view class="collection-item" wx:for="{{myData.playLogList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.courseId}}">
  35. <image src="{{item.courseIcon}}"></image>
  36. </view>
  37. </view>
  38. </scroll-view>
  39. </swiper-item>
  40. </swiper>
  41. </template>