Commit 3838517b by 陈玉桐

fix

parent 4783fdc2
...@@ -357,19 +357,25 @@ export default { ...@@ -357,19 +357,25 @@ export default {
this.$router.push({name: 'index'}) this.$router.push({name: 'index'})
}, },
selectPic() { selectPic() {
let me = this if(this.status==2){
if(me.enrollStatus==1){//已报名 this.tipDialogText = '活动已结束'
wx.chooseImage({ this.tipDialogShow = true
count: 1, // 默认9 return
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
me.uploadPic = res.localIds[0] // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
}
})
}else{
this.applyDialogShow = true
} }
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属性显示图片
}
})
}, },
inputBlur(){ inputBlur(){
var u = navigator.userAgent, app = navigator.appVersion 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