Commit 6f8db03d authored by 罗超's avatar 罗超

2

parent 9934466e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="navbar"> <view class="navbar">
<van-icon name="arrow-left" size="36rpx" @click="back"/> <van-icon name="arrow-left" size="36rpx" @click="back"/>
<i class="iconfont icon-calendar" style="font-size: 60rpx;" @click="isShowCalendar=true"></i> <i class="iconfont icon-calendar" style="font-size: 60rpx;" @click="isShowCalendar=true"></i>
<view class="dateStr"> <view class="dateStr" @click="isShowCalendar=true">
{{dateStr}} {{dateStr}}
</view> </view>
<view class="year"> <view class="year">
...@@ -314,6 +314,32 @@ ...@@ -314,6 +314,32 @@
} }
}) })
}, },
updateBaseInfo() {
proxy.$request("/AppletCenter/GetScrollAppointmentBaseInfo", {}).then(res => {
if (res.Code == 1) {
data.basics = res.Data;
}
})
},
updateTeacherList(){
uni.showLoading({
title: '加载中...'
})
proxy.$request("/AppletCenter/GetScrollAppointmentTeacherList", data.msg).then(res => {
if (res.Code == 1) {
data.teacherList = res.Data;
if (data.teacherList.length > 0) {
data.courselist = data.teacherList[data.current].CourseTimeList
data.schoolName = data.teacherList[data.current].SchoolName
data.roomName = data.teacherList[data.current].RoomName
methods.courseGroup()
} else {
data.courselist = []
}
uni.hideLoading()
}
})
},
goRecord() { goRecord() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/appointment/mySubscribe', url: '/pages/appointment/mySubscribe',
...@@ -444,7 +470,8 @@ ...@@ -444,7 +470,8 @@
success(res) { success(res) {
proxy.$request("/AppletCenter/SetScrollAppointment", obj).then(res => { proxy.$request("/AppletCenter/SetScrollAppointment", obj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
methods.getBaseInfo() methods.updateBaseInfo()
methods.updateTeacherList()
data.showlay=true data.showlay=true
} }
}) })
......
...@@ -76,6 +76,16 @@ ...@@ -76,6 +76,16 @@
height: 100rpx; height: 100rpx;
} }
.box-item {
border-radius: 24rpx;
box-sizing: border-box;
padding: 30rpx;
background-color: #FFF;
font-size: 24rpx;
box-shadow: 2rpx 4rpx 40rpx 0px rgba(212, 212, 212, 0.6);
position: relative;
}
.listItemBox1 { .listItemBox1 {
width: 100%; width: 100%;
display: flex; display: flex;
...@@ -164,7 +174,8 @@ ...@@ -164,7 +174,8 @@
font-weight: 500; font-weight: 500;
color: #111111; color: #111111;
} }
.quxiaoBtn{
.quxiaoBtn {
box-sizing: border-box; box-sizing: border-box;
padding: 6rpx 12rpx; padding: 6rpx 12rpx;
border-radius: 10rpx; border-radius: 10rpx;
...@@ -254,7 +265,8 @@ ...@@ -254,7 +265,8 @@
</view> </view>
</view> </view>
<view class="stateBox"> <view class="stateBox">
<view class="StateName" :style="{color: x.State == 2?'#4C50E7':x.State == 4?'#EF5361':x.State == 5?'#d4d4d4':'#111111'}"> <view class="StateName"
:style="{color: x.State == 2?'#4C50E7':x.State == 4?'#EF5361':x.State == 5?'#d4d4d4':'#111111'}">
{{x.StateName}} {{x.StateName}}
</view> </view>
</view> </view>
...@@ -518,10 +530,10 @@ ...@@ -518,10 +530,10 @@
this.getList() this.getList()
data.popupshow2 = false data.popupshow2 = false
}, },
getWeek(d){ getWeek(d) {
const date=new Date(d) const date = new Date(d)
const week = date.getDay() const week = date.getDay()
let weekStr="" let weekStr = ""
switch (week) { switch (week) {
case 0: case 0:
weekStr = '星期天'; weekStr = '星期天';
......
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