| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- import App from './App';
- import Vue from 'vue';
- import VHtmlPlugin from '@megalo/vhtml-plugin';
- import Vuex from 'vuex';
- import http from './plugins/http';
- import Dialog from './vant/dialog/dialog';
- import common from './mixins/common';
- import './styles/font.less';
- import './styles/vanIndex.less';
- Vue.prototype.$colors = {
- prim: '#FF7F1F',
- red: '#F42202'
- };
- Vue.use(VHtmlPlugin);
- Vue.use(Vuex);
- const store = require('./store').default;
- Vue.prototype.$store = store;
- Vue.use(http);
- Vue.prototype.$dialog = Dialog;
- Vue.mixin(common);
- const app = new Vue(App);
- app.$mount();
- export default {
- config: {
- // pages 的首个页面会被编译成首页
- pages: [
- 'pages/Home',
- 'pages/confirmorder',
- 'pages/mine',
- 'pages/receiving',
- 'pages/address',
- 'pages/details',
- 'pages/news',
- 'pages/orderdetails',
- 'pages/chat',
- 'pages/allorder',
- 'pages/follow',
- 'pages/setting',
- 'pages/wallet',
- 'pages/authorized',
- 'pages/questions',
- 'pages/rule',
- 'pages/minePublish',
- 'pages/mineFollow',
- 'pages/changeText',
- 'pages/chooseAddress'
- ],
- tabBar: {
- color: '#7E7E80',
- selectedColor: '#FF6C00',
- list: [
- {
- pagePath: 'pages/Home',
- text: '拼箱',
- iconPath: 'native/imgs/tabbar_icon_01.png',
- selectedIconPath: 'native/imgs/tabbar_icon_01_pre.png'
- },
- {
- pagePath: 'pages/news',
- text: '消息',
- iconPath: 'native/imgs/tabbar_icon_02.png',
- selectedIconPath: 'native/imgs/tabbar_icon_02_pre.png'
- },
- {
- pagePath: 'pages/mine',
- text: '我的',
- iconPath: 'native/imgs/tabbar_icon_03.png',
- selectedIconPath: 'native/imgs/tabbar_icon_03_pre.png'
- }
- ]
- },
- window: {
- backgroundTextStyle: 'light',
- navigationBarBackgroundColor: '#fff',
- navigationBarTextStyle: 'black'
- // navigationStyle: 'custom'
- },
- usingComponents: {
- 'van-image': '/vant/image/index',
- 'van-button': '/vant/button/index',
- 'van-tabs': '/vant/tabs/index',
- 'van-tab': '/vant/tab/index',
- 'van-notice-bar': '/vant/notice-bar/index',
- 'van-icon': '/vant/icon/index',
- 'van-grid-item ': '/vant/grid-item/index',
- 'van-count-down': '/vant/count-down/index',
- 'van-dialog': '/vant/dialog/index',
- 'van-search': '/vant/search/index',
- 'van-empty': '/vant/empty/index',
- 'van-sticky': '/vant/sticky/index',
- 'van-loading': '/vant/loading/index',
- 'van-action-sheet': '/vant/action-sheet/index',
- 'van-picker': '/vant/picker/index',
- 'van-cell-group': '/vant/cell-group/index',
- 'van-cell': '/vant/cell/index',
- 'van-field': '/vant/field/index',
- 'van-uploader': '/vant/uploader/index',
- 'van-checkbox': '/vant/checkbox/index',
- 'van-panel': '/vant/panel/index',
- 'van-overlay': '/vant/overlay/index',
- 'van-stepper': '/vant/stepper/index',
- 'van-steps': '/vant/steps/index',
- 'van-rate': '/vant/rate/index',
- 'van-popup': '/vant/popup/index',
- 'van-area': '/vant/area/index',
- 'van-goods-action': 'vant/goods-action/index',
- 'van-goods-action-icon': 'vant/goods-action-icon/index',
- 'van-goods-action-button': 'vant/goods-action-button/index',
- 'van-calendar': 'vant/calendar/index'
- }
- }
- };
|