Commit 01018a2c authored by youjie's avatar youjie

no message

parent 4aefd767
<template> <template>
<view class="classList-box"> <view class="classList-box">
<view class="classList-content-box" v-for="(i,indexs) in classList" :key="indexs"> <view class="classList-content-box" v-for="(i,indexs) in classList" :key="indexs">
<view class="content-time"> <template v-if="i.SubList.length>0">
<view class="time-Wire"> <view class="content-time">
<view class="time-round"></view> <view class="time-Wire">
</view> <view class="time-round"></view>
<view class="time-date">
<view class="time-num">
<view>{{i.DateStr.slice(5,7)}}/</view>
<view>{{i.DateStr.slice(8,10)}}</view>
</view> </view>
<view class="time-text"> <view class="time-date">
{{i.Week}} <view class="time-num">
<view>{{i.DateStr.slice(5,7)}}/</view>
<view>{{i.DateStr.slice(8,10)}}</view>
</view>
<view class="time-text">
{{i.Week}}
</view>
</view> </view>
</view> </view>
</view> <van-swipe-cell class="content-right"
<van-swipe-cell class="content-right" :class="{'activeOne':indexs==0,'activeTwo':indexs==1,
:class="{'activeOne':indexs==0,'activeTwo':indexs==1, 'activeThree':indexs==2,'activeFour':indexs==3,
'activeThree':indexs==2,'activeFour':indexs==3, 'activeFive':indexs==4,'activeSix':indexs==5,
'activeFive':indexs==4,'activeSix':indexs==5, 'activeSeven':indexs==6}"
'activeSeven':indexs==6}" id="swipe-cell"
id="swipe-cell" :right-width="116"
:right-width="116" async-close
async-close :disabled="true">
:disabled="true"> <view class="content-text-box">
<view class="content-text-box"> <view class="right-box">
<view class="right-box"> <view v-for="(item,index) in i.SubList"
<view v-for="(item,index) in i.SubList" :key="index"
:key="index" class="Festival-box activeOne"
class="Festival-box activeOne" :class="{'activeOne':item.StartTime=='09:30','activeTwo':item.StartTime=='11:10',
:class="{'activeOne':item.StartTime=='09:30','activeTwo':item.StartTime=='11:10', 'activeThree':item.StartTime=='13:30','activeFour':item.StartTime=='15:10',
'activeThree':item.StartTime=='13:30','activeFour':item.StartTime=='15:10', 'activeFive':item.StartTime=='16:50','activeSix':item.StartTime=='19:00'}">
'activeFive':item.StartTime=='16:50','activeSix':item.StartTime=='19:00'}"> <view>
<view> <text v-if="item.StartTime=='09:30'"></text>
<text v-if="item.StartTime=='09:30'"></text> <text v-if="item.StartTime=='11:10'"></text>
<text v-if="item.StartTime=='11:10'"></text> <text v-if="item.StartTime=='13:30'"></text>
<text v-if="item.StartTime=='13:30'"></text> <text v-if="item.StartTime=='15:10'"></text>
<text v-if="item.StartTime=='15:10'"></text> <text v-if="item.StartTime=='16:50'"></text>
<text v-if="item.StartTime=='16:50'"></text> <text v-if="item.StartTime=='19:00'"></text>
<text v-if="item.StartTime=='19:00'"></text> </view>
</view> <view>
<view> {{item.StartTime}}
{{item.StartTime}} </view>
</view> </view>
</view> </view>
</view> </view>
</view> <view slot="right" class="van-swipe-cell__right">
<view slot="right" class="van-swipe-cell__right"> <van-button square type="danger" custom-style="height:100%;">删除</van-button>
<van-button square type="danger" custom-style="height:100%;">删除</van-button> </view>
</view> </van-swipe-cell>
</van-swipe-cell> </template>
</view> </view>
</view> </view>
</template> </template>
...@@ -79,7 +81,6 @@ ...@@ -79,7 +81,6 @@
} }
onMounted(() => { onMounted(() => {
}) })
return { return {
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
display: flex; display: flex;
} }
.header-title{ .header-title{
width: 110rpx; width: 102rpx;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
margin-left: 2rpx; margin-left: 2rpx;
} }
.header-week{ .header-week{
width: 87rpx; width: 90rpx;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -257,6 +257,7 @@ ...@@ -257,6 +257,7 @@
let arr = [] let arr = []
data.dataList = res.Data data.dataList = res.Data
data.dataList.forEach((item,index)=>{ data.dataList.forEach((item,index)=>{
item.SubList.sort((a,b)=>a.Sort-b.Sort)
item.SubList.forEach(i=>{ item.SubList.forEach(i=>{
arr.push(i) arr.push(i)
}) })
...@@ -415,9 +416,6 @@ ...@@ -415,9 +416,6 @@
margin-right: 5rpx; margin-right: 5rpx;
margin-bottom: 5rpx; margin-bottom: 5rpx;
} }
.titleHeader-mark view:last-child{
margin-right: 0;
}
.titleHeader-mark view.activeOne{ .titleHeader-mark view.activeOne{
background: #FC952A; background: #FC952A;
} }
......
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