多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
770 B

2 years ago
  1. import api from '../../config/api'
  2. import {funMixin} from '../../config/mixin'
  3. export const commonMixin = {
  4. name: 'headerComponent',
  5. mixins: [funMixin],
  6. props: {
  7. terminal: {
  8. type: Number,
  9. default: 4
  10. },
  11. typeId: {
  12. type: Number,
  13. default: 1
  14. },
  15. shopId: {
  16. type: Number,
  17. default: 0
  18. },
  19. componentContent: {
  20. type: Object
  21. }
  22. },
  23. data () {
  24. return {
  25. classifyData: []
  26. }
  27. },
  28. mounted() {
  29. this.getData()
  30. },
  31. methods: {
  32. getData() {
  33. const _ = this
  34. _.sendReq({
  35. url: `${api.getClassify}?page=1&pageSize=20`,
  36. method: 'GET'
  37. }, (res) => {
  38. _.classifyData = res.data
  39. console.log(_.classifyData)
  40. },(err)=>{
  41. })
  42. }
  43. }
  44. }