|
@@ -161,7 +161,11 @@
|
|
|
>
|
|
|
<view class="cou_titles">{{ item.goodsName }}</view>
|
|
|
<view
|
|
|
- v-if="item.serviceStartTime && item.serviceEndTime"
|
|
|
+ v-if="
|
|
|
+ item.serviceStartTime &&
|
|
|
+ item.serviceEndTime &&
|
|
|
+ !item.externalLink
|
|
|
+ "
|
|
|
class="learn_ranges"
|
|
|
>
|
|
|
<image
|
|
@@ -169,7 +173,11 @@
|
|
|
src="/static/learn/learn_range.png"
|
|
|
></image>
|
|
|
学习周期:
|
|
|
- <text class="l_time">{{ item.serviceStartTime | formate("yyyy.mm.dd") }}-{{ item.serviceEndTime | formate("yyyy.mm.dd") }}</text>
|
|
|
+ <text class="l_time"
|
|
|
+ >{{ item.serviceStartTime | formate("yyyy.mm.dd") }}-{{
|
|
|
+ item.serviceEndTime | formate("yyyy.mm.dd")
|
|
|
+ }}</text
|
|
|
+ >
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -179,272 +187,290 @@
|
|
|
class="all_status"
|
|
|
@click="studyIn(item.goodsId, item.gradeId, item, index)"
|
|
|
>
|
|
|
- <!-- 不在学习服务期 -->
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- item.serviceStartTime &&
|
|
|
- (sysTime < item.serviceStartTime ||
|
|
|
- sysTime > item.serviceEndTime)
|
|
|
- "
|
|
|
- >
|
|
|
- <view
|
|
|
- class="class-warm"
|
|
|
- v-if="item.gradeId != 0 && item.gradeStatus == 1"
|
|
|
- >
|
|
|
- <view class="class-warm__text">
|
|
|
- <view class="date"> 不在学习服务期,不可以学习了哦 </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-else>
|
|
|
- <!-- 班级有效期过了 -->
|
|
|
+ <template v-if="!item.externalLink">
|
|
|
+ <!-- 不在学习服务期 -->
|
|
|
<template
|
|
|
- v-if="item.classEndTime && item.classEndTime < sysTime"
|
|
|
- >
|
|
|
- <view class="class-warm">
|
|
|
- <u-icon
|
|
|
- class="class-warm__icon"
|
|
|
- size="30"
|
|
|
- color="#FF3B30"
|
|
|
- name="error-circle-fill"
|
|
|
- >
|
|
|
- </u-icon>
|
|
|
- <view class="class-warm__text">
|
|
|
- <view class="date"
|
|
|
- >班级有效期:{{
|
|
|
- $method.timestampToTime(
|
|
|
- item.classStartTime,
|
|
|
- true,
|
|
|
- true
|
|
|
- )
|
|
|
- }}
|
|
|
- -
|
|
|
- {{
|
|
|
- $method.timestampToTime(item.classEndTime, true, true)
|
|
|
- }}</view
|
|
|
- >
|
|
|
- <view class="date"
|
|
|
- >班级状态:已过期,有疑问请联系
|
|
|
- <text @click="call()">020-87085982</text></view
|
|
|
- >
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 班级有效期之前 -->
|
|
|
- <template
|
|
|
- v-else-if="
|
|
|
- item.classStartTime && item.classStartTime > sysTime
|
|
|
+ v-if="
|
|
|
+ item.serviceStartTime &&
|
|
|
+ (sysTime < item.serviceStartTime ||
|
|
|
+ sysTime > item.serviceEndTime)
|
|
|
"
|
|
|
>
|
|
|
- <view class="class-warm">
|
|
|
- <u-icon
|
|
|
- class="class-warm__icon"
|
|
|
- size="30"
|
|
|
- color="#FF3B30"
|
|
|
- name="error-circle-fill"
|
|
|
- >
|
|
|
- </u-icon>
|
|
|
+ <view
|
|
|
+ class="class-warm"
|
|
|
+ v-if="item.gradeId != 0 && item.gradeStatus == 1"
|
|
|
+ >
|
|
|
<view class="class-warm__text">
|
|
|
- <view class="date"
|
|
|
- >班级有效期:{{
|
|
|
- $method.timestampToTime(
|
|
|
- item.classStartTime,
|
|
|
- true,
|
|
|
- true
|
|
|
- )
|
|
|
- }}
|
|
|
- -
|
|
|
- {{
|
|
|
- $method.timestampToTime(item.classEndTime, true, true)
|
|
|
- }}</view
|
|
|
- >
|
|
|
- <view class="date"
|
|
|
- >班级状态:未到学习时间,有疑问请联系
|
|
|
- <text @click="call()">020-87085982</text></view
|
|
|
- >
|
|
|
+ <view class="date"> 不在学习服务期,不可以学习了哦 </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
- <!-- 在班级有效期之间或者没有班级有效期 -->
|
|
|
<template v-else>
|
|
|
- <view
|
|
|
- class="class-warm"
|
|
|
- v-if="
|
|
|
- item.gradeId != 0 &&
|
|
|
- item.gradeStatus == 1 &&
|
|
|
- item.classStatus != null
|
|
|
- "
|
|
|
+ <!-- 班级有效期过了 -->
|
|
|
+ <template
|
|
|
+ v-if="item.classEndTime && item.classEndTime < sysTime"
|
|
|
>
|
|
|
- <view class="class-warm__text">
|
|
|
- <view class="date">
|
|
|
- 班级状态:
|
|
|
- <text v-if="item.classStatus == 1">已开班</text>
|
|
|
- <text v-if="item.classStatus == 0">未开班</text>
|
|
|
- </view>
|
|
|
- <view class="date" v-if="item.classStatus == 0"
|
|
|
- >教务处正在为您开通班级,请耐心等待</view
|
|
|
- >
|
|
|
- <view
|
|
|
- class="date"
|
|
|
- v-if="
|
|
|
- item.classStatus == 1 &&
|
|
|
- item.classStartTime &&
|
|
|
- item.classEndTime
|
|
|
- "
|
|
|
+ <view class="class-warm">
|
|
|
+ <u-icon
|
|
|
+ class="class-warm__icon"
|
|
|
+ size="30"
|
|
|
+ color="#FF3B30"
|
|
|
+ name="error-circle-fill"
|
|
|
>
|
|
|
- 班级有效期:{{
|
|
|
- $method.timestampToTime(
|
|
|
- item.classStartTime,
|
|
|
- true,
|
|
|
- true
|
|
|
- )
|
|
|
- }}-{{
|
|
|
- $method.timestampToTime(item.classEndTime, true, true)
|
|
|
- }}
|
|
|
+ </u-icon>
|
|
|
+ <view class="class-warm__text">
|
|
|
+ <view class="date"
|
|
|
+ >班级有效期:{{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classStartTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ -
|
|
|
+ {{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classEndTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}</view
|
|
|
+ >
|
|
|
+ <view class="date"
|
|
|
+ >班级状态:已过期,有疑问请联系
|
|
|
+ <text @click="call()">020-87085982</text></view
|
|
|
+ >
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 学时审核状态不可审核 -->
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 班级有效期之前 -->
|
|
|
<template
|
|
|
- v-if="item.periodStatus == -1 || item.periodStatus == 2"
|
|
|
+ v-else-if="
|
|
|
+ item.classStartTime && item.classStartTime > sysTime
|
|
|
+ "
|
|
|
>
|
|
|
+ <view class="class-warm">
|
|
|
+ <u-icon
|
|
|
+ class="class-warm__icon"
|
|
|
+ size="30"
|
|
|
+ color="#FF3B30"
|
|
|
+ name="error-circle-fill"
|
|
|
+ >
|
|
|
+ </u-icon>
|
|
|
+ <view class="class-warm__text">
|
|
|
+ <view class="date"
|
|
|
+ >班级有效期:{{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classStartTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ -
|
|
|
+ {{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classEndTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}</view
|
|
|
+ >
|
|
|
+ <view class="date"
|
|
|
+ >班级状态:未到学习时间,有疑问请联系
|
|
|
+ <text @click="call()">020-87085982</text></view
|
|
|
+ >
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 在班级有效期之间或者没有班级有效期 -->
|
|
|
+ <template v-else>
|
|
|
<view
|
|
|
class="class-warm"
|
|
|
- v-if="item.classStatus == 1 || item.classStatus === null"
|
|
|
+ v-if="
|
|
|
+ item.gradeId != 0 &&
|
|
|
+ item.gradeStatus == 1 &&
|
|
|
+ item.classStatus != null
|
|
|
+ "
|
|
|
>
|
|
|
<view class="class-warm__text">
|
|
|
<view class="date">
|
|
|
- <template
|
|
|
- v-if="
|
|
|
- sysTime >= item.serviceStartTime &&
|
|
|
- sysTime <= item.serviceEndTime
|
|
|
- "
|
|
|
- >
|
|
|
- 学习状态:
|
|
|
- <text v-if="item.stuAllNum + item.recordNum == 0"
|
|
|
- >未学习</text
|
|
|
- >
|
|
|
- <text
|
|
|
- v-else-if="
|
|
|
- item.stuAllNum + item.recordNum > 0 &&
|
|
|
- item.stuAllNum + item.recordNum <
|
|
|
- item.secAllNum + item.examNum
|
|
|
- "
|
|
|
- >学习中</text
|
|
|
- >
|
|
|
- <text
|
|
|
- v-else-if="
|
|
|
- item.stuAllNum + item.recordNum >=
|
|
|
- item.secAllNum + item.examNum
|
|
|
+ 班级状态:
|
|
|
+ <text v-if="item.classStatus == 1">已开班</text>
|
|
|
+ <text v-if="item.classStatus == 0">未开班</text>
|
|
|
+ </view>
|
|
|
+ <view class="date" v-if="item.classStatus == 0"
|
|
|
+ >教务处正在为您开通班级,请耐心等待</view
|
|
|
+ >
|
|
|
+ <view
|
|
|
+ class="date"
|
|
|
+ v-if="
|
|
|
+ item.classStatus == 1 &&
|
|
|
+ item.classStartTime &&
|
|
|
+ item.classEndTime
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 班级有效期:{{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classStartTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}-{{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.classEndTime,
|
|
|
+ true,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 学时审核状态不可审核 -->
|
|
|
+ <template
|
|
|
+ v-if="item.periodStatus == -1 || item.periodStatus == 2"
|
|
|
+ >
|
|
|
+ <view
|
|
|
+ class="class-warm"
|
|
|
+ v-if="
|
|
|
+ item.classStatus == 1 || item.classStatus === null
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <view class="class-warm__text">
|
|
|
+ <view class="date">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ sysTime >= item.serviceStartTime &&
|
|
|
+ sysTime <= item.serviceEndTime
|
|
|
"
|
|
|
- >已学完</text
|
|
|
>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <template v-if="item.serviceStartTime"
|
|
|
- >已过学习服务期,不可以学习了哦!</template
|
|
|
- >
|
|
|
- </template>
|
|
|
+ 学习状态:
|
|
|
+ <text v-if="item.stuAllNum + item.recordNum == 0"
|
|
|
+ >未学习</text
|
|
|
+ >
|
|
|
+ <text
|
|
|
+ v-else-if="
|
|
|
+ item.stuAllNum + item.recordNum > 0 &&
|
|
|
+ item.stuAllNum + item.recordNum <
|
|
|
+ item.secAllNum + item.examNum
|
|
|
+ "
|
|
|
+ >学习中</text
|
|
|
+ >
|
|
|
+ <text
|
|
|
+ v-else-if="
|
|
|
+ item.stuAllNum + item.recordNum >=
|
|
|
+ item.secAllNum + item.examNum
|
|
|
+ "
|
|
|
+ >已学完</text
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <template v-if="item.serviceStartTime"
|
|
|
+ >已过学习服务期,不可以学习了哦!</template
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 学时审核状态可以审核 -->
|
|
|
- <template v-if="item.periodStatus != -1">
|
|
|
- <view class="class-warm">
|
|
|
- <view class="class-warm__text">
|
|
|
- <view class="date">
|
|
|
- <text v-if="item.periodStatus == 0"
|
|
|
- >机构审核:学时审核不通过</text
|
|
|
- >
|
|
|
- <!-- <text v-else-if="item.periodStatus == 2">学时待审核</text> -->
|
|
|
- <text v-else-if="item.periodStatus == 3"
|
|
|
- >学时审核中</text
|
|
|
- >
|
|
|
- <text v-else-if="item.periodStatus == 1">
|
|
|
- <text v-if="item.periodPlush > 0"
|
|
|
- >学时已上报注册中心</text
|
|
|
+ <!-- 学时审核状态可以审核 -->
|
|
|
+ <template v-if="item.periodStatus != -1">
|
|
|
+ <view class="class-warm">
|
|
|
+ <view class="class-warm__text">
|
|
|
+ <view class="date">
|
|
|
+ <text v-if="item.periodStatus == 0"
|
|
|
+ >机构审核:学时审核不通过</text
|
|
|
+ >
|
|
|
+ <!-- <text v-else-if="item.periodStatus == 2">学时待审核</text> -->
|
|
|
+ <text v-else-if="item.periodStatus == 3"
|
|
|
+ >学时审核中</text
|
|
|
>
|
|
|
- <text v-else>机构审核:学时审核通过</text>
|
|
|
- </text>
|
|
|
+ <text v-else-if="item.periodStatus == 1">
|
|
|
+ <text v-if="item.periodPlush > 0"
|
|
|
+ >学时已上报注册中心</text
|
|
|
+ >
|
|
|
+ <text v-else>机构审核:学时审核通过</text>
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view
|
|
|
- class="class-warm"
|
|
|
- v-if="item.subscribeId != null && item.periodStatus == 1"
|
|
|
- >
|
|
|
- <view class="class-warm__text">
|
|
|
- <view class="date">
|
|
|
- <view v-if="item.subExamStatus === null"
|
|
|
- >待预约考试</view
|
|
|
- >
|
|
|
- <view
|
|
|
- v-else-if="
|
|
|
- item.subExamStatus === 0 &&
|
|
|
- sysTime <
|
|
|
- $method.TimeTotimestamp(
|
|
|
- $method.timestampToTime(
|
|
|
- item.subApplySiteExamTime,
|
|
|
- true
|
|
|
- ) +
|
|
|
- ' ' +
|
|
|
- item.subApplySiteStartTime
|
|
|
- )
|
|
|
- "
|
|
|
- >
|
|
|
- 待考试,考试时间:
|
|
|
- {{
|
|
|
- $method.timestampToTime(
|
|
|
- item.subApplySiteExamTime,
|
|
|
- true
|
|
|
- ) +
|
|
|
- " " +
|
|
|
- item.subApplySiteStartTime
|
|
|
- }}
|
|
|
- -
|
|
|
- {{
|
|
|
- $method.timestampToTime(
|
|
|
- item.subApplySiteExamTime,
|
|
|
- true
|
|
|
- ) +
|
|
|
- " " +
|
|
|
- item.subApplySiteEndTime
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <view v-else-if="item.subExamStatus === 0"
|
|
|
- >待出考试结果</view
|
|
|
- >
|
|
|
- <view v-else-if="item.subExamStatus === 1">
|
|
|
- <text v-if="item.subResult === null"
|
|
|
- >待出考试结果</text
|
|
|
+ <view
|
|
|
+ class="class-warm"
|
|
|
+ v-if="
|
|
|
+ item.subscribeId != null && item.periodStatus == 1
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <view class="class-warm__text">
|
|
|
+ <view class="date">
|
|
|
+ <view v-if="item.subExamStatus === null"
|
|
|
+ >待预约考试</view
|
|
|
+ >
|
|
|
+ <view
|
|
|
+ v-else-if="
|
|
|
+ item.subExamStatus === 0 &&
|
|
|
+ sysTime <
|
|
|
+ $method.TimeTotimestamp(
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.subApplySiteExamTime,
|
|
|
+ true
|
|
|
+ ) +
|
|
|
+ ' ' +
|
|
|
+ item.subApplySiteStartTime
|
|
|
+ )
|
|
|
+ "
|
|
|
>
|
|
|
- <text v-if="item.subResult === 0"
|
|
|
- >考试结果:不通过,需补考</text
|
|
|
+ 待考试,考试时间:
|
|
|
+ {{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.subApplySiteExamTime,
|
|
|
+ true
|
|
|
+ ) +
|
|
|
+ " " +
|
|
|
+ item.subApplySiteStartTime
|
|
|
+ }}
|
|
|
+ -
|
|
|
+ {{
|
|
|
+ $method.timestampToTime(
|
|
|
+ item.subApplySiteExamTime,
|
|
|
+ true
|
|
|
+ ) +
|
|
|
+ " " +
|
|
|
+ item.subApplySiteEndTime
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view v-else-if="item.subExamStatus === 0"
|
|
|
+ >待出考试结果</view
|
|
|
>
|
|
|
- <text v-else-if="item.subResult === 1"
|
|
|
- >考试结果:通过,考试成绩为{{
|
|
|
- item.subPerformance
|
|
|
- }}</text
|
|
|
+ <view v-else-if="item.subExamStatus === 1">
|
|
|
+ <text v-if="item.subResult === null"
|
|
|
+ >待出考试结果</text
|
|
|
+ >
|
|
|
+ <text v-if="item.subResult === 0"
|
|
|
+ >考试结果:不通过,需补考</text
|
|
|
+ >
|
|
|
+ <text v-else-if="item.subResult === 1"
|
|
|
+ >考试结果:通过,考试成绩为{{
|
|
|
+ item.subPerformance
|
|
|
+ }}</text
|
|
|
+ >
|
|
|
+ </view>
|
|
|
+ <view v-else-if="item.subExamStatus === 2"
|
|
|
+ >缺考,无成绩,需补考</view
|
|
|
+ >
|
|
|
+ <view v-else-if="item.subExamStatus === 3"
|
|
|
+ >作弊,无成绩,需补考</view
|
|
|
+ >
|
|
|
+ <view v-else-if="item.subExamStatus === 4"
|
|
|
+ >替考,无成绩,需补考</view
|
|
|
>
|
|
|
</view>
|
|
|
- <view v-else-if="item.subExamStatus === 2"
|
|
|
- >缺考,无成绩,需补考</view
|
|
|
- >
|
|
|
- <view v-else-if="item.subExamStatus === 3"
|
|
|
- >作弊,无成绩,需补考</view
|
|
|
- >
|
|
|
- <view v-else-if="item.subExamStatus === 4"
|
|
|
- >替考,无成绩,需补考</view
|
|
|
- >
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -465,14 +491,15 @@
|
|
|
<view class="rights">
|
|
|
<template
|
|
|
v-if="
|
|
|
- item.gradeStatus == 1 &&
|
|
|
- item.status == 1 &&
|
|
|
- item.serviceEndTime > sysTime &&
|
|
|
- item.serviceStartTime < sysTime &&
|
|
|
- item.classEndTime &&
|
|
|
- item.classEndTime < sysTime &&
|
|
|
- (item.periodStatus == 0 || item.periodStatus == -1) &&
|
|
|
- item.studyCount > 0
|
|
|
+ item.externalLink ||
|
|
|
+ (item.gradeStatus == 1 &&
|
|
|
+ item.status == 1 &&
|
|
|
+ item.serviceEndTime > sysTime &&
|
|
|
+ item.serviceStartTime < sysTime &&
|
|
|
+ item.classEndTime &&
|
|
|
+ item.classEndTime < sysTime &&
|
|
|
+ (item.periodStatus == 0 || item.periodStatus == -1) &&
|
|
|
+ item.studyCount > 0)
|
|
|
"
|
|
|
>
|
|
|
</template>
|
|
@@ -1004,6 +1031,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async studyIn(v, i, item, index) {
|
|
|
+ if (item.externalLink) {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/webview/sdlink?url=` + item.externalLink,
|
|
|
+ });
|
|
|
+ // #endif
|
|
|
+ // #ifdef H5
|
|
|
+ window.location.href = item.externalLink;
|
|
|
+ // #endif
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (item.goodsType == 6) {
|
|
|
// 进入直播课
|
|
|
this.toLive(item);
|