Commit 0c4b38e7 by 陈玉桐

fix

parent 3838517b
......@@ -264,27 +264,27 @@ export default {
},
methods: {
create() {
if(this.status==2){
this.tipDialogText = '活动已结束'
this.tipDialogShow = true
return
}
if(this.status==3){
this.tipDialogText = '活动暂未开始'
this.tipDialogShow = true
return
}
if(!this.uploadPic){
this.tipDialogText = '您还未上传照片'
this.tipDialogShow = true
return
}
if(!this.currentDay){
this.tipDialogText = '您还未输入打卡天数'
this.tipDialogShow = true
return
}
if(this.enrollStatus==1){//已报名
if(this.status==2){
this.tipDialogText = '活动已结束'
this.tipDialogShow = true
return
}
if(this.status==3){
this.tipDialogText = '活动暂未开始'
this.tipDialogShow = true
return
}
if(!this.uploadPic){
this.tipDialogText = '您还未上传照片'
this.tipDialogShow = true
return
}
if(!this.currentDay){
this.tipDialogText = '您还未输入打卡天数'
this.tipDialogShow = true
return
}
html2canvas(document.getElementById('posterOut'), {
useCORS: true,
backgroundColor:null,
......@@ -357,25 +357,29 @@ export default {
this.$router.push({name: 'index'})
},
selectPic() {
if(this.status==2){
this.tipDialogText = '活动已结束'
this.tipDialogShow = true
return
}
if(this.status==3){
this.tipDialogText = '活动暂未开始'
this.tipDialogShow = true
return
}
let me = this
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
me.uploadPic = res.localIds[0] // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
if(this.enrollStatus==1){//已报名
if(this.status==2){
this.tipDialogText = '活动已结束'
this.tipDialogShow = true
return
}
})
if(this.status==3){
this.tipDialogText = '活动暂未开始'
this.tipDialogShow = true
return
}
let me = this
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
me.uploadPic = res.localIds[0] // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
}
})
}else{
this.applyDialogShow = true
}
},
inputBlur(){
var u = navigator.userAgent, app = navigator.appVersion
......
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