|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<div class="main-content">
|
|
<div class="main-content">
|
|
<div class="img-box">
|
|
<div class="img-box">
|
|
- <img src="../../../assets/logo/logo2.png" alt="广东省教师继续教育学会">
|
|
|
|
|
|
+ <img src="../../../assets/logo/logo2.png" alt="广东省教师继续教育学会" >
|
|
</div>
|
|
</div>
|
|
<div style="text-align: center;line-height: 50px;">
|
|
<div style="text-align: center;line-height: 50px;">
|
|
<span class="main-title" style="margin: 0 10px;font-weight: bold;">会员、理事证书、聘书查询</span>
|
|
<span class="main-title" style="margin: 0 10px;font-weight: bold;">会员、理事证书、聘书查询</span>
|
|
@@ -10,8 +10,8 @@
|
|
<div>
|
|
<div>
|
|
<div class="label-box">
|
|
<div class="label-box">
|
|
<div class="label-title">
|
|
<div class="label-title">
|
|
- <p>持证人姓名</p>
|
|
|
|
- <p>(或持证单位全称)</p>
|
|
|
|
|
|
+ <p class="label-title-p">持证人姓名</p>
|
|
|
|
+ <p class="label-title-p">(或持证单位全称)</p>
|
|
</div>
|
|
</div>
|
|
<input v-model="userName" type="text" class="label-input">
|
|
<input v-model="userName" type="text" class="label-input">
|
|
</div>
|
|
</div>
|
|
@@ -36,9 +36,13 @@
|
|
查询<i v-show="iconShow" class="el-icon-loading" />
|
|
查询<i v-show="iconShow" class="el-icon-loading" />
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="btn-box back" style="margin: 5px 10px;align-items: center;font-size: 14px;" @click="toIndex">
|
|
|
|
+ 返回首页<i class="el-icon-arrow-right"></i>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="position:fixed;top:-1200px;left:-1800px">
|
|
<div style="position:fixed;top:-1200px;left:-1800px">
|
|
|
|
+ <!-- -->
|
|
<div id="pdfDomm" ref="posterWrap">
|
|
<div id="pdfDomm" ref="posterWrap">
|
|
<!-- <div class="proBox" >
|
|
<!-- <div class="proBox" >
|
|
<img class="proBox-img" :src="data.url" >
|
|
<img class="proBox-img" :src="data.url" >
|
|
@@ -52,7 +56,13 @@
|
|
</div> -->
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <my-dialog
|
|
|
|
+ :imgShow="imgShow"
|
|
|
|
+ :certNumber="certNumber"
|
|
|
|
+ :imgUrl="imgUrl"
|
|
|
|
+ @mydialogshow="mydialogshow"
|
|
|
|
+ :htmlTitle = "htmlTitle"
|
|
|
|
+ ></my-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
:title="`您以证书编号:${certNumber}为关键字查询验证证书结果如下:`"
|
|
:title="`您以证书编号:${certNumber}为关键字查询验证证书结果如下:`"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
@@ -61,7 +71,7 @@
|
|
class="dialog-box"
|
|
class="dialog-box"
|
|
>
|
|
>
|
|
<p>经证书系统验证查询,证书信息正确,该证书预览如下,如需下载使用,请点击“下载”按钮。</p>
|
|
<p>经证书系统验证查询,证书信息正确,该证书预览如下,如需下载使用,请点击“下载”按钮。</p>
|
|
- <img ref="certimg" :src="imgUrl" width="750px" height="525px">
|
|
|
|
|
|
+ <img ref="certimg" :src="imgUrl" >
|
|
<p style="font-weight:bold;color: red;font-size: 20px;text-indent: 0;">提示:伪造证书系违法行为,请勿尝试。</p>
|
|
<p style="font-weight:bold;color: red;font-size: 20px;text-indent: 0;">提示:伪造证书系违法行为,请勿尝试。</p>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
<el-button @click="handleClose">取 消</el-button>
|
|
@@ -90,6 +100,7 @@
|
|
import { getCodeImg, checkCode } from '@/api/login'
|
|
import { getCodeImg, checkCode } from '@/api/login'
|
|
import { getCert } from '@/api/system/contract'
|
|
import { getCert } from '@/api/system/contract'
|
|
import html2Canvas from 'html2canvas'
|
|
import html2Canvas from 'html2canvas'
|
|
|
|
+import MyDialog from "../../../components/MyDialog";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -129,11 +140,20 @@ export default {
|
|
},
|
|
},
|
|
imgUrl: '',
|
|
imgUrl: '',
|
|
errorDialog: false,
|
|
errorDialog: false,
|
|
- word: ''
|
|
|
|
|
|
+ word: '',
|
|
|
|
+ screenWidth:window.screen.availWidth,
|
|
|
|
+ imgShow:0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ components:{
|
|
|
|
+ MyDialog
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.getCode()
|
|
this.getCode()
|
|
|
|
+ window.addEventListener('resize', this.debounce(this.getWindowInfo, 500))
|
|
|
|
+ },
|
|
|
|
+ destroyed(){
|
|
|
|
+ window.removeEventListener('resize', this.debounce(this.getWindowInfo, 500))
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getCode() {
|
|
getCode() {
|
|
@@ -188,13 +208,23 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
// 将html代码=>canvas=>img
|
|
// 将html代码=>canvas=>img
|
|
this.toImg()
|
|
this.toImg()
|
|
- this.dialogVisible = true
|
|
|
|
|
|
+ console.log(this.screenWidth)
|
|
|
|
+ if(this.screenWidth>800){
|
|
|
|
+ this.dialogVisible = true
|
|
|
|
+ }else{
|
|
|
|
+ this.imgShow = 1
|
|
|
|
+ }
|
|
|
|
+
|
|
// 然后删除掉用完的html代码
|
|
// 然后删除掉用完的html代码
|
|
const e = document.getElementById('pdfDomm')
|
|
const e = document.getElementById('pdfDomm')
|
|
e.innerHTML = ''
|
|
e.innerHTML = ''
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.errorDialog = true
|
|
|
|
|
|
+ if(this.screenWidth>800){
|
|
|
|
+ this.errorDialog = true
|
|
|
|
+ }else{
|
|
|
|
+ this.imgShow = 2
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -223,11 +253,17 @@ export default {
|
|
this.iconShow = false
|
|
this.iconShow = false
|
|
this.getCode()
|
|
this.getCode()
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
|
+ this.userName= ''
|
|
|
|
+ this.certNumber=''
|
|
|
|
+ this.code= ''
|
|
},
|
|
},
|
|
handleErrorClose() {
|
|
handleErrorClose() {
|
|
this.iconShow = false
|
|
this.iconShow = false
|
|
this.getCode()
|
|
this.getCode()
|
|
this.errorDialog = false
|
|
this.errorDialog = false
|
|
|
|
+ this.userName= ''
|
|
|
|
+ this.certNumber=''
|
|
|
|
+ this.code= ''
|
|
},
|
|
},
|
|
realUrl(val) {
|
|
realUrl(val) {
|
|
return process.env.VUE_APP_BASE_API + val
|
|
return process.env.VUE_APP_BASE_API + val
|
|
@@ -262,7 +298,7 @@ export default {
|
|
const e = document.getElementById('pdfDomm')
|
|
const e = document.getElementById('pdfDomm')
|
|
this.word = `<div class="proBox" >
|
|
this.word = `<div class="proBox" >
|
|
<img class="proBox-img" src="${window.location.origin}${this.data.url}" >
|
|
<img class="proBox-img" src="${window.location.origin}${this.data.url}" >
|
|
- <div class="con" style="bottom:0;top:165px">
|
|
|
|
|
|
+ <div class="con" style="bottom:0;top:155px">
|
|
<p style="margin:0">
|
|
<p style="margin:0">
|
|
<span class="con-name heiti">${this.data.name}</span>
|
|
<span class="con-name heiti">${this.data.name}</span>
|
|
<span>${this.data.certContent}</span>
|
|
<span>${this.data.certContent}</span>
|
|
@@ -274,13 +310,46 @@ export default {
|
|
<span class="foot-date">${this.data.issueDate}</span>
|
|
<span class="foot-date">${this.data.issueDate}</span>
|
|
</div>`
|
|
</div>`
|
|
e.innerHTML = this.word
|
|
e.innerHTML = this.word
|
|
|
|
+ },
|
|
|
|
+ toIndex(){
|
|
|
|
+ this.$router.push('/certInquire')
|
|
|
|
+ },
|
|
|
|
+ getWindowInfo(){
|
|
|
|
+ const windowInfo = {
|
|
|
|
+ width: window.innerWidth
|
|
|
|
+ }
|
|
|
|
+ this.screenWidth = windowInfo.width
|
|
|
|
+ console.log(this.screenWidth)
|
|
|
|
+ },
|
|
|
|
+ debounce(fn, delay){
|
|
|
|
+ let timer;
|
|
|
|
+ return function() {
|
|
|
|
+ if (timer) {
|
|
|
|
+ clearTimeout(timer);
|
|
|
|
+ }
|
|
|
|
+ timer = setTimeout(() => {
|
|
|
|
+ fn();
|
|
|
|
+ }, delay);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ mydialogshow(val){
|
|
|
|
+ this.imgShow = val,
|
|
|
|
+ this.iconShow = false
|
|
|
|
+ this.getCode()
|
|
|
|
+ this.userName= ''
|
|
|
|
+ this.certNumber=''
|
|
|
|
+ this.code= ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
|
|
+<style lang="scss" >
|
|
.dialog-box{
|
|
.dialog-box{
|
|
|
|
+ img{
|
|
|
|
+ width:750px;
|
|
|
|
+ height:525px
|
|
|
|
+ }
|
|
p{
|
|
p{
|
|
width: 725px;
|
|
width: 725px;
|
|
margin: auto;
|
|
margin: auto;
|
|
@@ -298,4 +367,287 @@ export default {
|
|
text-indent: 2em;
|
|
text-indent: 2em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.height100{
|
|
|
|
+ height: 100%;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ text-align: left;
|
|
|
|
+ height: 100%;
|
|
|
|
+ width: 100%;
|
|
|
|
+ // margin: 100px auto;
|
|
|
|
+ // width: 500px;
|
|
|
|
+ // position: absolute;
|
|
|
|
+ // left: 50%;
|
|
|
|
+ // top: 50%;
|
|
|
|
+ // transform: translate(-50%, -50%);
|
|
|
|
+}
|
|
|
|
+.main-content{
|
|
|
|
+ width: 500px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+}
|
|
|
|
+.img-box {
|
|
|
|
+ width: 360px;
|
|
|
|
+ height: 80px;
|
|
|
|
+// background-color: brown;
|
|
|
|
+ text-align: center;
|
|
|
|
+ img{
|
|
|
|
+ height: 100%;
|
|
|
|
+ transform: scale(1.5);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.main-title {
|
|
|
|
+ width: 360px;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+.label-box {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+}
|
|
|
|
+.label-title {
|
|
|
|
+ width: 150px;
|
|
|
|
+ line-height: 22px;
|
|
|
|
+ flex: 0 0 auto;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+.label-input {
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ width: 210px;
|
|
|
|
+ border: 1px solid #50ac55;
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ height: 45px;
|
|
|
|
+ line-height: 45px;
|
|
|
|
+}
|
|
|
|
+.label-must {
|
|
|
|
+ color: red;
|
|
|
|
+}
|
|
|
|
+.btn-box {
|
|
|
|
+ text-align: right;
|
|
|
|
+}
|
|
|
|
+.btn-box button {
|
|
|
|
+ width: 140px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ margin: 10px;
|
|
|
|
+}
|
|
|
|
+.btn-reset {
|
|
|
|
+ background-color: #f1f2f3;
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+.btn-search {
|
|
|
|
+ background-color: rgb(176,11,17);
|
|
|
|
+ color: white;
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+.captcha-img {
|
|
|
|
+ width: 120px;
|
|
|
|
+ // background: antiquewhite;
|
|
|
|
+ margin: auto;
|
|
|
|
+ height: 45px;
|
|
|
|
+}
|
|
|
|
+.login-code-img{
|
|
|
|
+ height:45px;
|
|
|
|
+}
|
|
|
|
+.activeSpan{
|
|
|
|
+ color: #50ac55;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.zs-title-img{
|
|
|
|
+ display: block;
|
|
|
|
+ margin: auto;
|
|
|
|
+ height: 75px;
|
|
|
|
+ transform: scale(1.7);
|
|
|
|
+}
|
|
|
|
+::v-deep .el-dialog__body {
|
|
|
|
+ padding: 0px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+}
|
|
|
|
+#pdfDomm {
|
|
|
|
+ /* 要想pdf周边留白,要在这里设置 */
|
|
|
|
+ /* padding: 20px; */
|
|
|
|
+ width: 750px;
|
|
|
|
+ margin: auto;
|
|
|
|
+}
|
|
|
|
+.proBox {
|
|
|
|
+ background-size: cover;
|
|
|
|
+ width: 750px;
|
|
|
|
+ height: 525px;
|
|
|
|
+ padding: 40px 60px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ position: relative;
|
|
|
|
+ color: #000;
|
|
|
|
+ font-family: 楷体;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.proBox-img{
|
|
|
|
+ width: 750px;
|
|
|
|
+ height: 525px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.tit {
|
|
|
|
+ color: #000;
|
|
|
|
+ font-size: 22px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -6px;
|
|
|
|
+ left: 8px;
|
|
|
|
+ letter-spacing: 2px;
|
|
|
|
+ font-family: STHeiti;
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+.proid {
|
|
|
|
+ text-align: right;
|
|
|
|
+ margin: 0;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ /* margin-right: 5px; */
|
|
|
|
+}
|
|
|
|
+.con {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ text-align: left;
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+ line-height: 32px;
|
|
|
|
+ text-indent: 2em;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 265px;
|
|
|
|
+ margin-top: 30px;
|
|
|
|
+ padding-right: 80px;
|
|
|
|
+ left: 88px;
|
|
|
|
+}
|
|
|
|
+.con-name {
|
|
|
|
+ margin-right: 10px;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+}
|
|
|
|
+.heiti{
|
|
|
|
+ font-family:黑体 ;
|
|
|
|
+}
|
|
|
|
+.con-unit {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 45px;
|
|
|
|
+ bottom: 100px;
|
|
|
|
+ z-index: 10;
|
|
|
|
+ text-align: center;
|
|
|
|
+}
|
|
|
|
+.con-unit p {
|
|
|
|
+ margin: 5px 0;
|
|
|
|
+}
|
|
|
|
+.con-footer {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0;
|
|
|
|
+ right: 45px;
|
|
|
|
+ bottom: 65px;
|
|
|
|
+ font-size: 10px;
|
|
|
|
+ z-index: 10;
|
|
|
|
+}
|
|
|
|
+.con-footer p{
|
|
|
|
+ margin: 0;
|
|
|
|
+}
|
|
|
|
+.chapter {
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 45px;
|
|
|
|
+ right: 40px;
|
|
|
|
+}
|
|
|
|
+.cert-msg{
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 50px;
|
|
|
|
+ left: 90px;
|
|
|
|
+}
|
|
|
|
+.foot-term{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 160px;
|
|
|
|
+ left: 200px;
|
|
|
|
+}
|
|
|
|
+.foot-cert{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 130px;
|
|
|
|
+ left: 200px;
|
|
|
|
+}
|
|
|
|
+.foot-date{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 104px;
|
|
|
|
+ left: 200px;
|
|
|
|
+}
|
|
|
|
+.z10{
|
|
|
|
+ z-index: 10;
|
|
|
|
+}
|
|
|
|
+.z01{
|
|
|
|
+ z-index: 1;
|
|
|
|
+}
|
|
|
|
+.foot-pp{
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 273px;
|
|
|
|
+ left: 161px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 42px;
|
|
|
|
+ p{
|
|
|
|
+ margin: 0;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.back{
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+}
|
|
|
|
+@media screen and (max-width: 600px) {
|
|
|
|
+ .main-content{
|
|
|
|
+ width: 100%;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ position: initial;
|
|
|
|
+ top: initial;
|
|
|
|
+ left: initial;
|
|
|
|
+ transform: initial;
|
|
|
|
+ -webkit-transform: initial;
|
|
|
|
+ .img-box{
|
|
|
|
+ width: 98%;
|
|
|
|
+ img{
|
|
|
|
+ height: 85%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .label-box{
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: flex-start;
|
|
|
|
+ .label-title{
|
|
|
|
+ text-align: left;
|
|
|
|
+ width: 100%;
|
|
|
|
+ .label-title-p{
|
|
|
|
+ display: inline-block;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .label-input{
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ .captcha-img{
|
|
|
|
+ margin:20px 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .btn-box{
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ }
|
|
|
|
+ .dialog-box{
|
|
|
|
+ width: 100%;
|
|
|
|
+ img{
|
|
|
|
+ width: 100%;
|
|
|
|
+ aspect-ratio: auto 750 / 525;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .back{
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|