Commit 1740310d by Lin

feat(PreStudyPopup):将预研究弹窗数据获取的模拟API响应替换为实际的API调用

1 parent bde2b102
...@@ -67,24 +67,7 @@ export default { ...@@ -67,24 +67,7 @@ export default {
if (item.learnStatus !== 'NOT_STUDY') return if (item.learnStatus !== 'NOT_STUDY') return
try { try {
// const res = await uni.$api.commonApi.getPrelernHomePopupAPI() const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
const res = {
"activityId": 31,
"activityName": "618年中促活动A",
"packages": [
{
"activityProductId": "16",
"packageName": "tttttttt",
"includes": ['原厂定制车衣','玻璃贴膜'],
"learnStatus": "NOT_STUDY",
"scriptReady": true
}
],
"remainingSkipCount": 0,
"shouldPopup": true,
"muteReason": null,
"remainingActivityCount": null
}
console.log('getPrelernHomePopupAPI res***', res) console.log('getPrelernHomePopupAPI res***', res)
if (!res) return if (!res) return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!