Commit ea4a1da9 authored by Mac's avatar Mac

1

parent e8b5b8b1
...@@ -225,10 +225,7 @@ import tabbars from '@/components/tabbar/index'; ...@@ -225,10 +225,7 @@ import tabbars from '@/components/tabbar/index';
screenshow:false, screenshow:false,
screenList:[], screenList:[],
contents:[], contents:[],
contents2:[ contents2:[],
{'ID': 0, Name: '李老师'},
{'ID': 1, Name: '林老师'},
],
subscribeList:[], subscribeList:[],
weekMode:true, weekMode:true,
msg:{ msg:{
...@@ -236,7 +233,8 @@ import tabbars from '@/components/tabbar/index'; ...@@ -236,7 +233,8 @@ import tabbars from '@/components/tabbar/index';
SelectEndTime:'', SelectEndTime:'',
CourseClassId:0, CourseClassId:0,
TeacherId:0, TeacherId:0,
} },
showteacher:0,//0为约课 1位老师进去查看自己的约课情况
} }
}, },
...@@ -251,6 +249,14 @@ import tabbars from '@/components/tabbar/index'; ...@@ -251,6 +249,14 @@ import tabbars from '@/components/tabbar/index';
this.showtabbars=false this.showtabbars=false
} }
} }
if(options && options.teacher){//判断是否个人老师进入页面
this.showteacher = options.teacher;
this.list= [{
name: '综合排序'
}, {
name: '课程'
}],
}
this.msg.SelectStartTime = formatDate(new Date(), 'yyyy-MM-dd'), this.msg.SelectStartTime = formatDate(new Date(), 'yyyy-MM-dd'),
this.msg.SelectEndTime = formatDate(new Date(), 'yyyy-MM-dd'), this.msg.SelectEndTime = formatDate(new Date(), 'yyyy-MM-dd'),
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</view> </view>
<view class="box-top" style="margin-top: 15px;" v-if=" data.StudentNumType==1"> <view class="box-top" style="margin-top: 15px;" v-if=" data.StudentNumType==1">
<view class="top-item"> <view class="top-item">
<text>预约课节</text> <text>课时数量</text>
<input class="uni-input " type="number" v-model="classDay" style='text-align: right;' placeholder="输入课节" @blur='totalsc'/> <input class="uni-input " type="number" v-model="classDay" style='text-align: right;' placeholder="输入课节" @blur='totalsc'/>
</view> </view>
<view class="top-item" style="border: none;" @click="show=true"> <view class="top-item" style="border: none;" @click="show=true">
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
totalsc(){//总时长计算和点数的计算 totalsc(){//总时长计算和点数的计算
if(this.classDay<this.ifvalue){ if(this.classDay<this.ifvalue){
uni.showToast({ uni.showToast({
title: "不能小于"+this.ifvalue+'课', title: "不能小于"+this.ifvalue+'课时数量',
icon:'none' icon:'none'
}) })
...@@ -217,9 +217,11 @@ ...@@ -217,9 +217,11 @@
}, },
confirm(e){ confirm(e){
this.addMsg.StudyDate = e.hour+':'+e.minute this.addMsg.StudyDate = e.hour+':'+e.minute
let msg = this.addMsg
msg.StudyDateStr = this.data.StudyDateStr+' '+this.addMsg.StudyDate+':00'
this.request2({ this.request2({
url: '/api/AppletPoint/GetTeacherCourseOrder', url: '/api/AppletPoint/GetTeacherCourseOrder',
data: this.addMsg data: msg
}, },
res => { res => {
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment