Commit a2af4889 by 陈玉桐

fix

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