-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
22,616 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
node_modules | ||
*.log* | ||
.nuxt | ||
.nitro | ||
.cache | ||
.output | ||
.env | ||
dist | ||
.DS_Store | ||
.yarn/ | ||
./nuxt | ||
./vscode | ||
|
||
.github*/ | ||
.vscode | ||
/.pnp | ||
.pnp* | ||
yarn* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# nuxtgenerate2 | ||
# blueblocks-lightbicycle | ||
Nuxt新官网 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//导出搜索接口方法获取搜索结果 | ||
export function useSearchListApi(query) { | ||
return useHttpGet( | ||
"searchList", | ||
() => { | ||
let q = useQueryToString(query()); | ||
return `/search${q}`; | ||
}, | ||
{ | ||
lazy: true, | ||
} | ||
); | ||
} | ||
|
||
//获取可用优惠券列表 /coupon/list | ||
export function useCouponListApi() { | ||
return useHttpGet("CouponList", "/coupon/list "); | ||
} | ||
|
||
//通用列表接口 | ||
export function useListApi(type, query={}) { | ||
let q = useQueryToString(query); | ||
return useHttpGet(type + "List", `/${type}/list${q}`, { | ||
lazy: true, | ||
}); | ||
} | ||
|
||
//查看课程、专栏详情接口 | ||
export function useReadDetailApi(type,query = {}) { | ||
let q = useQueryToString(query); | ||
return useHttpGet("readDetail", `/${type}/read${q}`, { | ||
lazy: true, | ||
}); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default defineAppConfig({ | ||
siteName: 'Light Bicycle', | ||
siteUrl: 'https://www.lightbicycle.com' | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// 点击分页返回顶部 | ||
export default { | ||
scrollBehavior(to, from, savedPosition) { | ||
//在按下前进/后退按钮,就会触发这个方法实现前进后退功能 | ||
if (savedPosition) { | ||
return savedPosition; | ||
} else { | ||
return { top: 0 }; | ||
} | ||
}, | ||
}; |
Oops, something went wrong.