|
@@ -6,25 +6,24 @@
|
|
<view class="page-view" v-if="isHomeLoad">
|
|
<view class="page-view" v-if="isHomeLoad">
|
|
<!-- 成绩统计 -->
|
|
<!-- 成绩统计 -->
|
|
<view class="bg1">
|
|
<view class="bg1">
|
|
- <view class="circle_line1"></view>
|
|
|
|
- <view class="circle_line2"></view>
|
|
|
|
- <view class="circle_line3"></view>
|
|
|
|
|
|
+ <view class="circle-line1"></view>
|
|
|
|
+ <view class="circle-line2"></view>
|
|
|
|
+ <view class="circle-line3"></view>
|
|
<top-info :timeStamp="timeStamp"></top-info>
|
|
<top-info :timeStamp="timeStamp"></top-info>
|
|
- <scroll-view class="scroll_view" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
|
|
|
|
- <view class="view_box">
|
|
|
|
- <view class="scroll_view_item" v-for="(item,index) in cardList" :key="index"
|
|
|
|
|
|
+ <scroll-view class="scroll-view" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
|
|
|
|
+ <view class="view-box">
|
|
|
|
+ <view class="scroll-view-item" v-for="(item,index) in cardList" :key="index"
|
|
@click="navTab(index)">
|
|
@click="navTab(index)">
|
|
- <view class="card_info">
|
|
|
|
|
|
+ <view class="card-info">
|
|
<view :class="item.icon"></view>
|
|
<view :class="item.icon"></view>
|
|
<view class="title">{{item.title}}</view>
|
|
<view class="title">{{item.title}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="chart_box">
|
|
|
|
|
|
+ <view class="chart-box">
|
|
<qiun-data-charts type="arcbar" :chartData="item.data" :canvas2d='true'
|
|
<qiun-data-charts type="arcbar" :chartData="item.data" :canvas2d='true'
|
|
:canvasId='item.canvasId' :opts="item.chartOpts" />
|
|
:canvasId='item.canvasId' :opts="item.chartOpts" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
<!-- 通知 -->
|
|
<!-- 通知 -->
|
|
@@ -41,19 +40,19 @@
|
|
<view class="card-title">
|
|
<view class="card-title">
|
|
<view class="front-tag"></view>
|
|
<view class="front-tag"></view>
|
|
<view class="title">今日课程</view>
|
|
<view class="title">今日课程</view>
|
|
- <view class="flex_row" style="margin: 0 0 0 auto;" @click="navClassList">
|
|
|
|
|
|
+ <view class="flex-row" style="margin: 0 0 0 auto;" @click="navClassList">
|
|
<view class="t-icon t-icon-fenlei"></view>
|
|
<view class="t-icon t-icon-fenlei"></view>
|
|
<view class="title" style="color: #4169E1;margin-left: 10rpx;">课程列表</view>
|
|
<view class="title" style="color: #4169E1;margin-left: 10rpx;">课程列表</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="class_list">
|
|
|
|
|
|
+ <view class="data-list">
|
|
<!-- 上上节 -->
|
|
<!-- 上上节 -->
|
|
- <view class="class_item" v-if="classCurrent === classList.length">
|
|
|
|
- <view class="flex_row">
|
|
|
|
|
|
+ <view class="data-item" v-if="classCurrent === classList.length">
|
|
|
|
+ <view class="flex-row">
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
- <view class="flex_cloumn">
|
|
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_title">{{classList[classCurrent - 3].title}}</view>
|
|
|
|
|
|
+ <view class="flex-column">
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-title">{{classList[classCurrent - 3].title}}</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
<view class="tag-text">{{classList[classCurrent - 3].name}}</view>
|
|
<view class="tag-text">{{classList[classCurrent - 3].name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -61,27 +60,28 @@
|
|
<view class="tag-text">{{classList[classCurrent - 3].teacher}}</view>
|
|
<view class="tag-text">{{classList[classCurrent - 3].teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_subtitle">上节</view>
|
|
|
|
- <view class="class_item_detail" style="font-size: 32rpx;">
|
|
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-subtitle">上节</view>
|
|
|
|
+ <view class="item-detail">
|
|
{{classList[classCurrent - 3].time}}
|
|
{{classList[classCurrent - 3].time}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="class_btn">
|
|
|
|
- <view class="_text">{{classList[classCurrent - 3].attendance?'已出勤':'未出勤'}}</view>
|
|
|
|
|
|
+ <view class="state">
|
|
|
|
+ <view class="state-text">{{classList[classCurrent - 3].attendance?'已出勤':'未出勤'}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 上节 -->
|
|
<!-- 上节 -->
|
|
- <view class="class_item" v-if="classCurrent >= 2">
|
|
|
|
- <view class="flex_row">
|
|
|
|
|
|
+ <view class="data-item" v-if="classCurrent >= 2">
|
|
|
|
+ <view class="flex-row">
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
- <view class="flex_cloumn">
|
|
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_title">{{classList[classCurrent - 2].title}}</view>
|
|
|
|
|
|
+ <view class="flex-column">
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-title">{{classList[classCurrent - 2].title}}</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
<view class="tag-text">{{classList[classCurrent - 2].name}}</view>
|
|
<view class="tag-text">{{classList[classCurrent - 2].name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -89,27 +89,28 @@
|
|
<view class="tag-text">{{classList[classCurrent - 2].teacher}}</view>
|
|
<view class="tag-text">{{classList[classCurrent - 2].teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_subtitle">上节</view>
|
|
|
|
- <view class="class_item_detail" style="font-size: 32rpx;">
|
|
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-subtitle">上节</view>
|
|
|
|
+ <view class="item-detail">
|
|
{{classList[classCurrent - 2].time}}
|
|
{{classList[classCurrent - 2].time}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="class_btn">
|
|
|
|
- <view class="_text">{{classList[classCurrent - 2].attendance?'已出勤':'未出勤'}}</view>
|
|
|
|
|
|
+ <view class="state">
|
|
|
|
+ <view class="state-text">{{classList[classCurrent - 2].attendance?'已出勤':'未出勤'}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 当前 -->
|
|
<!-- 当前 -->
|
|
- <view class="class_item" style="border-image: linear-gradient(to right, #4169E1, #FFF) 1;">
|
|
|
|
- <view class="flex_row">
|
|
|
|
|
|
+ <view class="data-item" style="border-image: linear-gradient(to right, #4169E1, #FFF) 1;">
|
|
|
|
+ <view class="flex-row">
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
<view class="t-icon t-icon-classicon-copy" style="width: 60rpx; height: 60rpx;"></view>
|
|
- <view class="flex_cloumn">
|
|
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_title" style="color: #4169E1;">
|
|
|
|
|
|
+ <view class="flex-column">
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-title" style="color: #4169E1;">
|
|
{{classList[classCurrent - 1].title}}
|
|
{{classList[classCurrent - 1].title}}
|
|
</view>
|
|
</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
@@ -119,28 +120,29 @@
|
|
<view class="tag-text">{{classList[classCurrent - 1].teacher}}</view>
|
|
<view class="tag-text">{{classList[classCurrent - 1].teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_subtitle" style="color: #4169E1;">当前</view>
|
|
|
|
- <view class="class_item_detail" style="font-size: 32rpx;color: #4169E1;">
|
|
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-subtitle" style="color: #4169E1;">当前</view>
|
|
|
|
+ <view class="item-detail" style="color: #4169E1;">
|
|
{{classList[classCurrent - 1].time}}
|
|
{{classList[classCurrent - 1].time}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="class_btn" style="background-color: #ff5959;">
|
|
|
|
- <view class="_text">{{classList[classCurrent - 1].attendance?'课程中':'未出勤'}}</view>
|
|
|
|
|
|
+ <view class="state" style="background-color: #ff5959;">
|
|
|
|
+ <view class="state-text">{{classList[classCurrent - 1].attendance?'课程中':'未出勤'}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 下节 -->
|
|
<!-- 下节 -->
|
|
- <view class="class_item" v-if="classCurrent != classList.length">
|
|
|
|
- <view class="flex_row">
|
|
|
|
|
|
+ <view class="data-item" v-if="classCurrent != classList.length">
|
|
|
|
+ <view class="flex-row">
|
|
<view class="t-icon t-icon-classicon-noarrive" style="width: 60rpx; height: 60rpx;">
|
|
<view class="t-icon t-icon-classicon-noarrive" style="width: 60rpx; height: 60rpx;">
|
|
</view>
|
|
</view>
|
|
- <view class="flex_cloumn">
|
|
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_title">{{classList[classCurrent].title}}</view>
|
|
|
|
|
|
+ <view class="flex-column">
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-title">{{classList[classCurrent].title}}</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
<view class="tag-text">{{classList[classCurrent].name}}</view>
|
|
<view class="tag-text">{{classList[classCurrent].name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -148,28 +150,28 @@
|
|
<view class="tag-text">{{classList[classCurrent].teacher}}</view>
|
|
<view class="tag-text">{{classList[classCurrent].teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_subtitle">下节</view>
|
|
|
|
- <view class="class_item_detail" style="font-size: 32rpx;">
|
|
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-subtitle">下节</view>
|
|
|
|
+ <view class="item-detail">
|
|
{{classList[classCurrent].time}}
|
|
{{classList[classCurrent].time}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="class_btn" style="background-color: #909399;">
|
|
|
|
- <view class="_text">未开始</view>
|
|
|
|
|
|
+ <view class="state" style="background-color: #909399;">
|
|
|
|
+ <view class="state-text">未开始</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 下下节 -->
|
|
<!-- 下下节 -->
|
|
- <view class="class_item" v-if="classCurrent === 1">
|
|
|
|
- <view class="flex_row">
|
|
|
|
|
|
+ <view class="data-item" v-if="classCurrent === 1">
|
|
|
|
+ <view class="flex-row">
|
|
<view class="t-icon t-icon-classicon-noarrive" style="width: 60rpx; height: 60rpx;">
|
|
<view class="t-icon t-icon-classicon-noarrive" style="width: 60rpx; height: 60rpx;">
|
|
</view>
|
|
</view>
|
|
- <view class="flex_cloumn">
|
|
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_title">{{classList[classCurrent+1].title}}</view>
|
|
|
|
|
|
+ <view class="flex-column">
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-title">{{classList[classCurrent+1].title}}</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
<view class="tag-text">{{classList[classCurrent+1].name}}</view>
|
|
<view class="tag-text">{{classList[classCurrent+1].name}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -177,16 +179,16 @@
|
|
<view class="tag-text">{{classList[classCurrent+1].teacher}}</view>
|
|
<view class="tag-text">{{classList[classCurrent+1].teacher}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row_home">
|
|
|
|
- <view class="class_item_subtitle">下节</view>
|
|
|
|
- <view class="class_item_detail" style="font-size: 32rpx;">
|
|
|
|
|
|
+ <view class="row-margin">
|
|
|
|
+ <view class="item-subtitle">下节</view>
|
|
|
|
+ <view class="item-detail">
|
|
{{classList[classCurrent+1].time}}
|
|
{{classList[classCurrent+1].time}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="class_btn" style="background-color: #909399;">
|
|
|
|
- <view class="_text">未开始</view>
|
|
|
|
|
|
+ <view class="state" style="background-color: #909399;">
|
|
|
|
+ <view class="state-text">未开始</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -199,29 +201,29 @@
|
|
<view class="front-tag"></view>
|
|
<view class="front-tag"></view>
|
|
<view class="title">今日课程</view>
|
|
<view class="title">今日课程</view>
|
|
</view>
|
|
</view>
|
|
- <view class="detail_image_none" :style="{backgroundImage:`url(${image})`}"></view>
|
|
|
|
- <view class="class_list">
|
|
|
|
- <view class="class_item" style="height: 120rpx;">
|
|
|
|
- <view class="flex_row" style="justify-content: space-between;">
|
|
|
|
- <view class="class_item_title" v-if="!isAfterDayClass">
|
|
|
|
|
|
+ <view class="detail-image-none" :style="{backgroundImage:`url(${image})`}"></view>
|
|
|
|
+ <view class="data-list">
|
|
|
|
+ <view class="data-item" style="height: 120rpx;">
|
|
|
|
+ <view class="flex-row" style="justify-content: space-between;">
|
|
|
|
+ <view class="item-title" v-if="!isAfterDayClass">
|
|
{{classList.length === 0 ? '假期充电' : '课间休息'}}
|
|
{{classList.length === 0 ? '假期充电' : '课间休息'}}
|
|
</view>
|
|
</view>
|
|
- <view class="class_item_title" v-if="isAfterDayClass">课程完成</view>
|
|
|
|
|
|
+ <view class="item-title" v-if="isAfterDayClass">课程完成</view>
|
|
<view class="tag" style="margin: 0;">
|
|
<view class="tag" style="margin: 0;">
|
|
<view class="tag-text" v-if="!isAfterDayClass">
|
|
<view class="tag-text" v-if="!isAfterDayClass">
|
|
{{classList.length === 0 ? '无课' : '下课'}}
|
|
{{classList.length === 0 ? '无课' : '下课'}}
|
|
</view>
|
|
</view>
|
|
<view class="tag-text" v-if="isAfterDayClass">放学</view>
|
|
<view class="tag-text" v-if="isAfterDayClass">放学</view>
|
|
</view>
|
|
</view>
|
|
- <view class="class_item_subtitle" style="font-weight: 400;font-size: 26rpx;"
|
|
|
|
|
|
+ <view class="item-subtitle" style="font-weight: 400;font-size: 26rpx;"
|
|
v-if="!isAfterDayClass">
|
|
v-if="!isAfterDayClass">
|
|
{{classList.length === 0 ? '合理规划' : '预习下节'}}
|
|
{{classList.length === 0 ? '合理规划' : '预习下节'}}
|
|
</view>
|
|
</view>
|
|
- <view class="class_item_subtitle" style="font-weight: 400;font-size: 26rpx;"
|
|
|
|
|
|
+ <view class="item-subtitle" style="font-weight: 400;font-size: 26rpx;"
|
|
v-if="isAfterDayClass">巩固所学</view>
|
|
v-if="isAfterDayClass">巩固所学</view>
|
|
- <view class="flex_row" @click="navClassList">
|
|
|
|
|
|
+ <view class="flex-row" @click="navClassList">
|
|
<view class="t-icon t-icon-fenlei"></view>
|
|
<view class="t-icon t-icon-fenlei"></view>
|
|
- <view class="class_item_title" style="color: #4169E1;margin-left: 10rpx;">课程列表
|
|
|
|
|
|
+ <view class="item-title" style="color: #4169E1;margin-left: 10rpx;">课程列表
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -230,40 +232,40 @@
|
|
</view>
|
|
</view>
|
|
<!-- 今日打卡模块 -->
|
|
<!-- 今日打卡模块 -->
|
|
<view class="card-item" style="height: 300rpx;" @click="navClockStats">
|
|
<view class="card-item" style="height: 300rpx;" @click="navClockStats">
|
|
- <view class="flex_row" style="margin: 20rpx 20rpx 0 20rpx;">
|
|
|
|
- <view class="icon_box" style="width: 110rpx;height: 110rpx; background-color: #d8deff;">
|
|
|
|
|
|
+ <view class="flex-row" style="margin: 20rpx 20rpx 0 20rpx;">
|
|
|
|
+ <view class="icon-box" style="width: 120rpx;height: 120rpx; background-color: #d8deff;">
|
|
<view class="t-icon t-icon-a-rilidaka" style="width: 60rpx;height: 60rpx;"></view>
|
|
<view class="t-icon t-icon-a-rilidaka" style="width: 60rpx;height: 60rpx;"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="item_block">
|
|
|
|
|
|
+ <view class="clock-block">
|
|
<view class="subtitle">打卡记录</view>
|
|
<view class="subtitle">打卡记录</view>
|
|
- <view class="flex_baseline">
|
|
|
|
|
|
+ <view class="flex-baseline">
|
|
<view class="YS-title">{{dayTime.split('月')[0]}}</view>
|
|
<view class="YS-title">{{dayTime.split('月')[0]}}</view>
|
|
- <view class="YS-title" style="font-size: 28rpx; margin-left: 6rpx;">月</view>
|
|
|
|
|
|
+ <view class="YS-title" style="font-size: 30rpx; margin-left: 4rpx;">月</view>
|
|
<view class="YS-title" style="margin-left: 4rpx;">
|
|
<view class="YS-title" style="margin-left: 4rpx;">
|
|
{{dayTime.split('月')[1]}}
|
|
{{dayTime.split('月')[1]}}
|
|
</view>
|
|
</view>
|
|
- <view class="YS-title" style="font-size: 28rpx; margin-left: 6rpx;">日</view>
|
|
|
|
|
|
+ <view class="YS-title" style="font-size: 30rpx; margin-left: 4rpx;">日</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row" style="margin: auto 20rpx 20rpx 20rpx;justify-content: space-between;">
|
|
|
|
- <view class="item_block" style="margin-left: -10rpx;">
|
|
|
|
|
|
+ <view class="flex-row" style="margin: auto 20rpx 20rpx 20rpx;justify-content: space-between;">
|
|
|
|
+ <view class="clock-block">
|
|
<view class="subtitle">打卡时间</view>
|
|
<view class="subtitle">打卡时间</view>
|
|
<view class="YS-title" v-if="clockTime === '无记录'">
|
|
<view class="YS-title" v-if="clockTime === '无记录'">
|
|
{{clockTime}}
|
|
{{clockTime}}
|
|
</view>
|
|
</view>
|
|
- <view class="flex_baseline" v-if="clockTime != '无记录'">
|
|
|
|
|
|
+ <view class="flex-baseline" v-if="clockTime != '无记录'">
|
|
<view class="YS-title">
|
|
<view class="YS-title">
|
|
{{clockTime.split(':')[0].replace('0','')}}
|
|
{{clockTime.split(':')[0].replace('0','')}}
|
|
</view>
|
|
</view>
|
|
- <view class="YS-title" style="font-size: 28rpx; margin-left: 6rpx;">点</view>
|
|
|
|
- <view class="YS-title" style="margin-left: 6rpx;">
|
|
|
|
|
|
+ <view class="YS-title" style="font-size: 30rpx; margin-left: 4rpx;">点</view>
|
|
|
|
+ <view class="YS-title" style="margin-left: 4rpx;">
|
|
{{clockTime.split(':')[1]}}
|
|
{{clockTime.split(':')[1]}}
|
|
</view>
|
|
</view>
|
|
- <view class="YS-title" style="font-size: 28rpx; margin-left: 6rpx;">分</view>
|
|
|
|
|
|
+ <view class="YS-title" style="font-size: 30rpx; margin-left: 4rpx;">分</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="icon_box" style="width: 110rpx;height: 110rpx;"
|
|
|
|
|
|
+ <view class="icon-box" style="width: 120rpx;height: 120rpx;"
|
|
:style="{backgroundColor: clockState === '未打卡' ? '#ff5959':'#4169E1'}">
|
|
:style="{backgroundColor: clockState === '未打卡' ? '#ff5959':'#4169E1'}">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">
|
|
{{clockState}}
|
|
{{clockState}}
|
|
@@ -271,7 +273,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="width: 0;height: 0;">
|
|
<view style="width: 0;height: 0;">
|
|
- <view class="image"
|
|
|
|
|
|
+ <view class="clock-image"
|
|
:style="{backgroundImage: clockState === '已打卡'?`url(${image2})`:`url(${image1})`}">
|
|
:style="{backgroundImage: clockState === '已打卡'?`url(${image2})`:`url(${image1})`}">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -279,12 +281,11 @@
|
|
<!-- 今日出席模块 -->
|
|
<!-- 今日出席模块 -->
|
|
<view class="card-item" style="background-color: #f3f4f9;justify-content: space-between;">
|
|
<view class="card-item" style="background-color: #f3f4f9;justify-content: space-between;">
|
|
<!-- 当前课程 -->
|
|
<!-- 当前课程 -->
|
|
- <view class="item_box1">
|
|
|
|
- <view class="icon_box" style="background-color: #d8deff; margin-left: 20rpx;">
|
|
|
|
|
|
+ <view class="class-box">
|
|
|
|
+ <view class="icon-box" style="background-color: #d8deff; margin-left: 20rpx;">
|
|
<view class="t-icon t-icon-shangke-"></view>
|
|
<view class="t-icon t-icon-shangke-"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_cloumn"
|
|
|
|
- style="align-items: center; justify-content: space-around;height: 80rpx;">
|
|
|
|
|
|
+ <view class="info-column">
|
|
<view class="subtitle" style="font-size: 24rpx;">当前课程</view>
|
|
<view class="subtitle" style="font-size: 24rpx;">当前课程</view>
|
|
<view class="YS-title" v-if="classCurrent!=-1">
|
|
<view class="YS-title" v-if="classCurrent!=-1">
|
|
{{classList[classCurrent - 1].name}}
|
|
{{classList[classCurrent - 1].name}}
|
|
@@ -292,7 +293,7 @@
|
|
<view class="YS-title" v-if="classCurrent===-1">无课程</view>
|
|
<view class="YS-title" v-if="classCurrent===-1">无课程</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="classCurrent != -1">
|
|
<view v-if="classCurrent != -1">
|
|
- <view class="icon_box" style="margin-right: 20rpx;"
|
|
|
|
|
|
+ <view class="icon-box" style="margin-right: 20rpx;"
|
|
:style="{backgroundColor: classList[classCurrent - 1].attendance ? '#23b46c':'#ff5959'}">
|
|
:style="{backgroundColor: classList[classCurrent - 1].attendance ? '#23b46c':'#ff5959'}">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">
|
|
{{classList[classCurrent - 1].attendance ? '出勤':'缺勤'}}
|
|
{{classList[classCurrent - 1].attendance ? '出勤':'缺勤'}}
|
|
@@ -300,30 +301,30 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="classCurrent === -1">
|
|
<view v-if="classCurrent === -1">
|
|
- <view class="icon_box" style="margin-right: 20rpx;background-color: #f9c752;">
|
|
|
|
|
|
+ <view class="icon-box" style="margin-right: 20rpx;background-color: #f9c752;">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">休息</view>
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">休息</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 出勤课程统计 -->
|
|
<!-- 出勤课程统计 -->
|
|
- <view class="item_box2">
|
|
|
|
- <view class="icon_box" style="background-color: #d8deff;margin-left: 20rpx;">
|
|
|
|
|
|
+ <view class="class-box">
|
|
|
|
+ <view class="icon-box" style="background-color: #d8deff;margin-left: 20rpx;">
|
|
<view class="t-icon t-icon-shangkejilu"></view>
|
|
<view class="t-icon t-icon-shangkejilu"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_cloumn"
|
|
|
|
- style="align-items: center;justify-content: space-around;height: 80rpx;">
|
|
|
|
|
|
+ <view class="info-column">
|
|
<view class="subtitle" style="font-size: 24rpx;">出勤课程</view>
|
|
<view class="subtitle" style="font-size: 24rpx;">出勤课程</view>
|
|
<view class="YS-title" v-if="classList">{{finishClassNum}}节课</view>
|
|
<view class="YS-title" v-if="classList">{{finishClassNum}}节课</view>
|
|
<view class="YS-title" v-if="!classList">0 节</view>
|
|
<view class="YS-title" v-if="!classList">0 节</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="classList">
|
|
<view v-if="classList">
|
|
- <view class="icon_box" style="margin-right: 20rpx;"
|
|
|
|
|
|
+ <view class="icon-box" style="margin-right: 20rpx;"
|
|
:style="{backgroundColor: classAttendanceQuality === '全勤' ? '#23b46c':'#ff5959'}">
|
|
:style="{backgroundColor: classAttendanceQuality === '全勤' ? '#23b46c':'#ff5959'}">
|
|
- <view class="YS-title" style="color: #FFF;font-size: 32rpx;">{{classAttendanceQuality}}</view>
|
|
|
|
|
|
+ <view class="YS-title" style="color: #FFF;font-size: 32rpx;">{{classAttendanceQuality}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="!classList">
|
|
<view v-if="!classList">
|
|
- <view class="icon_box" style="margin-right: 20rpx;background-color: #f9c752;">
|
|
|
|
|
|
+ <view class="icon-box" style="margin-right: 20rpx;background-color: #f9c752;">
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">休息</view>
|
|
<view class="YS-title" style="color: #FFF;font-size: 32rpx;">休息</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -331,45 +332,38 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 推荐课例列表 -->
|
|
<!-- 推荐课例列表 -->
|
|
- <view class="flex_cloumn" style="margin: 15rpx 0 10rpx 20rpx;">
|
|
|
|
|
|
+ <view class="flex-column" style="margin: 15rpx 0 10rpx 20rpx;">
|
|
<view class="title" style="font-size: 32rpx;">课程推荐</view>
|
|
<view class="title" style="font-size: 32rpx;">课程推荐</view>
|
|
<view class="bottom-tag"></view>
|
|
<view class="bottom-tag"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="flex_row" style="width: 70%;"></view>
|
|
|
|
|
|
+ <view class="flex-row" style="width: 70%;"></view>
|
|
</view>
|
|
</view>
|
|
- <scroll-view class="scroll_view_bottom" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
|
|
|
|
- <view class="_item_box" v-for="(item,index) in classData" :key="index" @click="navRecommendInfo(index)">
|
|
|
|
-
|
|
|
|
- <view class="column_item_box" v-for="(classItem,i) in item" :key="i">
|
|
|
|
- <view style="display: flex; width: 100%;height: 100%;">
|
|
|
|
- <view class="image_item" :style="{backgroundImage: `url(${classItem.coverImage})`}">
|
|
|
|
- </view>
|
|
|
|
- <view class="flex_cloumn"
|
|
|
|
- style="margin: 20rpx 20rpx 20rpx 30rpx;justify-content: space-between;width: 400rpx;">
|
|
|
|
|
|
+ <scroll-view class="scroll-view-bottom" scroll-x="true" :scroll-with-animation="true" scroll-left="0">
|
|
|
|
+ <view class="box-container" v-for="(item,index) in classData" :key="index"
|
|
|
|
+ @click="navRecommendInfo(index)">
|
|
|
|
+ <view class="clounm-container" v-for="(classItem,i) in item" :key="i">
|
|
|
|
+ <view class="item-box">
|
|
|
|
+ <view class="thumb" :style="{backgroundImage: `url(${classItem.coverImage})`}"></view>
|
|
|
|
+ <view class="info-box">
|
|
<view class="title" style="font-size: 32rpx;">{{classItem.title}}</view>
|
|
<view class="title" style="font-size: 32rpx;">{{classItem.title}}</view>
|
|
- <view style="display: flex;align-items: center;">
|
|
|
|
- <view class="tag-fill" style="background-color: #d8deff;width:fit-content;">
|
|
|
|
- <view class="t-icon t-icon-a-wangluokechengzaixianjiaoyu"
|
|
|
|
- style="width: 30rpx;height: 30rpx;margin-right: 5rpx;"></view>
|
|
|
|
- <view class="tag-text" style="color: #4169E1;">{{classItem.classHour}} 学时</view>
|
|
|
|
|
|
+ <view class="flex-row">
|
|
|
|
+ <view class="tag-fill">
|
|
|
|
+ <view class="t-icon t-icon-a-wangluokechengzaixianjiaoyu"></view>
|
|
|
|
+ <view class="tag-text">{{classItem.classHour}} 学时</view>
|
|
</view>
|
|
</view>
|
|
- <view class="tag-fill"
|
|
|
|
- style="background-color: #d8deff;width:fit-content;margin-left: 20rpx;">
|
|
|
|
- <view class="t-icon t-icon-xiaoyuanredian"
|
|
|
|
- style="width: 30rpx;height: 30rpx;margin-right: 5rpx;"></view>
|
|
|
|
- <view class="tag-text" style="color: #4169E1;">{{classItem.learnNum}} 已学</view>
|
|
|
|
|
|
+ <view class="tag-fill" style="margin-left: 20rpx;">
|
|
|
|
+ <view class="t-icon t-icon-xiaoyuanredian"></view>
|
|
|
|
+ <view class="tag-text">{{classItem.learnNum}} 已学</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="desc">{{classItem.description}}</view>
|
|
<view class="desc">{{classItem.description}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -626,11 +620,6 @@
|
|
this.clockState = '未打卡'
|
|
this.clockState = '未打卡'
|
|
this.clockTime = '无记录'
|
|
this.clockTime = '无记录'
|
|
}
|
|
}
|
|
- // let isWeekend = new Date(today).getDay()
|
|
|
|
- // if(isWeekend === 0 || isWeekend === 6){
|
|
|
|
- // this.clockState = '放假中'
|
|
|
|
- // this.clockTime = '无需打卡'
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
//获取滚动通知
|
|
//获取滚动通知
|
|
getNoticeData() {
|
|
getNoticeData() {
|
|
@@ -658,28 +647,20 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
navTab(index) {
|
|
navTab(index) {
|
|
- if (index === 0) {
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/tab_exam/tab_exam'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (index === 1) {
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/tab_work/tab_work'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (index === 2) {
|
|
|
|
- uni.switchTab({
|
|
|
|
- url: '/pages/tab_swap/tab_swap'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ let urlArr =
|
|
|
|
+ ['/pages/tab_exam/tab_exam',
|
|
|
|
+ '/pages/tab_work/tab_work',
|
|
|
|
+ '/pages/tab_swap/tab_swap']
|
|
|
|
+ uni.switchTab({
|
|
|
|
+ url: urlArr[index]
|
|
|
|
+ })
|
|
},
|
|
},
|
|
navClockStats() {
|
|
navClockStats() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/subpkg/home/clockstats'
|
|
url: '/subpkg/home/clockstats'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- navRecommendInfo(index){
|
|
|
|
|
|
+ navRecommendInfo(index) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/subpkg/home/recommendinfo?index=${index}`
|
|
url: `/subpkg/home/recommendinfo?index=${index}`
|
|
})
|
|
})
|
|
@@ -706,7 +687,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .flex_row_home {
|
|
|
|
|
|
+ .YS-title {
|
|
|
|
+ font-size: 38rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .row-margin {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
margin: 10rpx 20rpx;
|
|
margin: 10rpx 20rpx;
|
|
@@ -716,7 +701,8 @@
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
}
|
|
}
|
|
|
|
|
|
- .item_box1 {
|
|
|
|
|
|
+ //课程出勤
|
|
|
|
+ .class-box {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -724,20 +710,17 @@
|
|
height: 140rpx;
|
|
height: 140rpx;
|
|
background-color: #FFF;
|
|
background-color: #FFF;
|
|
border-radius: $border-radius;
|
|
border-radius: $border-radius;
|
|
- }
|
|
|
|
|
|
|
|
- .item_box2 {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 140rpx;
|
|
|
|
- background-color: #FFF;
|
|
|
|
- border-radius: $border-radius;
|
|
|
|
|
|
+ .info-column {
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- .icon_box {
|
|
|
|
|
|
+ .icon-box {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -752,16 +735,16 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .item_block {
|
|
|
|
|
|
+ .clock-block {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
- width: 190rpx;
|
|
|
|
- height: 110rpx;
|
|
|
|
|
|
+ width: 180rpx;
|
|
|
|
+ height: 120rpx;
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
- .class_btn {
|
|
|
|
|
|
+ .state {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
margin-left: auto;
|
|
@@ -774,7 +757,7 @@
|
|
height: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
}
|
|
|
|
|
|
- ._text {
|
|
|
|
|
|
+ .state-text {
|
|
color: #FFF;
|
|
color: #FFF;
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -782,19 +765,83 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .image {
|
|
|
|
- margin-top: -130rpx;
|
|
|
|
- margin-left: -20rpx;
|
|
|
|
- height: 170rpx;
|
|
|
|
- width: 170rpx;
|
|
|
|
|
|
+ .clock-image {
|
|
|
|
+ margin-top: -160rpx;
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
+ height: 160rpx;
|
|
|
|
+ width: 160rpx;
|
|
background-size: 100%;
|
|
background-size: 100%;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
opacity: 0.25;
|
|
opacity: 0.25;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
|
|
- .scroll_view_bottom {
|
|
|
|
|
|
+ .scroll-view-bottom {
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
height: 630rpx;
|
|
height: 630rpx;
|
|
|
|
+
|
|
|
|
+ .box-container {
|
|
|
|
+ margin: 0 20rpx;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ height: 600rpx;
|
|
|
|
+ width: 84%;
|
|
|
|
+
|
|
|
|
+ .clounm-container {
|
|
|
|
+ height: 180rpx;
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin-bottom: 20rpx;
|
|
|
|
+ border-radius: $border-radius;
|
|
|
|
+ background-color: #FFF;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+
|
|
|
|
+ .item-box {
|
|
|
|
+ display: flex;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+
|
|
|
|
+ .thumb {
|
|
|
|
+ width: 180rpx;
|
|
|
|
+ height: 180rpx;
|
|
|
|
+ border-radius: $border-radius;
|
|
|
|
+ background-size: cover; //背景图片自适应
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ z-index: 50;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .info-box {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ margin: 20rpx 20rpx 20rpx 30rpx;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ width: 400rpx;
|
|
|
|
+
|
|
|
|
+ .tag-fill {
|
|
|
|
+ background-color: #d8deff;
|
|
|
|
+ width: fit-content;
|
|
|
|
+
|
|
|
|
+ .t-icon {
|
|
|
|
+ width: 30rpx;
|
|
|
|
+ height: 30rpx;
|
|
|
|
+ margin-right: 5rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .tag-text {
|
|
|
|
+ color: #4169E1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .desc {
|
|
|
|
+ line-height: 26rpx;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #909399;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|