+
智莺生活
{{ this.$route.meta.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
USERNAME
+
会员ID:1231451565
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Notifications
+
+
+
+
+
+
+
+
+ {{ faker.news[0].short_content }}
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
Notifications
-
-
-
-
-
-
-
-
- {{ faker.news[0].short_content }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $f()[0].users[0].name }}
-
- {{ $f()[0].jobs[0] }}
-
-
-
-
-
+
+
+
+
@@ -224,3 +227,11 @@ export default {
}
};
+
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index 721bc30..128b7ce 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,12 +2,24 @@ import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
+
+import ElementUI from 'element-ui';
+import 'element-ui/lib/theme-chalk/index.css';
+Vue.use(ElementUI);
+
+
import "./components/global";
import "./utils";
import "./libs";
+
+
// Midone Theme
-import "./assets/sass/app.scss";
+import "./assets/sass/app2.scss";
+
+
+
+
Vue.config.productionTip = false;
diff --git a/src/modules/Crad.vue b/src/modules/Crad.vue
new file mode 100644
index 0000000..3b70884
--- /dev/null
+++ b/src/modules/Crad.vue
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+ 版本信息
+ 授信版本
+
+
+ APPKEY
+ 21524564545
+
+
+ 到期时间
+ 2021-01-10
+
+
+
+
查看详情
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 837954d..0e3c112 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,10 +6,16 @@ Vue.use(VueRouter);
const routes = [
{
path: '/',
+ name: 'login',
+ meta: { title: '用户登录' },
+ component: () => import('@/views/Login')
+ },
+ {
+ path: '/Dashboard',
component: () => import(/* webpackChunkName: 'main' */ '@/layouts/SideMenu'),
children: [
{
- path: '/',
+ path: '/Dashboard',
name: 'side-menu-dashboard',
meta: {title: '会员中心'},
component: () => import('@/views/Dashboard')
@@ -344,12 +350,6 @@ const routes = [
meta: {title: '管理中心'},
component: () => import('@/views/Inbox')
},
- {
- path: '/login',
- name: 'login',
- meta: {title: '管理中心'},
- component: () => import('@/views/Login')
- },
{
path: '/register',
name: 'register',
@@ -381,9 +381,10 @@ const router = new VueRouter({
}
}
});
+
router.beforeEach((to, from, next) => {
document.title = to.meta.title ? to.meta.title + ' - ZhiOS智莺' : 'ZhiOS智莺'
next()
-})
+ })
export default router;
diff --git a/src/utils/faker.js b/src/utils/faker.js
index 89a8db0..be045c0 100644
--- a/src/utils/faker.js
+++ b/src/utils/faker.js
@@ -49,14 +49,18 @@ export default {
fakePhotos() {
let photos = [];
for (let i = 0; i < 15; i++) {
- photos[photos.length] = "profile-" + _.random(1, 15) + ".jpg";
+ // photos[photos.length] = "profile-" + _.random(1, 15) + ".jpg";
+ photos[photos.length] = "profile-1.jpg";
+
}
return _.sampleSize(photos, 10);
},
fakeImages() {
let images = [];
for (let i = 0; i < 15; i++) {
- images[images.length] = "preview-" + _.random(1, 15) + ".jpg";
+ images[images.length] = "preview-1.jpg";
+
+ // images[images.length] = "preview-" + _.random(1, 15) + ".jpg";
}
return _.sampleSize(images, 10);
},
@@ -234,30 +238,30 @@ export default {
fakeFoods() {
let foods = [
{ name: "Vanilla Latte", image: "food-beverage-1.jpg" },
- { name: "Milkshake", image: "food-beverage-2.jpg" },
- { name: "Soft Drink", image: "food-beverage-3.jpg" },
- { name: "Root Beer", image: "food-beverage-4.jpg" },
- { name: "Pocari", image: "food-beverage-5.jpg" },
- { name: "Ultimate Burger", image: "food-beverage-6.jpg" },
- { name: "Hotdog", image: "food-beverage-7.jpg" },
- { name: "Avocado Burger", image: "food-beverage-8.jpg" },
+ { name: "Milkshake", image: "food-beverage-1.jpg" },
+ { name: "Soft Drink", image: "food-beverage-1.jpg" },
+ { name: "Root Beer", image: "food-beverage-1.jpg" },
+ { name: "Pocari", image: "food-beverage-1.jpg" },
+ { name: "Ultimate Burger", image: "food-beverage-1.jpg" },
+ { name: "Hotdog", image: "food-beverage-1.jpg" },
+ { name: "Avocado Burger", image: "food-beverage-1.jpg" },
{
name: "Spaghetti Fettucine Aglio with Beef Bacon",
- image: "food-beverage-9.jpg"
+ image: "food-beverage-1.jpg"
},
{
name: "Spaghetti Fettucine Aglio with Smoked Salmon",
- image: "food-beverage-10.jpg"
+ image: "food-beverage-1.jpg"
},
- { name: "Curry Penne and Cheese", image: "food-beverage-11.jpg" },
- { name: "French Fries", image: "food-beverage-12.jpg" },
- { name: "Virginia Cheese Fries", image: "food-beverage-13.jpg" },
- { name: "Virginia Cheese Wedges", image: "food-beverage-14.jpg" },
- { name: "Fried/Grilled Banana", image: "food-beverage-15.jpg" },
- { name: "Crispy Mushroom", image: "food-beverage-16.jpg" },
- { name: "Fried Calamari", image: "food-beverage-17.jpg" },
- { name: "Chicken Wings", image: "food-beverage-18.jpg" },
- { name: "Snack Platter", image: "food-beverage-19.jpg" }
+ { name: "Curry Penne and Cheese", image: "food-beverage-1.jpg" },
+ { name: "French Fries", image: "food-beverage-1.jpg" },
+ { name: "Virginia Cheese Fries", image: "food-beverage-1.jpg" },
+ { name: "Virginia Cheese Wedges", image: "food-beverage-1.jpg" },
+ { name: "Fried/Grilled Banana", image: "food-beverage-1.jpg" },
+ { name: "Crispy Mushroom", image: "food-beverage-1.jpg" },
+ { name: "Fried Calamari", image: "food-beverage-1.jpg" },
+ { name: "Chicken Wings", image: "food-beverage-1.jpg" },
+ { name: "Snack Platter", image: "food-beverage-1.jpg" }
];
return _.shuffle(foods);
}
diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue
index 727f6d8..cfd88d0 100644
--- a/src/views/Dashboard.vue
+++ b/src/views/Dashboard.vue
@@ -8,536 +8,201 @@
刷新数据
+
+ 我的余额
+
+
+ 我的推广
+