Commit de31908f by 胡悦

fix(HomeFrame): 移除禁止录单检查并调整学习中心样式

修复学习中心权限弹窗中lockReason类型不匹配的问题,将Number改为String
移除HomeFrame中禁止录单的检查逻辑
调整学习中心未读计数徽章的样式和位置
1 parent 1830e006
......@@ -40,7 +40,7 @@
<view class="list-item" @click="goToMyCourse">
<image class="item-icon" :src="require('@/assets/images/studyCenter/my-courses.png')" mode="aspectFit" />
<view class="item-text">我的课程</view>
<view class="badge" v-if="dataInfo.unReadCount > 0">{{dataInfo.unReadCount}}</view>
<view class="badge" v-if="dataInfo.unReadCount > 0"></view>
</view>
<view class="list-item" @click="goToMyExam">
<image class="item-icon" :src="require('@/assets/images/studyCenter/my-exam.png')" mode="aspectFit" />
......@@ -651,10 +651,10 @@ export default {
.badge {
position: absolute;
top: toRpx(4);
right: toRpx(38);
width: toRpx(24);
height: toRpx(24);
top: toRpx(8);
right: toRpx(48);
width: toRpx(12);
height: toRpx(12);
border-radius: toRpx(732);
background: #f24724;
display: flex;
......
......@@ -551,7 +551,7 @@ export default {
{ sceneType } = this
if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return
// if (await this.inspectionOfProhibitionBill()) return
// 检查是否限制录单
const res = await this.getLimitRecord()
if (res.lockOrder) {
......
......@@ -10,10 +10,10 @@
<!-- 第二段描述(橙色) -->
<view class="highlight-text">
<template v-if="lockReason === 0">
<template v-if="lockReason == '0'">
到学习中心-我的课程-待学习,完成课程学习后,即可解锁开单权限。
</template>
<template v-if="lockReason === 1">
<template v-if="lockReason == '1'">
到学习中心-我的任务,完成长课程学习任务后,即可解锁开单权限。
</template>
</view>
......@@ -34,8 +34,8 @@
export default {
props: {
lockReason: {
type: Number,
default: 0
type: String,
default: '0'
}
},
name: 'StudyCenterPermissionPopup',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!