diff --git a/App.vue b/App.vue
index 13f0d56..4e97681 100644
--- a/App.vue
+++ b/App.vue
@@ -36,7 +36,7 @@ onLaunch(() => {
/*每个页面公共css */
.main {
min-height: 95vh;
- background: linear-gradient(to top, #f2f8ff 0%, #e7f0fd 100%);
+ background: #f5f7fd;
padding-top: 20rpx;
}
diff --git a/components/Card/Card.vue b/components/Card/Card.vue
new file mode 100644
index 0000000..5745185
--- /dev/null
+++ b/components/Card/Card.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/Loadmore/Loadmore.vue b/components/LoadMore/LoadMore.vue
similarity index 80%
rename from components/Loadmore/Loadmore.vue
rename to components/LoadMore/LoadMore.vue
index 8906a01..31e72d7 100644
--- a/components/Loadmore/Loadmore.vue
+++ b/components/LoadMore/LoadMore.vue
@@ -22,5 +22,7 @@ onReachBottom(() => {
-
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/components/index.js b/components/index.js
new file mode 100644
index 0000000..912f836
--- /dev/null
+++ b/components/index.js
@@ -0,0 +1,9 @@
+import LoadMore from './LoadMore/LoadMore.vue'
+import Card from './Card/Card.vue'
+
+export default {
+ install(Vue) {
+ Vue.component("LoadMore", LoadMore),
+ Vue.component("Card", Card)
+ }
+}
\ No newline at end of file
diff --git a/main.js b/main.js
index 5d2aeee..9a538a8 100644
--- a/main.js
+++ b/main.js
@@ -1,11 +1,11 @@
import App from './App'
import { createSSRApp } from 'vue'
import pinia from './store'
-import Loadmore from "@/components/Loadmore/Loadmore.vue"
+import myComponents from "@/components"
export function createApp() {
const app = createSSRApp(App)
- app.component("Loadmore", Loadmore)
+ app.use(myComponents )
app.use(pinia)
return {
app