<!--pages/my/my.wxml-->
<template name="mys">
    <view class="my-nav">
        <block wx:for="{{myData.nav}}" wx:key="{{index}}">
            <view class="{{index == myData.myInd ? 'slecte-nav' : ''}}" bindtap="myChoice" data-index="{{index}}">{{item}}</view>
        </block>
    </view>
    <swiper current="{{myData.myInd}}" bindchange="mySlide">
        <swiper-item>
            <view class="my-information">
                <view class="information-item" bindtap="setName">
                    <image class="head" src="{{myData.avatar ? myData.avatar : '../../static/image/default.png'}}"></image>
                    <view class="set-name">
                        <text class="name">{{myData.userName}}</text>
                        <text>点击修改头像和名字</text>
                    </view>
                </view>
                <view class="shaiwa" bindtap="Instructions">如何使用电视上的晒娃功能</view>
                <view class="mengwa" bindtap="album">萌娃相册</view>
                <view class="child" bindtap="childMatch">
                    <text class="name">孩子王晒娃大赛</text>
                    <view class="childMatchLogo">
                      <image class="childMatchLogo" src="../../static/image/28.png"></image>
                    </view>
                </view>
            </view>
        </swiper-item>
        <swiper-item>
            <scroll-view class="scroll-view" scroll-y>
                <view class="my-collection">
                    <view class="collection-item" wx:for="{{myData.favoritesList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.targetCode}}">
                        <image src="{{item.iconImg}}"></image>
                    </view>
                </view>
                <view class="bottom">已经拖到底啦</view>
            </scroll-view>
        </swiper-item>
        <swiper-item>
            <scroll-view class="scroll-view" scroll-y>
                <view class="my-collection">
                    <view class="collection-item" wx:for="{{myData.playLogList}}" wx:key="{{index}}" bindtap="detail" data-id="{{item.courseId}}">
                        <image src="{{item.courseIcon}}"></image>
                    </view>
                </view>
                <view class="bottom">已经拖到底啦</view>
            </scroll-view>
        </swiper-item>
        </swiper>
</template>