You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
936 B
44 lines
936 B
const app = getApp()
|
|
|
|
Component({
|
|
data: {
|
|
userState: "",
|
|
completeInfoDialogVisible: false
|
|
},
|
|
properties: {
|
|
commandAssociationList: {
|
|
type: Array,
|
|
value: []
|
|
},
|
|
noDataVisible: {
|
|
type: Boolean,
|
|
value: true
|
|
}
|
|
},
|
|
lifetimes: {
|
|
attached () {
|
|
this.setData({
|
|
userState: app.globalData.infoCompleted
|
|
})
|
|
}
|
|
},
|
|
methods: {
|
|
joinAssocition (e) {
|
|
if (this.data.userState == 0 || this.data.userState == 4) {
|
|
this.setData({
|
|
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
|
|
})
|
|
} else {
|
|
wx.navigateTo({
|
|
url: `/subpages/association/pages/joinassociation/joinassociation?type=join&id=${e.currentTarget.dataset.id}`
|
|
})
|
|
}
|
|
},
|
|
previewImage (e) {
|
|
app.globalData.previewImage = true
|
|
wx.previewImage({
|
|
urls: [e.currentTarget.dataset.src]
|
|
})
|
|
}
|
|
}
|
|
})
|