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.

24 lines
659 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
// 此处第二个参数vm就是我们在页面使用的this你可以通过vm获取vuex等操作
const install = (Vue, vm) => {
let index_getImages = (params = {}) => vm.$u.post('/api/v1/activity/list/query', params)
let index_getActivitys = (params = {}) => vm.$u.post('/api/v1/goods/list/promotion', params)
let index_getGoodsList = (params = {}) => vm.$u.post('/api/v1/goods/list/promotion/goods', params)
// 将各个定义的接口名称统一放进对象挂载到vm.$u.api(因为vm就是this也即this.$u.api)下
vm.$u.api = {
index_getImages,
index_getActivitys,
index_getGoodsList,
};
}
export default {
install
}
*/