I customized a component, adding hidden= "{{modalHidden}}" to .wxml and
to the corresponding js.Component({
properties: {
modalHidden: {//modalHidden.modal-hidden
type: Boolean,
value: true
},
},
data: {
text: "text",
},
methods: {
//
startAnswerButton() {
wx.navigateTo({
url: "XXX"
});
},
//
closeReward() {
this.setData({
modalHidden: true,
})
}
}
});
then add
< modal modal-hidden= "{{is_modal_hidden}}"modal-msg=" {{is_modal_Msg}} "/ >
to the called .wxml, but both true and false display