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