Commit 53e21518 by 陈玉桐

add

parent 378db0a2
......@@ -72,6 +72,12 @@
</div>
</div>
</div>
<div class="tipDialog" v-show="tipDialogShow">
<div class="tipDialogCon">
<p>{{tipDialogText}}</p>
<span @click="tipDialogShow=false">知道了</span>
</div>
</div>
<div class="createDialog" v-show="createDialogShow">
<div class="createDialogCon">
<p>如何打卡:</p>
......@@ -121,6 +127,9 @@ export default {
nonceStr: '', // 必填,生成签名的随机串
signature: '',// 必填,签名
tipDialogShow: false,
tipDialogText: ''
}
},
components: {
......@@ -171,6 +180,16 @@ export default {
},
methods: {
create() {
if(!this.uploadPic){
this.tipDialogShow = true
this.tipDialogText = '您还未上传照片'
return
}
if(!this.currentDay){
this.tipDialogShow = true
this.tipDialogText = '您还未输入打卡天数'
return
}
if(this.enrollStatus==1){//已报名
html2canvas(document.getElementById('posterOut'), {
useCORS: true,
......@@ -183,6 +202,7 @@ export default {
}else{
this.applyDialogShow = true
}
},
upload() {
if(this.enrollStatus==1){//已报名
......@@ -418,7 +438,7 @@ export default {
display: flex;
p{
width: 30px;
line-height: 34px;
line-height: 32px;
word-wrap: break-word;/*英文的时候需要加上这句,自动换行*/
margin-right: 10px;
text-align: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment