diff --git a/package (2).json b/package (2).json new file mode 100644 index 0000000..aabd29e --- /dev/null +++ b/package (2).json @@ -0,0 +1,16 @@ +{ + "id": "yk-screenRecord", + "name": "实现微信小程序安卓IOS禁止截屏、录屏功能", + "displayName": "实现微信小程序安卓IOS禁止截屏、录屏功能", + "version": "1.0.0", + "description": "禁止截屏、录屏功能,支持安卓、IOS、小程序等多端通用,哪里需要那里应引用即可,方便快捷", + "keywords": [ + "uniapp、微信小程序、截屏、录屏、方便快捷" + ], + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ] + } +} \ No newline at end of file diff --git a/pages.json b/pages.json index 0f5bf63..9f92567 100644 --- a/pages.json +++ b/pages.json @@ -599,6 +599,13 @@ "navigationBarTitleText" : "课程下可加入班级列表" } }, + { + "path" : "pages/miniClass/allLearningClassList", + "style" : + { + "navigationBarTitleText" : "全部可加入班级列表" + } + }, { "path" : "pages/miniClass/myClassList", "style" : diff --git a/pages/course/chapterDetailAndorid.vue b/pages/course/chapterDetailAndorid.vue index 953f5b3..2ffec53 100644 --- a/pages/course/chapterDetailAndorid.vue +++ b/pages/course/chapterDetailAndorid.vue @@ -66,8 +66,11 @@ - - 我的见解 + + + 我的见解 + @{{classList[0].title}} + 修改 @@ -104,9 +107,10 @@ 欢迎留下你的见解 + 提交到{{classList[0].title}} - - 写见解 + + 写见解 @@ -365,6 +369,11 @@ } this.showEditBlank = true }, + gotoClass(item){ + uni.navigateTo({ + url: `/pages/miniClass/classInfo?id=${item.id}` + }); + }, closePup() { this.showEditBlank = false this.answerForm = { @@ -796,7 +805,7 @@ checkDisable() { console.log("点击了"); }, - // 判断用户是否加入了小班 小班列表为0 表示已经加入 + // 判断用户是否加入了小班 getClassList(){ $http.request({ url: '/common/class/getClassByUser', @@ -937,34 +946,7 @@ \ No newline at end of file diff --git a/pages/miniClass/classInfo.vue b/pages/miniClass/classInfo.vue index 990d3da..7b9d9dd 100644 --- a/pages/miniClass/classInfo.vue +++ b/pages/miniClass/classInfo.vue @@ -12,11 +12,8 @@

{{thisClass.title}}

- 退出班级 -
- + 退出班级 + 创建日期 思考题分 {{performanceScore.questionScore}} - + + @@ -168,11 +180,15 @@ {{item.title}} - - {{item.content}} + + + {{item.content}} + + + {{item.zhedie ? '收起' : '展开'}} 日期:{{item.createTime}} @@ -203,12 +219,10 @@ --> - - - + @@ -264,7 +278,7 @@ - + @@ -454,6 +468,10 @@ }, }, methods: { + changeZheDie(item, index){ + + this.taskList[index].zhedie = !this.taskList[index].zhedie + }, // 查询平时表现分 getScore() { $http.request({ @@ -565,7 +583,6 @@ this.loadFlag = true; this.pPage++; var data = { - "limit": 10, "page": this.pPage, "classId": this.thisClass.id, @@ -587,6 +604,9 @@ if (res.page.records.length > 0) { console.log('数据获取成功', res.page.records); var lis = res.page.records + lis.forEach(item => { + item.zhedie = false + }) this.taskList = this.taskList.concat(lis) if (res.page.pages > 1) { this.taskHaveMore = true @@ -1078,7 +1098,13 @@ } } } - + .zhengshu{color: #ffaa7f; border:1px solid #ffaa7f} + .chongxiu{color: #00aaff; border:1px solid #00aaff} + .greenScore{color: #55aa00;} + .blueScore{color: #00aaff;} + .redScore{color: #ff8a8c;} + .scoreNumber{font-size: 60rpx;} +.chengji{padding-top: 20rpx; margin-top: 20rpx; border-top: 1px solid #eee; } .manBtnBox { justify-content: center; @@ -1167,7 +1193,7 @@ } .date {} - +.btn1{color: $themeColor; font-size: 30rpx;} .btn { border: 1px solid $themeColor; margin-top: 20rpx; @@ -1185,7 +1211,9 @@ } } } - +.zhedie{ + @include bov(2); + } .nobg { background-color: transparent !important; } diff --git a/pages/miniClass/classInfoMan.vue b/pages/miniClass/classInfoMan.vue index 04666b3..a2769a4 100644 --- a/pages/miniClass/classInfoMan.vue +++ b/pages/miniClass/classInfoMan.vue @@ -26,7 +26,7 @@ + @click="goEditClass('/pages/miniClass/addClass',thisClass.id, classModel.type)"> 修改班级 @@ -672,6 +672,11 @@ import { ref, onMounted } from 'vue'; url: `${url}?id=${id}&type=${modeType}` }); }, + goEditClass(url, id, modeType){ + uni.navigateTo({ + url: `${url}?id=${id}&type=${modeType}&modelTitle=${this.classModel.title}` + }); + }, tabClick(e) { console.log('e', e); this.tabId = e.id @@ -954,6 +959,7 @@ import { ref, onMounted } from 'vue'; var off70 = undefined // 时长过70%显示结班按钮天数 off70 = Math.ceil(parseInt(this.classModel.days) * 0.7 ) var off70miniSecond = off70 * 1000*60*60*24 + console.log('时间比较',(off70miniSecond + time3), nowTime) if((off70miniSecond + time3) <= nowTime){ console.log('显示结班按钮'); this.thisClass.showOverBtn = true diff --git a/pages/miniClass/myClassList.vue b/pages/miniClass/myClassList.vue index 617b708..7e9a615 100644 --- a/pages/miniClass/myClassList.vue +++ b/pages/miniClass/myClassList.vue @@ -379,7 +379,7 @@ onPageJump(url, id, have) { // console.log('进来了',url,id); uni.navigateTo({ - url: `${url}?id=${id}&have=${have}` + url: `${url}?id=${id}` }); }, diff --git a/pages/miniClass/sikaoQuestionList.vue b/pages/miniClass/sikaoQuestionList.vue index fe30207..cb21e8d 100644 --- a/pages/miniClass/sikaoQuestionList.vue +++ b/pages/miniClass/sikaoQuestionList.vue @@ -15,6 +15,9 @@ + + 来源:{{item.courseTitle}}>{{item.chapterTitle}} + 收起 查看原题 @@ -418,7 +421,7 @@ border-bottom: 1px dashed #eee; padding-bottom: 20rpx; margin-bottom: 20rpx; - .pp{font-size: 30rpx !important;} + .pp{font-size: 30rpx !important; @include bov(2); line-height: 50rpx;} // .userName{} } @@ -427,7 +430,7 @@ justify-content: center; color: #666; font-size: 28rpx; - + .laiyuan{font-size: 22rpx; padding: 10rpx; background-color: #eee; margin-top: 16rpx;} .btn { display: block;padding: 10rpx; text-align: center; diff --git a/pages/miniClass/taskDetail.vue b/pages/miniClass/taskDetail.vue index a757c21..fb3d052 100644 --- a/pages/miniClass/taskDetail.vue +++ b/pages/miniClass/taskDetail.vue @@ -70,19 +70,20 @@ - - + + + {{item.content}} + + - - {{item.content}} - - + {{item.createTime}} + {{item.zhedie ? '收起' : '展开'}} @@ -351,6 +352,9 @@ }, }); }, + changeZheDie(item, index){ + this.zuoyeList[index].zhedie = !this.zuoyeList[index].zhedie + }, getZuoyeList() { this.status = 1; if (this.loadFlag) { @@ -589,7 +593,12 @@ background-color: $themeColor; } } - + .contentss{ + + } + .zhedie{ + @include bov(2); + } .anserBox { border: 4rpx dotted #2bb447; margin-top: 30rpx; @@ -642,9 +651,11 @@ // .userName{} } .leve2{ overflow: hidden; + .imgBox{margin-top: 20rpx;} .score{ margin-top: 20rpx; float: left; } + .btn{color: $themeColor;} .date{color: #999; float: right; text-align: right; font-size: 26rpx;} } } diff --git a/pages/miniClass/taskDetailForMan.vue b/pages/miniClass/taskDetailForMan.vue index c1178c2..105f986 100644 --- a/pages/miniClass/taskDetailForMan.vue +++ b/pages/miniClass/taskDetailForMan.vue @@ -11,15 +11,14 @@

题目内容

{{thisTask.title}} + + - - - + + + + + + 班级列表 + + + 更多班级 + + + + + + + + + + + + + + + {{item.title}} + 目标学员人数:{{item.number}} + + + + + + + + + + + + @@ -289,6 +338,7 @@ sbuMedicalTagsList: [], newsList: [], // 播报新闻列表 weburl: '', + classList : [], // webviewStyles: { // progress: true, // width: '100%', @@ -307,13 +357,17 @@ this.page = 1 }, //页面显示 - onShow() { + async onShow() { uni.hideTabBar(); // #ifdef APP-PLUS plus.screen.unlockOrientation(); plus.screen.lockOrientation("portrait-primary"); // #endif this.requestAll() + this.classList = await this.getClassNoUser() + if(this.classList.length > 6){ + this.classList = this.classList.slice(0,6) + } }, onTabItemTap() { @@ -357,6 +411,29 @@ //方法 methods: { ...mapMutations(['setUserInfo']), + + // 查询可加入的小班 + async getClassNoUser(){ + var _list = [] + await $http.request({ + url: "common/class/getClassNoUser", + method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 + header: { //默认 无 说明:请求头 + 'Content-Type': 'application/json' + }, + }) + .then(async res => { + if (res.code == 0) { + if (res.result.length > 0) { + _list = res.result + } + } + + }).catch(e => { + console.log(e, '获取医学班级列表错误') + }); + return _list + }, goGoodsDetail(v,isMiaosha) { console.log(v); uni.navigateTo({ @@ -1000,7 +1077,9 @@ font-weight: bold; } } - + .moreBtn{ + color: $themeColor; font-size: 26rpx; + } .learnBox { background-color: #fff; margin-top: 10px; @@ -1505,4 +1584,19 @@ .imgcontainer { background-color: $imgBg; } + .classItemBox{margin-top: 20rpx; height: 250rpx; + swiper-item{ padding: 10rpx; width: 90% !important; + .wid90{width: 90% !important;} + .classItem{border: 1px solid #eee; border-radius: 10rpx; padding: 10rpx;} + padding-right:20rpx ; box-sizing:border-box} + + } + .classItem{ + .className{font-weight: bold; font-size: 32rpx;} + .textBox{margin-left: 20rpx; flex: 1; align-items: center;} + .img{width: 200rpx; height: 200rpx; overflow: hidden; + imgage{ + width: 100%; height: 100%; + }} + } \ No newline at end of file diff --git a/static/class.png b/static/class.png new file mode 100644 index 0000000..2cb26e3 Binary files /dev/null and b/static/class.png differ diff --git a/style/common.scss b/style/common.scss index 252b6e9..28fd874 100644 --- a/style/common.scss +++ b/style/common.scss @@ -85,7 +85,7 @@ $themeBgColor: #EDF6F5 !important; // font-weight: 600; } - +.c999{color: #999;} .PM_font { font-family: PangMenZhengDaoBiaoTiTiMianFeiBan; }