提交 9e36a678 authored 作者: matian's avatar matian

修改获取已购买课程接口

上级 4147e9aa
......@@ -30,7 +30,7 @@ export function uploadFile(data: object) {
// 获取已经购买的课程
export function getBuyShop() {
return httpRequest.get('https://learn-api.ezijing.com/api/lms-ep/v2/education/courses/my', {
return httpRequest.get('https://learn-api.ezijing.com/api/lms-ep/v2/education/my-course-basic-info', {
headers: { tenant: 'prp' }
})
}
......@@ -59,11 +59,10 @@ export function postNes(data: any) {
})
}
/**
* 获取用户OpenId
* */
export function getOpenId(data?: any) {
export function getOpenId(data?: any) {
return httpRequest.post('https://shop-show-pc.ezijing.com/api/usercenter/v1/wechat/get-openid', data, {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
})
......
......@@ -44,7 +44,6 @@ courseItem.value = shopStore.shopList.filter(
>
<CourseIntrouduce :shopItem="shopStore.shopItem" />
<CourseFor :shopItem="shopStore.shopItem" />
<CourseCatalogPC v-if="shopStore.shopItem?.type === '课程包'" :shopItem="shopStore.shopItem" />
</div>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论