mytrain.wxml 2.9 KB
<view class="mytrain">
    <image src="/imgs/mytrain.png"></image>
    <view class='my_headitem'>
        <view class="my_headitemtop">
            <view class='my_headitemimg'>
                <image src="{{datalist.avatar?datalist.avatar:'/imgs/icon_59.png'}}"></image>
            </view>
            <view class="my_headitemname">
                <view class='word'>{{datalist.user_nickname}}</view>
                <view class="word1">{{datalist.status}}<image src="/imgs/more_gray.png"></image>
                </view>
                <view class='star_box'>
                    <image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill'
                        wx:if='{{datalist.level>0}}'>
                    </image>
                    <image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill'
                        wx:if='{{datalist.level>1}}'>
                    </image>
                    <image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill'
                        wx:if='{{datalist.level>2}}'>
                    </image>
                    <image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill'
                        wx:if='{{datalist.level>3}}'>
                    </image>
                    <image src="/imgs/xingxing_weixuanzhong_icon@2x.png" mode='scaleToFill'
                        wx:if='{{datalist.level>4}}'>
                    </image>
                </view>
            </view>
            <view class="mystudytime">
                <view class="time">{{datalist.study_time?datalist.study_time:0}}</view>
                <view class="mytime">
                    <image src="/imgs/clock.png"></image>
                    我的学时
                </view>
            </view>

        </view>
    </view>

    <view class="rule">
        <view class="rule_box">
            <view class="rule_line"></view>
            规则
        </view>
        <view>
            1.答对全部题目即可获得学时
        </view>
        <view>
            2.如有题目打错不能获得学时,请认真学习后重新答题
        </view>
        <view>
            3.获得的学时将同步累加计入志愿服务总工时
        </view>
    </view>

    <view class="rule_box">
        <view class="rule_line"></view>
        答题
    </view>

    <view class="myanswer" wx:for="{{list.data}}" wx:if="{{item.user_status==1}}">
        <image src="{{item.pic}}"></image>
        <view class="myanswer_right">
            <view class="myanswer_name">
                {{item.title}}
            </view>
            <view class="myanswer_num">
                <view>
                    {{item.num}}道题
                </view>
                <view class="myanswer_end">
                    完成答题
                    <image src="/imgs/more.png"></image>
                </view>
            </view>
        </view>
    </view>


</view>