mys.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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">
  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" bindtap="Instructions">如何使用电视上的晒娃功能</view>
  19. <view class="mengwa" bindtap="album">萌娃相册</view>
  20. <view class="child" bindtap="childMatch">
  21. <text class="name">孩子王晒娃大赛</text>
  22. <view class="childMatchLogo">
  23. <image class="childMatchLogo" src="../../static/image/28.png"></image>
  24. </view>
  25. </view>
  26. </view>
  27. </swiper-item>
  28. <swiper-item>
  29. <scroll-view class="scroll-view" scroll-y>
  30. <view class="my-collection">
  31. <view class="collection-item" wx:for="{{myData.favoritesList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.targetCode}}">
  32. <image src="{{item.iconImg}}"></image>
  33. </view>
  34. </view>
  35. <view class="bottom">已经拖到底啦</view>
  36. </scroll-view>
  37. </swiper-item>
  38. <swiper-item>
  39. <scroll-view class="scroll-view" scroll-y>
  40. <view class="my-collection">
  41. <view class="collection-item" wx:for="{{myData.playLogList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.courseId}}">
  42. <image src="{{item.courseIcon}}"></image>
  43. </view>
  44. </view>
  45. <view class="bottom">已经拖到底啦</view>
  46. </scroll-view>
  47. </swiper-item>
  48. </swiper>
  49. </template>