index.js 580 B

1234567891011121314151617181920212223242526272829
  1. import {
  2. getWxQrcode
  3. } from '~/api/user'
  4. Component({
  5. data: {
  6. show: false,
  7. qrCode:''
  8. },
  9. methods: {
  10. async open() {
  11. let res = await getWxQrcode()
  12. console.log(res);
  13. this.getTabBar().setData({
  14. mask: true
  15. })
  16. this.setData({
  17. show: true
  18. })
  19. },
  20. closeModal() {
  21. this.setData({
  22. show: false
  23. })
  24. this.getTabBar().setData({
  25. mask: false
  26. })
  27. },
  28. }
  29. })