index.wxml 7.9 KB
<import src="../../tabbar.wxml" />
<template is="tabBar" data="{{tabBar}}" />
<view class='indexBox'>
    <!-- 分享弹框 -->
    <!-- <view class='mask' wx:if="{{shareBool}}">
        <view class='mask_Con'>
            <view class='mask_txt'>分享</view>
            <view class='mask_txt2'>发布班级:{{class_name}}</view>
            <view class='mask_txt2'>作业名称:{{homeworkName}}</view>
            <button class='mask_btn2' bindtap='goDetail'>前往作业详情</button>
            <button class='mask_btn1' open-type='share'>分享到班级群</button>
        </view>
    </view> -->
    <!-- banner -->
    <view class='banner'>
        <swiper bindchange='swiperChange' circular="true" autoplay='true' interval="4000">
            <block wx:for="{{banner}}" wx:key>
                <swiper-item>
                    <image src='{{item.image}}' bindtap="navgate" data-src="{{item.url}}"></image>
                </swiper-item>
            </block>
        </swiper>
        <!-- 小点点 -->
        <view class='dots'>
            <block wx:for="{{banner}}" wx:key>
                <view class="dot {{index == currentSwiper ? 'active' : ''}}"></view>
            </block>
        </view>
    </view>
    <!-- 布置作业 -->
    <view class='index_Con'>
        <view class='title'>布置作业</view>

        <view class='index_Con2'>
            <!-- 发布班级 -->
            <view class='lis' wx:key>
                <view class='lis_Txt'>发布班级</view>
                <view class='lis_Right'>
                    <picker class='picker' bindchange="bindPickerChange" value="{{class_name}}" range="{{array}}" data-name="{{class_name}}">
                        <view class='{{lis_RightInput}}'>{{class_name}} </view>
                        <view class='lis_RightImg'>
                            <image src='/image/4.png'></image>
                        </view>
                    </picker>
                </view>
            </view>
            <!-- 科目选择 -->
            <view class='lis'>
                <view class='lis_Txt'>科目选择</view>
                <view class='lis_Right'>
                    <picker bindchange="bindPickerChange2" class="picker" value="{{Subject_Name}}" range="{{array2}}">
                        <view class='{{lis_RightInput}}'>{{Subject_Name}}</view>
                         <view class='lis_RightImg'>
                            <image src='/image/4.png'></image>
                        </view>
                    </picker>
                </view>
            </view>

            <view class='lis' wx:if='{{Subject_Name=="其他"}}'>
                <view class='lis_Txt'>科目名称</view>
                <view class='lis_Right'>
                    <input placeholder="请输入科目名称" placeholder-style="font-size:24rpx;" class="inputProject" bindinput="inputSubject" value="{{tempSubValue}}"></input>
                </view>
            </view>
            <!-- 作业名称 --> 
            <view class='lis'>
                <view class='lis_Txt'>作业名称</view>
                <view class='lis_Right' style='padding-right:70rpx;'>
                    <input class='{{lis_RightInput}}' placeholder-class="place-holder" placeholder='请输入作业名称' bindinput='homeworkFun' maxlength='12' value='{{homeworkName}}'></input>
                    <!-- <view class='lis_RightImg'>
                        <image src='/image/4.png'></image> 
                    </view> -->
                </view>
            </view>
            <!-- 截止时间 --> 
            <view class='lis'>
                <view class='lis_Txt'>截止时间</view>
                <view class='lis_Right' >
                    <pickerYMDHM placeholder-class="place-holder" date="{{date}}" disabled="{{disabled}}" bind:onPickerChange="onPickerChange" startDate="{{startDate}}" endDate="{{endDate}}" >
                    </pickerYMDHM>
                </view>
            </view>

            <!-- 作业要求 -->
            <view class='lis2'>
                <view class='lis_Txt'>作业要求</view>
                <view class='lis2_textarea'>
                    <textarea  placeholder='此处输入作业要求(最多输入500个字)' maxlength='500' placeholder-class='textareaClass' class='textareaBox' bindinput='textareaFun' value='{{textareaValue}}'>
                    </textarea>

                    <view class='lis2_bottom' bindtap='addPicFun' wx:if="{{imagesImg.length < 1}}">
                        <view class='lis2_bottomImg'>
                            <image src='/image/17.png'></image>
                        </view>
                        <view class='lis2_bottomTxt'>添加图片</view>
                    </view>
                </view>

                <!-- 图片 -->
                <view class='li2_UpPic'>
                    <view class='li2_UpPic2'>
                        <view class='li2_UpPic2Img' wx:for="{{images}}" wx:key>
                            <image src='{{baseUrl}}' wx:if='{{item.indexOf("http")>-1}}'></image>
                            <image src='{{baseUrl}}{{item}}' wx:else></image>
                            <image class='removeImg' catchtap='removeFun' data-ind="{{index}}" src='/image/80.png'></image>
                        </view>
                        <!-- wx:if="{{imagesImg.length < 3}}" -->
                        <view class="{{li2_UpPic2Img2}}" bindtap='addPicFun'>
                            <image src='/image/61.png'></image> 
                        </view>
                    </view>

                </view>
            </view>
            <!-- 奖励设置 -->
            <view class='lis' bindtap='goReward'>
                <view class='lis_Txt'>奖励设置</view>
                <view class='lis_Right'>
                    <view class='lis_RightImg'>
                        <image src='/image/7.png'></image>
                    </view>
                </view>
            </view>
        </view>
    </view>

    <!-- 发布 -->
    <!-- <form class='formFa' bindsubmit="" report-submit='true' wx:if="{{share1}}"> -->
        <!-- <button form-type="submit" class='index_btn'>发布作业到班级群</button> -->
        <form report-submit='true' bindsubmit='addWorkFun2'>
            <button class='index_btn' form-type="submit" >发布作业到班级群</button>
        </form>
    <!-- </form> -->
    
    <!-- <button class='index_btn' open-type='share' wx:if="{{share2}}">分享到班级群</button> -->

</view>
<view class='footer_bottos'>
    <view class='footer_li' bindtap='gonav1'>
        <image class='footer_liImg' src='/image/52.png' mode='widthFix'></image>
        <view class='footer_txt'>布置作业</view>
    </view>
    <view class='footer_li' bindtap='gonav2'>
        <image class='footer_liImg' src='/image/3.png' mode='widthFix'></image>
       <view class='footer_txt'>收作业</view>
    </view>
    <view class='footer_li' bindtap='gonav3'>
        <image class='footer_liImg' src='/image/1.png' mode='widthFix'></image>
        <view class='footer_txt'>我的</view>
    </view>
</view>
<!-- <view class="gogngao_cion"  wx:if='{{getMessage}}' bindtap="setPush">
    <image src='/image/tongzhi.png'></image>
   <text>通知</text> 
</view> -->


<!-- <view class="mask" wx:if='{{chooseClass}}'>
    <view class="slect_contaner">
        <view class="slect_top">
            <view class="cancel_btn" bindtap="cancle">取消</view>
            <view class="confirm_btn" bindtap="makeSure">确定</view>
        </view>
        <view class="slect_body">
            <checkbox-group bindchange='checkboxchange'  >
                <label class="item" wx:for='{{allClass}}' wx:key='{{index}}' data-item='{{item.toString()}}'>
                    <checkbox value="{{item.id}}" data-index='{{index}}' checked="{{item.choose}}">{{item.name}}</checkbox>
                </label> 
            </checkbox-group>
        </view>
    </view>
</view> -->

<cover-view class="quitTestCount" wx:if='{{test}}' bindtap="quitTest">
    退出体验
</cover-view>