Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pegasus-1998 committed Dec 23, 2021
1 parent 3107b83 commit a8acbd3
Show file tree
Hide file tree
Showing 8 changed files with 448 additions and 14 deletions.
219 changes: 219 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vue-photo-preview": "^1.1.3",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.2.0",
"vue-video-player": "^5.0.2",
"vue2-countdown": "^1.0.8",
"vue2-transitions": "^0.3.0",
"vue2.0-zoom": "^2.1.1",
Expand Down
21 changes: 20 additions & 1 deletion src/apis/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,27 @@ function getGuessLikeApi() {
)
}

// 获取笑话接口
function getXhApi() {
return getRequest('/message/xh')
.then(
res => res,
err => console.log('网络请求出错了')
)
}

// 获取视频接口
function getVideoApi() {
return postRequest('/message/video')
.then(
res => res,
err => console.log('网络请求出错了')
)
}
export {
getHomeMockApi,
getGoodShopApi,
getGuessLikeApi
getGuessLikeApi,
getXhApi,
getVideoApi
}
Loading

0 comments on commit a8acbd3

Please sign in to comment.