EP-WachatApp/eaterplanet_ecommerce/mixin/commonMixin.js

20 lines
322 B
JavaScript

module.exports = {
data: {
visible: false,
stopClick: false
},
authModal: function () {
if (this.data.needAuth) {
this.setData({
showAuthModal: !this.data.showAuthModal
});
return false;
}
return true;
},
vipModal: function(t) {
this.setData(t.detail)
},
}