Commit 53e21518 by 陈玉桐

add

parent 378db0a2
...@@ -72,6 +72,12 @@ ...@@ -72,6 +72,12 @@
</div> </div>
</div> </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="createDialog" v-show="createDialogShow">
<div class="createDialogCon"> <div class="createDialogCon">
<p>如何打卡:</p> <p>如何打卡:</p>
...@@ -121,6 +127,9 @@ export default { ...@@ -121,6 +127,9 @@ export default {
nonceStr: '', // 必填,生成签名的随机串 nonceStr: '', // 必填,生成签名的随机串
signature: '',// 必填,签名 signature: '',// 必填,签名
tipDialogShow: false,
tipDialogText: ''
} }
}, },
components: { components: {
...@@ -171,6 +180,16 @@ export default { ...@@ -171,6 +180,16 @@ export default {
}, },
methods: { methods: {
create() { create() {
if(!this.uploadPic){
this.tipDialogShow = true
this.tipDialogText = '您还未上传照片'
return
}
if(!this.currentDay){
this.tipDialogShow = true
this.tipDialogText = '您还未输入打卡天数'
return
}
if(this.enrollStatus==1){//已报名 if(this.enrollStatus==1){//已报名
html2canvas(document.getElementById('posterOut'), { html2canvas(document.getElementById('posterOut'), {
useCORS: true, useCORS: true,
...@@ -183,6 +202,7 @@ export default { ...@@ -183,6 +202,7 @@ export default {
}else{ }else{
this.applyDialogShow = true this.applyDialogShow = true
} }
}, },
upload() { upload() {
if(this.enrollStatus==1){//已报名 if(this.enrollStatus==1){//已报名
...@@ -418,7 +438,7 @@ export default { ...@@ -418,7 +438,7 @@ export default {
display: flex; display: flex;
p{ p{
width: 30px; width: 30px;
line-height: 34px; line-height: 32px;
word-wrap: break-word;/*英文的时候需要加上这句,自动换行*/ word-wrap: break-word;/*英文的时候需要加上这句,自动换行*/
margin-right: 10px; margin-right: 10px;
text-align: center; 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