commonMixin.js 322 B

1234567891011121314151617181920
  1. module.exports = {
  2. data: {
  3. visible: false,
  4. stopClick: false
  5. },
  6. authModal: function () {
  7. if (this.data.needAuth) {
  8. this.setData({
  9. showAuthModal: !this.data.showAuthModal
  10. });
  11. return false;
  12. }
  13. return true;
  14. },
  15. vipModal: function(t) {
  16. this.setData(t.detail)
  17. },
  18. }