新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
29
components/canvasShow/basics/vip/mixin.js
Normal file
29
components/canvasShow/basics/vip/mixin.js
Normal file
@ -0,0 +1,29 @@
|
||||
import api from '../../config/api'
|
||||
import { funMixin } from '../../config/mixin'
|
||||
import { ref, onMounted } from 'vue';
|
||||
|
||||
const vipMixin = () => {
|
||||
const { sendReq, jumpVip, jumpProductDetail } = funMixin()
|
||||
const productData = ref([])
|
||||
onMounted(() => {
|
||||
getData()
|
||||
})
|
||||
|
||||
function getData() {
|
||||
sendReq({
|
||||
url: `${api.getMemberProducts}?page=1&pageSize=20`,
|
||||
method: 'GET'
|
||||
}, (proRes) => {
|
||||
productData.value = proRes.data.list
|
||||
console.log(productData.value)
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
productData,
|
||||
jumpVip,
|
||||
jumpProductDetail
|
||||
}
|
||||
}
|
||||
|
||||
export default vipMixin
|
Reference in New Issue
Block a user