Commit 01018a2c authored by youjie's avatar youjie

no message

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