Commit 109df40169d646081eb2faa4cfb841a27abaac45
1 parent
4e3bb7d5
我的礼盒页
Showing
5 changed files
with
45 additions
and
1 deletions
.gitignore
src/main.js
| @@ -6,7 +6,7 @@ import VueHead from "vue-head"; | @@ -6,7 +6,7 @@ import VueHead from "vue-head"; | ||
| 6 | import sha1 from "sha1"; | 6 | import sha1 from "sha1"; |
| 7 | import 'mint-ui/lib/style.css'; | 7 | import 'mint-ui/lib/style.css'; |
| 8 | import { Toast, Indicator,InfiniteScroll } from "mint-ui"; | 8 | import { Toast, Indicator,InfiniteScroll } from "mint-ui"; |
| 9 | -import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview} from "vant"; | 9 | +import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview, Tab, Tabs} from "vant"; |
| 10 | import App from "./App"; | 10 | import App from "./App"; |
| 11 | import IdCard from './common/IdCard'; | 11 | import IdCard from './common/IdCard'; |
| 12 | import VueBus from 'vue-bus'; | 12 | import VueBus from 'vue-bus'; |
| @@ -22,6 +22,8 @@ Vue.use(Picker); | @@ -22,6 +22,8 @@ Vue.use(Picker); | ||
| 22 | Vue.use(Image); | 22 | Vue.use(Image); |
| 23 | Vue.use(ImagePreview); | 23 | Vue.use(ImagePreview); |
| 24 | Vue.use(VueClipboard) | 24 | Vue.use(VueClipboard) |
| 25 | +Vue.use(Tab); | ||
| 26 | +Vue.use(Tabs); | ||
| 25 | Vue.use(Lazyload, { | 27 | Vue.use(Lazyload, { |
| 26 | preload: 90, | 28 | preload: 90, |
| 27 | loading: "static/img/x.jpg", | 29 | loading: "static/img/x.jpg", |
src/pages/myGiftBox/myGiftBox.less
0 → 100644
src/pages/myGiftBox/myGiftBox.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div> | ||
| 3 | + <van-tabs v-model="active" line-width="13px" line-height="2px" color=""> | ||
| 4 | + <van-tab title="收礼">收礼</van-tab> | ||
| 5 | + <van-tab title="送礼">送礼</van-tab> | ||
| 6 | + </van-tabs> | ||
| 7 | + </div> | ||
| 8 | +</template> | ||
| 9 | + | ||
| 10 | +<script> | ||
| 11 | + export default { | ||
| 12 | + name: 'myGiftBox', | ||
| 13 | + data () { | ||
| 14 | + return { | ||
| 15 | + active: 2, | ||
| 16 | + } | ||
| 17 | + }, | ||
| 18 | + created(){ | ||
| 19 | + | ||
| 20 | + }, | ||
| 21 | + methods: { | ||
| 22 | + | ||
| 23 | + } | ||
| 24 | + } | ||
| 25 | +</script> | ||
| 26 | + | ||
| 27 | +<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
| 28 | +<style rel="stylesheet/less" lang="less" scoped> | ||
| 29 | +@import "myGiftBox"; | ||
| 30 | +</style> |
src/router/index.js
| @@ -127,6 +127,17 @@ const router = new Router({ | @@ -127,6 +127,17 @@ const router = new Router({ | ||
| 127 | } | 127 | } |
| 128 | }, | 128 | }, |
| 129 | { | 129 | { |
| 130 | + // 我的礼盒 | ||
| 131 | + path: "/myGiftBox", | ||
| 132 | + name: "myGiftBox", | ||
| 133 | + component: resolve => { | ||
| 134 | + require(["@/pages/myGiftBox/myGiftBox"], resolve); | ||
| 135 | + }, | ||
| 136 | + meta: { | ||
| 137 | + requireAuth: false | ||
| 138 | + } | ||
| 139 | + }, | ||
| 140 | + { | ||
| 130 | // 暂未开通 | 141 | // 暂未开通 |
| 131 | path: "/notYetOpened", | 142 | path: "/notYetOpened", |
| 132 | name: "notYetOpened", | 143 | name: "notYetOpened", |