多租户商城-商户小程序端
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

import api from '../../config/api'
import {funMixin} from '../../config/mixin'
export const commonMixin = {
name: 'headerComponent',
mixins: [funMixin],
props: {
terminal: {
type: Number,
default: 4
},
typeId: {
type: Number,
default: 1
},
shopId: {
type: Number,
default: 0
},
componentContent: {
type: Object
}
},
data () {
return {
classifyData: []
}
},
mounted() {
this.getData()
},
methods: {
getData() {
const _ = this
_.sendReq({
url: `${api.getClassify}?page=1&pageSize=20`,
method: 'GET'
}, (res) => {
_.classifyData = res.data
console.log(_.classifyData)
},(err)=>{
})
}
}
}