<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
    <meta name="keywords" content="{$GetClassMetaKeyWords}">
    <meta name="description" content="{$GetClassMetaDescript}">
    <meta name="format-detection" content="telephone=no">
    <title>{KS:Field:name}</title>

    <link rel="stylesheet" href="{$GetTemplateDir}/static/common/css/common.css?{$GetHash}">
    <link rel="stylesheet" href="{$GetTemplateDir}/static/user_teacher/css/teacher.css?{$GetHash}">

    <script>
        var templateDir = '{$GetTemplateDir}';
        var hash = '{$GetHash}'
    </script>
</head>
<body id="body">

<div id="app">
    <router-view></router-view>
</div>

<template id="index">
        <div>
            <input type="hidden" value="{=GetUserUrl(basic/signinlist}" id="URL_signinlist">
            <div class="SNS_top sns_box_padding">
                <div class="sns_advices" onclick="location.href='{=GetUserUrl(basic/message)}'">
                    <img src="{$GetTemplateDir}/static/user_teacher/images/me_btn_message.png">
                    <span class="message-num" v-show="message != 0">{{message}}</span>
                </div>
                <div class="sns_setup" onclick="location.href='{=GetUserUrl(basic/userinfo)}'">
                    <img src="{$GetTemplateDir}/static/user/images/me_btn_setting.png">
                </div>
                <div class="check-ins" @click="SignIn" v-html="sign"> 
                    </div>
    
                <div class="sns_buddha" onclick="location.href='{=GetUserUrl(basic/uploadpic)}'">
                    <div class="default-avatar" style="background-image:url({$GetInstallDir}UploadFiles/avatar/{KS:Field:Userid}.jpg)">
                      
                    </div>
                    <div class="buddha_name">
                        {#GroupName}{#IsVip}                   
                    </div>
    
                </div>
    
                <div class="sns_monicker" onclick="location.href='{=GetUserUrl(basic/zl)}'">
                        {KS:Field:UserName}
                </div>
                <div class="sns_bottom"  onclick="location.href = '{=GetUserUrl(basic/myaccount}'">
                    <ul>
                        <li>
                            <em>{KS:Field:Money(2)}</em>
                            <i>账户总额</i>
                        </li>
                        <li>
                            <em>{#HaveWithdraw}</em>
                            <i>已提现</i>
                        </li>
                        <li>
                            <em>{#CanWithdraw}</em>
                            <i>可提现</i>
                        </li>
                    </ul>
    
                </div>
            </div>
          
            <div class="SNS_centre sns_box_padding">
                <section class="SNS_Management line ">
                    <h2>我是教师</h2>
                    <div class="SNS_nav">
                            <ul>
                                <li>
                                    <a href="#/courseManage">
                                        <div class="icon">
                                            <img src="{$GetTemplateDir}/static/user_teacher/images/me_icon_classmanage.png">
                                        </div>
                                        <div class="text">
                                            课程管理
                                        </div>
                                    </a>
                                </li>
                            
                            <li>
                                <a href="#/orderList">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user_teacher/images/me_icon_ordermanage.png">
                                    </div>
                                    <div class="text">
                                        订单管理
                                    </div>
                                </a>
                            </li>    
                           
                            <li>
                                <a href="#/settlement">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user_teacher/images/me_icon_orderbalance.png">
                                    </div>
                                    <div class="text">
                                        订单结算
                                    </div>
                                </a>
                            </li>   
                            <li>
                                <a href="{=GetUserUrl(basic/mywantmoney}">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user/images/me_icon_recharge.png">
                                    </div>
                                    <div class="text">
                                        我要赚钱
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </section>
                <section class="SNS_Management ">
                    <h2>
                        我是学员
                    </h2>
                    <div class="SNS_nav">
                        <ul>
                            <li>
                                <a href="{=GetUserUrl(course/mycoslearn)}">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user_teacher/images/me_icon_record.png">
                                    </div>
                                    <div class="text">
                                        我的课程
                                    </div>
                                </a>
                            </li>
                            
                            <li>
                                <a href="{=GetUserUrl(course/MyCosOrder)}">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user_teacher/images/me_icon_classorder.png">
                                    </div>
                                    <div class="text">
                                        我的订单
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="{=GetUserUrl(basic/myaccount}">
                                    <div class="icon">
                                        <img src="{$GetTemplateDir}/static/user/images/me_icon_card.png">
                                    </div>
                                    <div class="text">
                                        我的账户
                                    </div>
                                </a>
                            </li>
                            
    
                        </ul>
                    </div>
                </section>
            </div>
            <div class="footer-tabbar-blank"></div>
            <footer class="footer-tabbar line line-top" @touchmove="stopScroll(event)">
                <ul>
                    <li onclick="location.href='/'"><div class="icon icon-index"></div>首页</li>
                    <li onclick="location.href='/#/find'"><div class="icon icon-find"></div>发现</li>
                    <li onclick="location.href='/#/community'"><div class="icon icon-community"></div>社区</li>
                    <li onclick="location.href='{=GetRewriteUrl(examindex)}'"><div class="icon icon-exercise"></div>练习</li>
                    <li class="on"><div class="icon icon-me"></div>我的</li>
                </ul>
            </footer>
    
        </div>
    </template>

<!--教师管理 -->
<template id="teacherManage">
    <div>
        <div class="loading" v-if="loading"></div>
        <header class="header" id="header">
                <div class="box">
                    <div class="backicon" id="header-back" onclick="location.href='/user'"></div>
                    <div class="text" id="header-title">教师管理</div>
                </div>
         </header>
      
        <section class="common-tab">
            <ul>
                <li :class="verify == 0 && 'on'" @click="go('verify',0)">所有教师</li>
                <li :class="verify == 2 && 'on'" @click="go('verify',2)">已审核</li>
                <li :class="verify == 1 && 'on'" @click="go('verify',1)">未审核</li>
            </ul>
        </section>
        <section class="NSN_teacher_audit">
            <ul v-if="list.length > 0" >
                <li v-for="(item,i) in list" :key="i">
                    <div class="default-avatar">
                        <div class="images-bg" :style="{backgroundImage:'url('+item.photo+')'}"></div>

                    </div>
                    <div class="text">
                        <div class="designation">
                            <span class="name">{{item.TName}}</span>
                            <span class="professoriate" >{{item.Tlevel}}</span>
                            <em class="audit" @click="changeState(item)">
                                {{item.verify == 1 ? '已审核' : '未审核'}}
                            </em>
                        </div>
                        <div class="abstract" v-html="msg(item.Tintro)" >
                            {{item.Tintro || '暂未简介'}}

                        </div>
                    </div>
                </li>

            </ul>
            <div v-else-if="pageCount !== null" class="empty">
                暂无数据
            </div>

            <div class="load-completed" v-if='pageCount && page >= pageCount'>已经没有更多了~</div>



            <div class="locker"  :class="addStyle==1 && 'show_on'">
                <div class="locker-ctrl" >
                    <div class="locker-mask">
                        <div class="locker-roll on" @click="yulan()">预览</div>
                        <div class="locker-roll">取消审核</div>
                        <div class="locker-roll"  @click="lcokerDown">取消</div>
                    </div>
                </div>
                <div class="locker-bg" :class="addStyle==1 && 'show_on'"  @click="lcokerDown"></div>
            </div>
        </section>
    </div>
</template>

<!--学生管理 -->
<template id="studentManage">
    <div >
        <div class="loading" v-if="loading"></div>
        <header class="header" id="header">
                <div class="box">
                    <div class="backicon" id="header-back" onclick="location.href='/user'"></div>
                    <div class="text" id="header-title">学员管理</div>
                </div>
        </header>
        <div class="page-exercise">
            <div class="header MIS_teacher_search">
                <div class="search">
                    <input class="search-text" type="text" v-model="key" @keydown=onKeyDown($event) placeholder="输入收搜的学员">
                </div>
            </div>
            <div class="MIS_teacher scroll-view  find-list-top" @scroll="scroll($event)"  :style="{height:scorllHeight+'px'}">
                <ul v-if="list.length > 0">
                    <li class="girl" v-for="(item, i) in list" :key="i"  >
                        <div class="name">
                            {{item.UserName}}
                            <span class="girl_1" ><img :src="item.Sex == '女' ? '{$GetTemplateDir}/static/user_teacher/images/sex_icon_girl.png':'{$GetTemplateDir}/static/user_teacher/images/sex_icon_boy.png' "></span>

                        </div>
                        <div class="phone">
                            联系电话：{{item.Mobile}}
                        </div>
                        <div class="account">
                            学生账号：{{item.UserID}}
                        </div>
                    </li>

                </ul>

                <div v-else-if="pageCount !== null" class="empty">
                    暂无数据
                </div>

                <div class="load-completed" v-if='pageCount && page >= pageCount'>已经没有更多了~</div>
            </div>

        </div>
    </div>
</template>


<!--订单管理 -->
<template id="orderList">
    <div>
        <div class="loading" v-if="loading"></div>
        <div class="mask-bg" v-show="showFlag" @click="maskTrigger"></div>
        <header class="header" id="header">
                <div class="box">
                    <div class="backicon" id="header-back" onclick="location.href='/user'"></div>
                    <div class="text" id="header-title">订单管理</div>
                </div>
        </header>
        <div class="find-header-wrap">
            <div class="find-filter line find-filter-top"><ul>
                <li :class="showtype==0 && 'on'" @click="maskTrue">{{(showtype==0 && '全部订单') ||(showtype==1 && '全部订单') || (showtype==2 && '点播已付款') || (showtype==3 && '点播未付款') || (showtype==4 && '面授已付款') || (showtype==5 && '面授未付款') || (showtype==6 && '直播已付款') || (showtype==7 && '直播未付款')}}<i class="icon-arrow"></i></li>
                <li :class="showtype==1 && 'on'" @click="go('showtype',1)">今日订单<i class="icon-arrow"></i></li>
            </div>

            <div class="relative find-filter-top">
                <div class="find-filter-sort" v-show="showFlag" >
                    <ul>
                        <li :class="showtype==0 && 'on'" @click="go('showtype',0)">全部订单</li>
                        <li :class="showtype==2 && 'on'" @click="go('showtype',2)">点播已付款</li>
                        <li :class="showtype==3 && 'on'" @click="go('showtype',3)">点播未付款</li>
                        <li :class="showtype==4 && 'on'" @click="go('showtype',4)">面授已付款</li>
                        <li :class="showtype==5 && 'on'" @click="go('showtype',5)">面授未付款</li>
                        <li :class="showtype==6 && 'on'" @click="go('showtype',6)">直播已付款</li>
                        <li :class="showtype==7 && 'on'" @click="go('showtype',7)">直播未付款</li>
                    </ul>
                </div>
            </div>
        </div>
       

        <div class="orders_teach  find-list-top">
            <ul v-if="list.length > 0">
                <li v-for="(item,i) in list" :key="i">
                    <div class="order_time">
                        下单时间：{{item.InputTime}}
                        <span class="Spend">{{item.statusStr}}</span>

                    </div>
                    <div class="text">
                        <h2>{{item.CName}}</h2>

                        <p>购买账号：{{item.OrderID}}</p>
                        <p>订单号：{{item.OrderID}}</p>
                        <p>订单金额：<span>￥{{item.GoodsMoney}}</span></p>
                    </div>
                </li>

            </ul>
            <div v-else-if="pageCount != null" class="empty">暂无数据</div>
            <div class="load-completed" v-if='pageCount && page >= pageCount'>已经没有更多了~</div>
        </div>


    </div>
</template>
<!--课程管理 -->
<template id="courseManage">
       
    <div>
            <div class="loading" v-if="loading"></div>
            <div class="mask-bg" @click="filter = 0" v-show="filter != 0"></div>
             <header class="header" id="header">
                <div class="box">
                    <div class="backicon" id="header-back" onclick="location.href='/user'"></div>
                    <div class="text" id="header-title">课程管理</div>
                </div>
            </header>
            <div class="find-header-wrap">
                <div class="find-filter line find-filter-top"><ul>
                    <ul>
                        <li :class="filter == 1 && 'on'" @click="filter = 1">{{(costype==0 && '点播课程') ||(costype==1 && '面授课程') ||(costype==5 && '直播课程')}}<i class="icon-arrow"></i></li>					
                        <li :class="filter == 2 && 'on'" @click="filter = 2">筛选<i class="icon-filter"></i></li>
                    </ul>
                </div>
                <div class="relative find-filter-top">
                    <div class="find-filter-sort" v-show="filter == 1">
                        <ul>
                            <li :class="costype==0 && 'on'" @click="go('costype',0)">点播课程</li>                                
                            <li :class="costype==1 && 'on'" @click="go('costype',1)">面授课程</li>
                            <li :class="costype==5 && 'on'" @click="go('costype',5)">直播课程</li>
                        </ul>
                    </div>
                    <div class="find-filter-other"  v-show="filter == 2">
                        <div class="name">审核状态</div>
                        <div class="option-list">
                            <span :class="verify==0 && 'on'" @click="verify = 0">不限</span>
                            <span :class="verify==2 && 'on'" @click="verify = 2">已审核</span>
                            <span :class="verify==1 && 'on'" @click="verify = 1">未审核</span>
                        </div>
                        <div class="name">上架状态</div>
                        <div class="option-list">
                            <span :class="isoff==0 && 'on'" @click="isoff = 0">不限</span>
                            <span :class="isoff==2 && 'on'" @click="isoff = 2">已上架</span>
                            <span :class="isoff==1 && 'on'" @click="isoff = 1">未上架</span>
                        </div>
                        <div class="name">审核状态</div>
                        <div class="option-list">
                            <span :class="free==0 && 'on'" @click="free = 0">不限</span>
                            <span :class="free==2 && 'on'" @click="free = 2">付费</span>
                            <span :class="free==1 && 'on'" @click="free = 1">免费</span>
                        </div>
                        <div class="button" @click="confirm('reset')">重置筛选</div>
                        <div class="button main-button" @click="confirm">确定</div>
                    </div>
                </div>
            
            </div>
         
                <div class="find-list ">
                        <ul v-if="list.length > 0">
                        <li v-for="(item,i) in list" :key="i" @click="changeState(item,i)">
                            <div class="default-bg"><div class="images-bg" :style="{backgroundImage:'url('+item.photourl+')'}"></div>
                            </div>	
                            <div class="name">
                               {{item.Name}}
                             </div>			
                             <div class="price"><span class="grounding" :class="item.IsOff == 0 && 'ground'"> {{item.IsOff == 1 ? '已上架' : '未上架'}}</span> <span class="cost">{{item.Money}}</span>
                                {{item.Price_Member}}</div>		
                                
                        </li>
                    </ul>
                    <div v-else-if="pageCount != null" class="empty">暂无数据</div>
                    <div class="load-completed" v-if='pageCount && page >= pageCount'>已经没有更多了~</div>
                </div>
          
            <div class="locker"  :class="addStyle==1 && 'show_on'">
                    <div class="locker-ctrl" >
                        <div class="locker-mask">
                            <a class="locker-roll" @click="shelves()" v-if="itmeObj.IsOff == 0">上架</a>
                            <a class="locker-roll" @click="shelves()" v-else>取消上架</a>
                            <a class="locker-roll"  @click="lcokerDown">取消</a>
                        </div>
                    </div>
                    <div class="locker-bg" :class="addStyle==1 && 'show_on'"  @click="lcokerDown"></div>
                </div>
    </div>
</template>
<template id="settlement">
    <div>
            <header class="header" id="header">
                    <div class="box">
                        <div class="backicon" id="header-back" onclick="location.href='/user'"></div>
                        <div class="text" id="header-title">订单结算</div>
                    </div>
            </header>
            <div class="loading" v-if="loading"></div>
			<div class="cash-box" >
				<div class="cash-tab">
					<div class="cash-tab-item">
						<span class="cash-price"><font>￥</font>{{CCash}}</span>
						<span class="cash-info">账户余额</span>
					</div>
					<div class="cash-tab-item">
						<span class="cash-price cash-able"><font>￥</font>{{YCash}}</span>
						<span class="cash-info">已提现</span>
					</div>
				</div>
				<div class="cash-btn">
                    <span class="cash-money">可提现：<span class="cash-font">￥{{kCash}}</span></span>    
					<a class="cash-btn-st" href="#/AFCW">申请提现</a>
				</div>
			</div>		
          
			<div class="campus-list" >
                <div class="cash-code">提现记录</div>
                <div v-if="list.length > 0">

               
                    <div class="cash-list "v-for="(item,i) in list" :key="i">
                        <div class="cash-list-item">
                            <div class="cash-time">
                                {{item.adddate}}
                            </div>
                            <div class="cash-staue">
                                <a :class="item.payMentStatus=='未打款' && 'on1'||item.payMentStatus=='已到账' && 'on'">{{item.payMentStatus}}</a>
                            
                            </div>
                        </div>
                        <div class="cash-list-sitem">
                                <div class="cash-list-txt">
                                    <h5>{{item.payMentType}}</h5>
                                    <p class="cash-account">￥{{item.Money}}</p>
                                    
                                </div>
                                
                        </div>
                    </div>
                 </div>
              
          
                 <div v-else-if="pageCount != null" class="empty">暂无数据</div> 
        </div>
       
		</div>

</template>
<!--申请提现 -->
<template id="AFCW">
    <div>
        <header class="header" id="header">
                <div class="box">
                    <div class="backicon" id="header-back" onclick="location.href='#/settlement'"></div>
                    <div class="text" id="header-title">申请提现</div>
                </div>
        </header>
        <div class="myform">
                    <div class="form-group">
                       <span class="bt">提现金额</span>
                       <input type="text" name="money" @keyup="actualmoney" maxlength="10" placeholder="请输入提现金额" class="textbox w65 money-yuan"  v-model="money">
                       <i class="unit yuan">元</i>
                    </div>  
                  
                    <p class="tips">可申请金额[{{kTxAmount}}]元,注提现手续费{{poundage}},实际到账{{countMoney}} </p> 
                    <div class="form-group">
                       <p class="bt">提取方式</p>
                       <p class="pos-box label-list">
                       <label><input type="radio" name="applytype"  value="0" v-model="applytype">银行转账</label>
                       <label><input type="radio" name="applytype"  value="1" v-model="applytype" checked>线下现金</label>
                      
                       </p>
                    </div> 
                    <!-- mode1 -->
                   
                    <div class="form-group">
                        <span class="bt">结算标题</span>
                        <span class="pos-txt">
                                <input type="text" name="title"   class="textbox money-yuan" v-model="title" >
                        </span>         
                    </div>  

                    <div class="form-group" v-show="applytype == 0">
                        <span class="bt">开户人姓名</span>
                        <span class="pos-txt">
                            <input type="text" name="applicant"  class="textbox money-yuan" v-model="applicant" >
                        </span>
                    </div> 

                    <div class="form-group" v-show="applytype == 0">
                        <span class="bt">开户银行</span>
                        <span class="pos-txt"> <input type="text" name="bankaccount"  class="textbox money-yuan" v-model="bankaccount"></span>
                    </div>  
                    
                    <div class="form-group" v-show="applytype == 0">
                        <span class="bt">银行卡号</span>
                        <span class="pos-txt"> <input type="text" name="accountnumber"  class="textbox money-yuan" v-model="accountnumber"></span>
                    </div> 

                    <div class="form-group">
                            <span class="bt">联系电话</span>
                            <span class="pos-txt"> <input type="number" name="phone" class="textbox money-yuan" v-model="phone"></span>
                    </div> 

                        <div class="form-group">
                            <span class="bt">备注</span>
                            <span class="pos-txt"> <input type="number" name="remarks" class="textbox money-yuan" v-model="remarks"></span>
                    </div> 

                
                    
                  
                  
                   <div class="s_btn"><input type="button" value="提现申请" @click="submit" class="button"/></div>
              

      
    </div>


</template>


<script src="{$GetTemplateDir}/static/user_teacher/js/teacher.js?{$GetHash}"></script>
</body>
</html>