计算数字

This commit is contained in:
daihh
2022-10-14 21:37:59 +08:00
parent 5e633f5867
commit e7b0132a3a
2 changed files with 27 additions and 9 deletions

View File

@@ -100,8 +100,7 @@
<div class="course-author">
<div class="course-author-left">
{{ course.authorInfo.name }}
<span class="study-num" v-if="course.studiesFormat == 0">{{course.studiesFormat}}人学习</span>
<span class="study-num" v-if="course.studiesFormat != 0">{{course.studiesFormat}}+人学习</span>
<span class="study-num" >{{formatNum(course.studys)}}人学习</span>
</div>
<div style="display: flex;">
<div style="width:30px;">
@@ -409,11 +408,12 @@
import GuideBox from '@/components/Portal/guideBox.vue'
import {
toScore,
cutFullName
cutFullName,
formatUserNumber
} from '@/utils/tools.js';
import {
swiper,
swiperSlide
swiperSlide,
} from 'vue-awesome-swiper';
import apiPlace from "@/api/phase2/place.js"
import authorImg from '@/components/Portal/authorImg.vue';
@@ -447,7 +447,8 @@
uvalue:0,
totalStudyHour:0
},
userInfo: {},
formatNum:formatUserNumber,
//userInfo: {},
ankingList: [],
answersList: [],
Popularity: [],
@@ -506,7 +507,7 @@
};
},
mounted() {
this.userInfo = this.$store.getters.userInfo;
//this.userInfo = this.$store.getters.userInfo;
// console.log(this.this.userInfo)
this.getCourseData(1);
this.getCaseData();