Commit 109df40169d646081eb2faa4cfb841a27abaac45

Authored by zhiyangdu
1 parent 4e3bb7d5

我的礼盒页

.gitignore
1 1 .DS_Store
2 2 node_modules/
3 3 /dist/
  4 +/package-lock.json/
4 5 npm-debug.log*
5 6 yarn-debug.log*
6 7 yarn-error.log*
... ...
src/main.js
... ... @@ -6,7 +6,7 @@ import VueHead from "vue-head";
6 6 import sha1 from "sha1";
7 7 import 'mint-ui/lib/style.css';
8 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 10 import App from "./App";
11 11 import IdCard from './common/IdCard';
12 12 import VueBus from 'vue-bus';
... ... @@ -22,6 +22,8 @@ Vue.use(Picker);
22 22 Vue.use(Image);
23 23 Vue.use(ImagePreview);
24 24 Vue.use(VueClipboard)
  25 +Vue.use(Tab);
  26 +Vue.use(Tabs);
25 27 Vue.use(Lazyload, {
26 28 preload: 90,
27 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 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 142 path: "/notYetOpened",
132 143 name: "notYetOpened",
... ...