暂存
This commit is contained in:
@@ -631,7 +631,8 @@
|
||||
"path" : "pages/miniClass/addHomeWork",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText" : "发布作业"
|
||||
"navigationBarTitleText" : "发布作业",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -3,16 +3,21 @@
|
||||
<z-nav-bar title="我的证书"></z-nav-bar>
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
|
||||
<view class="list" v-if="certificateList.length > 0">
|
||||
<view class="" style="margin: 10rpx;">
|
||||
【 共 {{certificateList.length}} 个证书 】
|
||||
</view>
|
||||
<view class="item" v-for="(item,index) in certificateList" :key="index">
|
||||
<view class="flex_box">
|
||||
<h3>编号:{{item.certificateNo}}</h3>
|
||||
<view class="flex_box flex_between align-items_box">
|
||||
<h3 style="font-size: 28rpx;">编号:{{item.certificateNo}}</h3>
|
||||
|
||||
<text class="small_btn border_radius_10"
|
||||
style="display: block;font-size: 28rpx; color: #55aaff; border:1px solid #55aaff"
|
||||
v-if="item.certificateUrlList.length <= 0"
|
||||
@click="showSubmit(item.id)">立即获取证书</text>
|
||||
|
||||
</view>
|
||||
<view class="imgBox flex_box flex_between" >
|
||||
<view class="imgBox flex_box flex_between" v-if="item.certificateUrlList.length > 0">
|
||||
<view class="img" v-for="(item1,index1) in item.certificateUrlList" :key="index1">
|
||||
<image @click="preveImg(item1)" :src="item1" mode="widthFix"></image>
|
||||
</view>
|
||||
@@ -20,6 +25,7 @@
|
||||
<text class="small_btn border_radius_10 moreBtn" @click="showMore(item)">详细信息</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
@@ -40,10 +46,47 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-popup key="2" :show="showSubmitInfoBlank" :round="10" @close="closeManager" z-index="998"
|
||||
overlay-style="z-index:998">
|
||||
<view class="guanli userinfoPup">
|
||||
<view class="" style="text-align: center; margin-bottom: 40rpx;">
|
||||
<h3>信息确认</h3>
|
||||
<text style="color: #666;">请确认以下证书信息</text>
|
||||
</view>
|
||||
<view class="tips border_radius_10">
|
||||
<!-- {{submitInfo.name}}-{{submitInfo.photo}} -->
|
||||
<view class="flex_box align-items_box item">
|
||||
<text class="mr20rpx">证书姓名:</text>
|
||||
<text class="mr20rpx">
|
||||
{{submitInfo.name && submitInfo.name != '' && submitInfo.name != null ? submitInfo.name : '未设置'}}
|
||||
</text>
|
||||
<text class="small_btn border_radius_10"
|
||||
v-if="!submitInfo.name || submitInfo.name != '' || submitInfo.name != null"
|
||||
@click="onPageJump('/pages/mine/userInfo/persData')" style="margin-left: 20rpx ; display: block; height: 30px; line-height: 30rpx;">
|
||||
{{submitInfo.name && submitInfo.name != '' && submitInfo.name != null ? '去修改' : '去设置'}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex_box align-items_box item">
|
||||
<text class="mr20rpx">证书照片:</text>
|
||||
<image @click="preveImg(submitInfo.photo)" class="mr20rpx"
|
||||
v-if="submitInfo.photo && submitInfo.photo != '' && submitInfo.photo != null"
|
||||
:src="submitInfo.photo" mode="widthFix" style="width:100rpx; height:140rpx;"></image>
|
||||
<text class="mr20rpx" v-else>未上传</text>
|
||||
<text class="small_btn border_radius_10"
|
||||
v-if="!submitInfo.photo || submitInfo.photo != '' || submitInfo.photo != null"
|
||||
@click="onPageJump('/pages/mine/userInfo/persData')"
|
||||
style="margin-left: 20rpx ;display: block; height: 30px; line-height: 30rpx;">{{submitInfo.photo && submitInfo.photo != '' && submitInfo.photo != null ? '去修改' : '去上传'}}</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn_box_certificate"><button @click="createCertificate">立即生成证书</button></view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<z-navigation></z-navigation>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import debounce from "@/common/debounce.js";
|
||||
import $http from '@/config/requestConfig.js';
|
||||
// import permission from "@/js_sdk/wa-permission/permission.js"
|
||||
import {
|
||||
@@ -55,7 +98,14 @@
|
||||
return {
|
||||
certificateList: [],
|
||||
showTestTips:false,
|
||||
thisInfo : undefined
|
||||
thisInfo : undefined,
|
||||
certificateFlag:false,
|
||||
showSubmitInfoBlank:false,
|
||||
submitInfo: {
|
||||
img: undefined, // 证件图
|
||||
name: '' // 姓名
|
||||
},
|
||||
thisCertificateId:undefined
|
||||
}
|
||||
},
|
||||
//第一次加载
|
||||
@@ -64,8 +114,14 @@
|
||||
// this.pageType = e.type
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
async onShow() {
|
||||
this.getList()
|
||||
var userObj = await this.getUserData()
|
||||
if (userObj) {
|
||||
this.submitInfo.name = userObj.name
|
||||
this.submitInfo.photo = userObj.photo
|
||||
// this.showSubmitInfoBlank = true
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
@@ -78,6 +134,98 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
async showSubmit(id) {
|
||||
this.thisCertificateId = id
|
||||
this.showSubmitInfoBlank = true
|
||||
},
|
||||
async getUserData() {
|
||||
let that = this;
|
||||
var Ss = undefined
|
||||
// 获取个人信息
|
||||
if (this.userInfo.id != undefined) {
|
||||
await this.$http
|
||||
.post('book/user/info/' + this.userInfo.id)
|
||||
.then(async (res) => {
|
||||
Ss = res.user;
|
||||
console.log('that.userData at line 698个人中心:', res.user)
|
||||
});
|
||||
return Ss
|
||||
}
|
||||
},
|
||||
// 生成证书
|
||||
createCertificate() {
|
||||
debounce(async () => {
|
||||
if(this.certificateFlag) return
|
||||
|
||||
if (this.submitInfo.name && this.submitInfo.name != null && this.submitInfo.name != '' &&
|
||||
this.submitInfo.photo && this.submitInfo.photo != null && this.submitInfo.photo != '') {
|
||||
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: "真实姓名或证书照片未设置,请设置完成后再来生成证书吧",
|
||||
cancelText: '稍后设置',
|
||||
confirmText: '立即设置',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine/userInfo/persData'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
this.certificateFlag = true
|
||||
uni.showLoading({
|
||||
title:'正在生成'
|
||||
})
|
||||
var data = {
|
||||
"id": this.thisCertificateId //证书id
|
||||
}
|
||||
// console.log('证书提交数据',data,this.performanceScore.userScore);
|
||||
$http.request({
|
||||
url: "common/class/generateCertificateClass",
|
||||
method: "POST",
|
||||
data,
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
uni.hideLoading()
|
||||
if (res.code == 0) {
|
||||
console.log('证书返回值', res);
|
||||
uni.showToast({
|
||||
title: '生成成功',
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.getList()
|
||||
this.closeManager()
|
||||
// this.getScore()
|
||||
}, 300)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.errMsg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
setTimeout(()=>{
|
||||
this.certificateFlag = false
|
||||
},300)
|
||||
|
||||
}).catch(e => {
|
||||
this.certificateFlag = false
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: e.errMsg,
|
||||
icon: 'none'
|
||||
})
|
||||
});
|
||||
},300)
|
||||
|
||||
},
|
||||
// 图片预览
|
||||
preveImg(url) {
|
||||
console.log('dianjile fangda tu');
|
||||
@@ -86,7 +234,7 @@
|
||||
current: 0
|
||||
});
|
||||
},
|
||||
// 获取班级详情
|
||||
|
||||
getList() {
|
||||
// console.log('获取课程详情');
|
||||
uni.showLoading({
|
||||
@@ -124,18 +272,78 @@
|
||||
},
|
||||
closeManager(){
|
||||
this.showTestTips = false
|
||||
this.showSubmitInfoBlank = false
|
||||
this.thisInfo = undefined
|
||||
},
|
||||
showMore(item){
|
||||
this.thisInfo = item
|
||||
this.showTestTips = true
|
||||
}
|
||||
},
|
||||
// 跳转
|
||||
onPageJump(url, id, modeType) {
|
||||
uni.navigateTo({
|
||||
url: `${url}?id=${id}&type=${modeType}`
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import '@/style/mixin.scss';
|
||||
.btn_box_certificate {
|
||||
margin-top: 70rpx;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
button {
|
||||
font-size: 32rpx;
|
||||
@include theme('btn_bg') color: #fff;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
}
|
||||
.guanli {
|
||||
padding: 40rpx;
|
||||
|
||||
h3 {
|
||||
text-align: center;
|
||||
margin-bottom: 20rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.item {
|
||||
color: #333;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.personbox {
|
||||
display: inline-block;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.arryItem {
|
||||
.arryItemSub {
|
||||
display: inline-block;
|
||||
color: #666;
|
||||
// padding-left: 80rpx;
|
||||
}
|
||||
}
|
||||
|
||||
text {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
}
|
||||
.userinfoPup {
|
||||
.tips {
|
||||
// .item{justify-content: space-around;}
|
||||
}
|
||||
|
||||
.small_btn {
|
||||
color: #55aaff;
|
||||
border: #55aaff 1px solid;
|
||||
}
|
||||
}
|
||||
.page {
|
||||
background-color: #ffffff;
|
||||
padding: 0 20rpx;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:'+(showEditBlank?'hidden':'visible')"></page-meta>
|
||||
<view class="">
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
@@ -122,15 +123,16 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="">
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="" @touchmove.stop="" >
|
||||
<view class="" style="padding: 40rpx; max-height: 80vh; overflow-y:scroll">
|
||||
<view class="answerBox">
|
||||
<view class="PM_font" style="padding: 20rpx; font-size: 40rpx; color: #333">见解提交</view>
|
||||
<scroll-view scroll-top="" scroll-y="true" class="scroll-Y" style="max-height: 400rpx; margin: 20rpx 0;">
|
||||
<view class="container">
|
||||
<view class="page-body">
|
||||
<view class='wrapper'>
|
||||
<view class="editor-wrapper">
|
||||
<editor id="editor" class="ql-container" placeholder="请输入您的见解..."
|
||||
<editor @input="editorIput" id="editor" class="ql-container" placeholder="请输入您的见解..."
|
||||
show-img-size show-img-toolbar show-img-resize
|
||||
@statuschange="onStatusChange" :read-only="readOnly"
|
||||
@ready="onEditorReady">
|
||||
@@ -139,6 +141,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="input_box">
|
||||
<text class="input_tit" style="display: block;margin-bottom: 15rpx;">上传图片:</text>
|
||||
<view class="in" style="border: none;" @click="checkPermision">
|
||||
@@ -171,7 +174,7 @@
|
||||
import courseDescription from "@/pages/component/commonComponents/list";
|
||||
import curriculumMp3 from "./mp3Detail.vue";
|
||||
import price from "./price/index.vue";
|
||||
|
||||
import debounce from "@/common/debounce.js";
|
||||
import $http from "@/config/requestConfig.js";
|
||||
import {
|
||||
mapState
|
||||
@@ -300,6 +303,7 @@
|
||||
formats: {},
|
||||
myAnswer: {}, // 我的思考题回答
|
||||
oldContent:'', // 老的内容
|
||||
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -352,12 +356,18 @@
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
editorIput(e){
|
||||
},
|
||||
moveHandle() {
|
||||
return false;
|
||||
},
|
||||
showBlank(val) {
|
||||
// this.noScroll()
|
||||
console.log('zouzheli .....................');
|
||||
if (val) {
|
||||
this.answerForm = val
|
||||
// this.editorCtx = val.content
|
||||
this.fileList1 = [...val.fileList]
|
||||
// this.fileList1 = [...val.fileList]
|
||||
} else {
|
||||
this.answerForm = {
|
||||
relationId: this.options.id,
|
||||
@@ -366,9 +376,9 @@
|
||||
content: "",
|
||||
img: "",
|
||||
id: undefined
|
||||
},
|
||||
}
|
||||
// this.editorCtx = ''
|
||||
this.fileList1 = []
|
||||
// this.fileList1 = []
|
||||
// console.log('this.answerForm++++', this.answerForm);
|
||||
}
|
||||
// 赋值给编辑器
|
||||
@@ -381,6 +391,7 @@
|
||||
});
|
||||
},
|
||||
async closePup() {
|
||||
// this.canScroll()
|
||||
this.showEditBlank = false
|
||||
let data = await this.getHtml();
|
||||
var _data = data.html.replace(/<.*?>/g, "")
|
||||
@@ -489,6 +500,7 @@
|
||||
this.answerForm.display = e.detail.value
|
||||
},
|
||||
async onSubmit() {
|
||||
debounce(async () => {
|
||||
let data = await this.getHtml();
|
||||
var _data = data.html.replace(/<.*?>/g, "")
|
||||
if (!_data || _data == '') {
|
||||
@@ -522,7 +534,7 @@
|
||||
"img": this.answerForm.img
|
||||
}
|
||||
|
||||
console.log('data', data1);
|
||||
console.log('提交的data', data1);
|
||||
$http.request({
|
||||
url: _url,
|
||||
method: "POST",
|
||||
@@ -551,7 +563,7 @@
|
||||
icon: 'error'
|
||||
})
|
||||
});
|
||||
|
||||
},300)
|
||||
// console.log('data',data.html.replace(/<.*?>/g,""));
|
||||
},
|
||||
getHtml() {
|
||||
|
||||
@@ -2456,7 +2456,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hidden2{line-height: 50rpx; height: 100rpx;}
|
||||
.subLine {
|
||||
* {
|
||||
display: inline !important;
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
<view class="in">
|
||||
<view class="uni-textarea">
|
||||
<textarea v-show="false" placeholder-style="font-size:26rpx" v-model="form.content"
|
||||
maxlength="600" auto-height placeholder="请输入内容" />
|
||||
auto-height placeholder="请输入内容" />
|
||||
<view class="editor-wrapper">
|
||||
<editor id="editor" class="ql-container" placeholder="请输入内容..." show-img-size
|
||||
<editor @input="editorIput" id="editor" class="ql-container" placeholder="请输入内容..." show-img-size
|
||||
show-img-toolbar show-img-resize @statuschange="onStatusChange"
|
||||
:read-only="readOnly" @ready="onEditorReady">
|
||||
</editor>
|
||||
@@ -80,6 +80,7 @@
|
||||
} from 'qs';
|
||||
import $http from '@/config/requestConfig.js';
|
||||
import permission from "@/js_sdk/wa-permission/permission.js"
|
||||
import debounce from "@/common/debounce.js";
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
@@ -146,6 +147,9 @@
|
||||
pageName: ''
|
||||
};
|
||||
},
|
||||
onPullDownRefresh(){
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
console.log('收到的值', e);
|
||||
@@ -177,7 +181,7 @@
|
||||
} else if (e.type == 1) {
|
||||
this.pageType = '医案'
|
||||
} else if (e.type == 2) {
|
||||
this.pageType = '心得222'
|
||||
this.pageType = '心得'
|
||||
} else {
|
||||
this.pageType = '作业'
|
||||
}
|
||||
@@ -196,6 +200,9 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
editorIput(e){
|
||||
|
||||
},
|
||||
readOnlyChange() {
|
||||
this.readOnly = !this.readOnly
|
||||
},
|
||||
@@ -325,16 +332,11 @@
|
||||
});
|
||||
},
|
||||
async onSubmit() {
|
||||
// debounce(async () => {
|
||||
let that = this
|
||||
if (this.flag) {
|
||||
console.log('拦截了吗');
|
||||
return
|
||||
} else {
|
||||
this.flag = true
|
||||
console.log('没拦截?', this.flag);
|
||||
}
|
||||
|
||||
// this.flag = true
|
||||
let data = await this.getHtml();
|
||||
var _data = data.html.replace(/<.*?>/g, "")
|
||||
if (!_data || _data == '') {
|
||||
@@ -367,12 +369,13 @@
|
||||
this.form.img = ''
|
||||
}
|
||||
console.log('this.form', this.form);
|
||||
this.flag = true
|
||||
uni.showLoading({
|
||||
title:'请稍后'
|
||||
})
|
||||
var _url = ""
|
||||
this.form.id ? _url = "common/class/editClassTask" : _url = "common/class/addClassTask"
|
||||
$http.request({
|
||||
url: _url,
|
||||
method: "POST",
|
||||
data: {
|
||||
var data = {
|
||||
"id": this.form.id,
|
||||
"classId": this.form.id ? undefined : this.form.classId,
|
||||
"type": this.form.type, //类型 0班内任务1医案2心得
|
||||
@@ -382,13 +385,19 @@
|
||||
"img": this.form.img,
|
||||
"sort": this.form.sort && !this.form.id ? parseInt(this.form.sort) +
|
||||
1 : undefined
|
||||
},
|
||||
}
|
||||
console.log('提交的数据',data);
|
||||
$http.request({
|
||||
url: _url,
|
||||
method: "POST",
|
||||
data,
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
// this.flag = false
|
||||
uni.hideLoading()
|
||||
uni.showToast({
|
||||
title: '操作成功!',
|
||||
icon: 'success'
|
||||
@@ -401,6 +410,7 @@
|
||||
})
|
||||
}, 1000)
|
||||
}).catch(e => {
|
||||
uni.hideLoading()
|
||||
this.flag = false
|
||||
// console.log('表单错误信息:', err);
|
||||
uni.showToast({
|
||||
@@ -416,7 +426,9 @@
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
// },300)
|
||||
},
|
||||
|
||||
},
|
||||
//页面隐藏
|
||||
onHide() {},
|
||||
@@ -434,7 +446,7 @@
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import '@/style/mixin.scss';
|
||||
|
||||
.ql-container{height: auto;}
|
||||
::v-deep .uni-forms-item {
|
||||
margin-bottom: 26rpx !important;
|
||||
}
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
class="mainTxt">{{students.length}}/{{thisClass.number}}人</text></view>
|
||||
<view><text class="ciyao">管理成员</text><text class="mainTxt" @click="seeManager">点击查看</text></view>
|
||||
</view>
|
||||
<!-- v-if="thisClass.state == '2'" -->
|
||||
|
||||
<template v-if="isHave">
|
||||
<view class="pingfenBox testBox" v-if="thisClass.state == '3' || thisClass.state == '2'">
|
||||
<view class="pingfenBox testBox" v-if=" thisClass.state == '2'">
|
||||
<view class="scoreTitle">
|
||||
<view class="titles flex_box">
|
||||
<text>总分</text><uni-icons type="help" size="18" color="#fff"
|
||||
@@ -65,18 +65,19 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-if="performanceScore.userScore >= 60">
|
||||
<view class="" v-if="certificate && certificate.id">
|
||||
<text>恭喜您获得</text>
|
||||
<text class="yellowScore" v-if=" performanceScore.userScore >= 70"> A 证</text>
|
||||
<text class="blueScore"
|
||||
v-else-if="performanceScore.userScore >= 60 && performanceScore.userScore < 70"> B 证</text>
|
||||
<text :class="[certificate.type=='A' ? 'yellowScore':'blueScore']" v-if=" performanceScore.userScore >= 70"> {{certificate.type}} 证</text>
|
||||
<!-- <text class=""
|
||||
v-else-if="performanceScore.userScore >= 60 && performanceScore.userScore < 70"> B 证</text> -->
|
||||
<text class="small_btn border_radius_10 zhengshu"
|
||||
@click="showSubmit">{{certificate && certificate.id ? '查看证书' : '生成证书'}}</text>
|
||||
@click="showSubmit">
|
||||
{{certificate && certificate.id && certificate.certificateUrl.length > 0 ? '查看证书' : '去生成证书'}}
|
||||
</text>
|
||||
</view>
|
||||
<template v-if="performanceScore.userScore < 60">
|
||||
<view class="flex_box flex_center align-items_box" style="justify-content: center;">
|
||||
<text style="text-align: center;">很遗憾,您的成绩未达标</text>
|
||||
{{newCLass}}
|
||||
<view class="" style="text-align: center;"
|
||||
v-if="newCLass && newCLass != null && newCLass.id">
|
||||
<text class="small_btn chongxiu border_radius_10"
|
||||
@@ -85,7 +86,16 @@
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
<view class="optionsBox" v-if="thisClass.state == '3' && classModel.isExam == 1" style="margin-top: 20rpx;">
|
||||
|
||||
</view>
|
||||
<view class="pingfenBox testBox" v-if=" thisClass.state == '3' && classModel.isExam == 1">
|
||||
<view class="scoreTitle">
|
||||
<view class="titles flex_box">
|
||||
<text>考试分</text><uni-icons type="help" size="18" color="#fff"
|
||||
@click="showTestTips = true"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="optionsBox" v-if="thisClass.state == '3' " style="margin-top: 20rpx;">
|
||||
<view class=" ">
|
||||
<view class="">
|
||||
<!-- -->
|
||||
@@ -816,7 +826,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
if (this.thisClass.state == '2' || this.thisClass.state == '2') {
|
||||
if (this.thisClass.state == '2') {
|
||||
var userObj = await this.getUserData()
|
||||
if (userObj) {
|
||||
this.submitInfo.name = userObj.name
|
||||
@@ -954,15 +964,15 @@
|
||||
return list
|
||||
},
|
||||
async showSubmit() {
|
||||
if (this.certificate && this.certificate.id) {
|
||||
// if (this.certificate && this.certificate.id && this.certificate.certificateUrl.length > 3) {
|
||||
// 已生成
|
||||
uni.navigateTo({
|
||||
url: '/pages/certificate/certificate'
|
||||
})
|
||||
} else { // 未生成
|
||||
this.showSubmitInfoBlank = true
|
||||
// } else { // 未生成
|
||||
// this.showSubmitInfoBlank = true
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
},
|
||||
async getUserData() {
|
||||
@@ -1227,7 +1237,7 @@
|
||||
createCertificate() {
|
||||
debounce(async () => {
|
||||
if(this.certificateFlag) return
|
||||
this.certificateFlag = true
|
||||
|
||||
if (this.submitInfo.name && this.submitInfo.name != null && this.submitInfo.name != '' &&
|
||||
this.submitInfo.photo && this.submitInfo.photo != null && this.submitInfo.photo != '') {
|
||||
|
||||
@@ -1259,12 +1269,12 @@
|
||||
})
|
||||
return
|
||||
}
|
||||
this.certificateFlag = true
|
||||
uni.showLoading({
|
||||
title:'正在生成'
|
||||
})
|
||||
var data = {
|
||||
"type": type, //证书类型A a证 B b证 ZK自考
|
||||
"relationId": this.classId //小班id、课程id
|
||||
"id": this.certificate.id //证书id
|
||||
}
|
||||
// console.log('证书提交数据',data,this.performanceScore.userScore);
|
||||
$http.request({
|
||||
@@ -1330,13 +1340,13 @@
|
||||
this.getNewCLassInfo()
|
||||
} else {
|
||||
// >= 60
|
||||
// if (this.thisClass.state == '2') {
|
||||
if (this.thisClass.state == '2') {
|
||||
var certificate = await this.getCertificateInfo()
|
||||
if (certificate && certificate.length > 0 && certificate[0].id) {
|
||||
this.certificate = certificate[0]
|
||||
}
|
||||
console.log('this.certificate', certificate);
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
@@ -2127,9 +2137,9 @@
|
||||
|
||||
.zhengshu {
|
||||
margin-left: 20rpx;
|
||||
color: #ffaa7f;
|
||||
color: #55aa7f;
|
||||
font-size: 28rpx;
|
||||
border: 1px solid #ffaa7f
|
||||
border: 1px solid #55aa7f
|
||||
}
|
||||
|
||||
.chongxiu {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<!-- <view class="curseSet" slot="right" @click="shuomingPage('/pages/course/courseSet',tagId,pid)">
|
||||
<uni-icons type="info" size="24"></uni-icons>设置</view> -->
|
||||
</z-nav-bar>
|
||||
<!-- <text @click="changeClassStatu('2')">结班</text> -->
|
||||
<!-- <view class="" style="background-color: #f4f7ff; min-height: calc(100vh - 200rpx);"> -->
|
||||
<view class="mainContent" v-if="thisClass.id">
|
||||
<!-- <view class="" style="height: 40rpx;"></view> -->
|
||||
@@ -871,11 +872,6 @@
|
||||
changeClassStatu(statusCode) {
|
||||
let that = this
|
||||
that.opClass(statusCode)
|
||||
// if (statusCode == '1') {
|
||||
|
||||
// } else if (statusCode == '2') {
|
||||
// that.opClass(statusCode)
|
||||
// }
|
||||
|
||||
},
|
||||
// 考试周和结班状态下,学员的信息
|
||||
@@ -943,6 +939,9 @@
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.getClassInfo()
|
||||
if(statusCode == '2'){
|
||||
this.allCertificate()
|
||||
}
|
||||
}, 500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -960,6 +959,29 @@
|
||||
})
|
||||
});
|
||||
},
|
||||
// 批量生成证书
|
||||
allCertificate(){
|
||||
$http.request({
|
||||
url: "common/class/generateCertificateByClassEnd",
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId":this.classId
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
console.log('批量生成成功',res);
|
||||
}else{
|
||||
console.log('批量生成证书报错',res.errMsg);
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log('批量生成证书报错',res.errMsg);
|
||||
|
||||
});
|
||||
},
|
||||
taskEdit(item) {
|
||||
console.log('taskEdit'.item);
|
||||
},
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="flex_box align-items_box">
|
||||
<view class="classmateImg">
|
||||
<image v-if="item.user.avatar != null && item.user.avatar != ''"
|
||||
<image v-if="item.user.avatar && item.user.avatar != null && item.user.avatar != ''"
|
||||
:src="item.user.avatar" mode="aspectFit"></image>
|
||||
<image v-else src="/static/icon/morenAvavter.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
@@ -75,7 +75,7 @@
|
||||
</view>
|
||||
<text class="score">{{item.examScore}}分</text>
|
||||
</view>
|
||||
<view >
|
||||
<view v-if="thisClass.state == '2'">
|
||||
<view class="ciyao">
|
||||
总分
|
||||
</view>
|
||||
@@ -84,7 +84,7 @@
|
||||
</template>
|
||||
</template>
|
||||
<!-- -->
|
||||
<template v-if="classModel.isExam == 1 && item.classExamUsers.length > 0" >
|
||||
<template v-if="classModel.isExam == 1 && item.classExamUsers.length > 0 && thisClass.state == '2'" >
|
||||
<view v-if="item.userScore >= 60 && item.userScore < 70"
|
||||
:class="['PM_font','zhengshu','Bzheng']"
|
||||
></view>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view style="min-height: 100vh;">
|
||||
<view style="min-height: 100vh; background-color: #f6f6f8;">
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="我的班级">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:'+(showEditBlank?'hidden':'visible')"></page-meta>
|
||||
<view style="min-height: calc(100vh - 120rpx); background-color: #ebf2f5;">
|
||||
<z-nav-bar title="思考题提交列表"></z-nav-bar>
|
||||
<view class="pad20">
|
||||
@@ -29,10 +30,11 @@
|
||||
<u-divider v-show="status == 3" text="暂无数据"></u-divider>
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider>
|
||||
|
||||
<u-popup key="1" v-if="curReplay.replyId" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998" overlay-style="z-index:998">
|
||||
<u-popup key="1" v-if="curReplay.replyId" @touchmove.stop="" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998" overlay-style="z-index:998">
|
||||
<view class="" style="padding: 40rpx; max-height: 80vh; overflow-y:scroll">
|
||||
<view class="anserBox">
|
||||
<h3>提交的内容</h3>
|
||||
<scroll-view scroll-top="" scroll-y="true" class="scroll-Y" style="max-height: 500rpx; margin: 20rpx 0;">
|
||||
<view class="" style="border-bottom: 1px solid #eee; padding-bottom: 20rpx; margin-bottom: 20rpx;">
|
||||
<view class="anserContent" v-html="curReplay.content"></view>
|
||||
<view class="">
|
||||
@@ -43,13 +45,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="date">
|
||||
日期:{{curReplay.createTime}}
|
||||
</view> -->
|
||||
<!-- <view class="" v-if="curReplay.createUser" style="color: #999;padding: 10rpx 0; font-size: 26rpx;">
|
||||
学员信息:{{curReplay.createUser.nickname != null && curReplay.createUser.nickname != '' ? curReplay.createUser.nickname : '匿名用户'}}
|
||||
/ {{curReplay.createUser.tel}}
|
||||
</view> -->
|
||||
</scroll-view>
|
||||
<view class="score" v-show="curReplay.scoreSuccess >= 1">
|
||||
分数:{{curReplay.score}}
|
||||
</view>
|
||||
@@ -424,7 +420,7 @@
|
||||
border-bottom: 1px dashed #eee;
|
||||
padding-bottom: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
.pp{font-size: 30rpx !important; @include bov(2); line-height: 50rpx;}
|
||||
.pp{font-size: 30rpx !important; @include bov(2); line-height: 50rpx; height: 100rpx; overflow: hidden;}
|
||||
|
||||
// .userName{}
|
||||
}
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
<script>
|
||||
import permission from "@/js_sdk/wa-permission/permission.js"
|
||||
import $http from '@/config/requestConfig.js';
|
||||
import debounce from "@/common/debounce.js";
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
@@ -300,13 +301,13 @@
|
||||
},
|
||||
closePup(){
|
||||
this.showEditBlank = false
|
||||
this.form = {
|
||||
taskId: undefined,
|
||||
id: undefined,
|
||||
display: "1", //0不展示1展示
|
||||
content: "",
|
||||
img: ""
|
||||
}
|
||||
// this.form = {
|
||||
// // taskId: undefined,
|
||||
// id: undefined,
|
||||
// display: "0", //0不展示1展示
|
||||
// content: "",
|
||||
// img: ""
|
||||
// }
|
||||
this.fileList1 = []
|
||||
},
|
||||
deletePic(event) {
|
||||
@@ -469,6 +470,7 @@
|
||||
});
|
||||
},
|
||||
onSubmit() {
|
||||
// debounce(async () => {
|
||||
this.$refs.form.validate().then(res => {
|
||||
if (this.fileList1.length > 0) {
|
||||
let _list = this.fileList1
|
||||
@@ -492,7 +494,6 @@
|
||||
"content": this.form.content,
|
||||
"img": this.form.img
|
||||
}
|
||||
|
||||
console.log('data',data);
|
||||
$http.request({
|
||||
url: _url,
|
||||
@@ -509,8 +510,8 @@
|
||||
})
|
||||
this.FileList = []
|
||||
this.FileList11 = []
|
||||
this.closePup()
|
||||
setTimeout(()=>{
|
||||
this.closePup()
|
||||
this.pPage = 0
|
||||
this.zuoyeList = []
|
||||
this.getTaskInfo()
|
||||
@@ -529,6 +530,7 @@
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
// },300)
|
||||
},
|
||||
addPic(e) {
|
||||
let that = this;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:'+(showEditBlank?'hidden':'visible')"></page-meta>
|
||||
<view>
|
||||
<public-module></public-module>
|
||||
<z-nav-bar :title="pageType+'详情'"></z-nav-bar>
|
||||
@@ -86,10 +87,11 @@
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998" overlay-style="z-index:998">
|
||||
<u-popup key="1" :show="showEditBlank" @touchmove.stop="" :round="10" @close="closePup" ref="" z-index="998" overlay-style="z-index:998">
|
||||
<view class="" style="padding: 40rpx; max-height: 80vh; overflow-y:scroll">
|
||||
<view class="anserBox">
|
||||
<h3>提交的内容</h3>
|
||||
<scroll-view scroll-top="" scroll-y="true" class="scroll-Y" style="max-height: 500rpx; margin: 20rpx 0;">
|
||||
<view class="" style="border-bottom: 1px solid #eee; padding-bottom: 20rpx; margin-bottom: 20rpx;">
|
||||
<view class="anserContent" v-html="curReplay.content">
|
||||
|
||||
@@ -112,6 +114,7 @@
|
||||
<!-- <view class="score" v-show="curReplay.scoreSuccess != 0">
|
||||
分数:{{curReplay.score}}
|
||||
</view> -->
|
||||
</scroll-view>
|
||||
<view class="score noscore" v-show="curReplay.scoreSuccess == 0">
|
||||
未开始评分
|
||||
</view>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<page-meta :page-style="'overflow:'+(showEditBlank?'hidden':'visible')"></page-meta>
|
||||
<view style="min-height: calc(100vh - 120rpx); background-color: #ebf2f5;">
|
||||
<z-nav-bar :title="pageName"></z-nav-bar>
|
||||
<view class="pad20">
|
||||
@@ -10,7 +11,7 @@
|
||||
<view class="leve1 flex_box">
|
||||
<text>{{item.title}}</text>
|
||||
</view>
|
||||
<view class="leve2" v-html="item.content">
|
||||
<view class="leve2 jianjie" v-html="item.content">
|
||||
<!-- {{item.content}} -->
|
||||
</view>
|
||||
<view class="leve3">
|
||||
@@ -30,11 +31,13 @@
|
||||
<u-divider v-show="status == 3" text="暂无数据"></u-divider>
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider>
|
||||
</view>
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998"
|
||||
|
||||
<u-popup key="1" :show="showEditBlank" :round="10" @close="closePup" ref="" z-index="998" @touchmove.stop=""
|
||||
overlay-style="z-index:998" >
|
||||
<view class="" style="padding: 40rpx; max-height: 80vh; overflow-y:scroll">
|
||||
<view class="anserBox">
|
||||
<h3>心得详情</h3>
|
||||
<h3 style="">心得详情</h3>
|
||||
<scroll-view scroll-top="" scroll-y="true" class="scroll-Y" style="max-height: 500rpx; margin: 20rpx 0;">
|
||||
<view class="" style="border-bottom: 1px solid #eee; padding-bottom: 20rpx; margin-bottom: 20rpx;">
|
||||
<view class="anserContent" v-html="curReplay.content">
|
||||
|
||||
@@ -54,6 +57,7 @@
|
||||
学员信息:{{curReplay.createUser.nickname != null && curReplay.createUser.nickname != '' ? curReplay.createUser.nickname : '匿名用户'}}
|
||||
/ {{curReplay.createUser.tel}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="score" v-show="curReplay.scoreSuccess >= 1">
|
||||
分数:{{curReplay.score}}
|
||||
</view>
|
||||
@@ -77,6 +81,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<z-navigation></z-navigation>
|
||||
</view>
|
||||
</template>
|
||||
@@ -150,6 +155,9 @@
|
||||
// onBackPress() {
|
||||
// },
|
||||
methods: {
|
||||
moveHandle() {
|
||||
return false;
|
||||
},
|
||||
setScore(val) {
|
||||
// if(this.form.score == val) return
|
||||
this.form.score = val
|
||||
@@ -220,6 +228,7 @@
|
||||
});
|
||||
},
|
||||
closePup() {
|
||||
// this.canScroll()
|
||||
this.showEditBlank = false
|
||||
this.form = {
|
||||
score: undefined,
|
||||
@@ -235,6 +244,7 @@
|
||||
// },1000)
|
||||
},
|
||||
clickTask(item) {
|
||||
// this.noScroll()
|
||||
// console.log('item',item);
|
||||
this.curReplay = item
|
||||
this.form = {
|
||||
@@ -463,7 +473,7 @@
|
||||
justify-content: space-between;
|
||||
color: #666;
|
||||
font-size: 28rpx;
|
||||
line-height: 50rpx;
|
||||
line-height: 50rpx; height: 100rpx; overflow: hidden;
|
||||
@include bov(3);
|
||||
|
||||
.item {
|
||||
|
||||
Reference in New Issue
Block a user