mixins-model.js 675 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import {
  2. mapGetters
  3. } from "vuex"
  4. let App = getApp()
  5. export default {
  6. components: {},
  7. data() {
  8. return {
  9. appData: null
  10. }
  11. },
  12. props: {
  13. value: {
  14. // type: [String, Number, Object, Array],
  15. default: null
  16. },
  17. scrollTop: {
  18. type: [String, Number],
  19. default: 0
  20. }
  21. },
  22. computed: {
  23. ...mapGetters(["userComplete", "isLogin", "token", "userInfo", "userOrgid", "wxInfo", "financeMInfo",
  24. "financeYInfo", "userTotal"
  25. ])
  26. },
  27. watch: {
  28. },
  29. created() {
  30. this.appData = App.globalData ? App.globalData : getApp().globalData;
  31. },
  32. methods: {
  33. loadData(type) {
  34. // type="rush" 刷新
  35. },
  36. openShare() {
  37. // 开启分享
  38. uni.showShareMenu();
  39. }
  40. }
  41. }