Commit a2af4889 by 陈玉桐

fix

parent eb598ec9
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
currentDay: '', currentDay: '',
enrollStatus: '', enrollStatus: '',
uploadPic: '',// 上传的头像地址 uploadPic: '',// 上传的头像地址
status: '',
activityId: '', activityId: '',
...@@ -191,10 +192,21 @@ export default { ...@@ -191,10 +192,21 @@ export default {
this.backgroundColor = response.data.backgroundColor this.backgroundColor = response.data.backgroundColor
this.days = response.data.days this.days = response.data.days
this.enrollStatus = response.data.enrollStatus this.enrollStatus = response.data.enrollStatus
this.status = response.data.status
}) })
}, },
methods: { methods: {
create() { create() {
if(this.status==2){
me.tipDialogText = '活动已结束'
me.tipDialogShow = true
return
}
if(this.status==3){
me.tipDialogText = '活动暂未开始'
me.tipDialogShow = true
return
}
if(!this.uploadPic){ if(!this.uploadPic){
this.tipDialogText = '您还未上传照片' this.tipDialogText = '您还未上传照片'
this.tipDialogShow = true this.tipDialogShow = true
...@@ -221,6 +233,16 @@ export default { ...@@ -221,6 +233,16 @@ export default {
}, },
upload() { upload() {
if(this.enrollStatus==1){//已报名 if(this.enrollStatus==1){//已报名
if(this.status==2){
me.tipDialogText = '活动已结束'
me.tipDialogShow = true
return
}
if(this.status==3){
me.tipDialogText = '活动暂未开始'
me.tipDialogShow = true
return
}
let me = this let me = this
wx.chooseImage({ wx.chooseImage({
count: 1, // 默认9 count: 1, // 默认9
......
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