main.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import App from './App';
  2. import Vue from 'vue';
  3. import VHtmlPlugin from '@megalo/vhtml-plugin';
  4. import Vuex from 'vuex';
  5. import http from './plugins/http';
  6. import Dialog from './vant/dialog/dialog';
  7. import common from './mixins/common';
  8. import './styles/font.less';
  9. import './styles/vanIndex.less';
  10. // Vue.prototype.$math = math;
  11. Vue.prototype.$colors = {
  12. prim: '#FF7F1F',
  13. red: '#F42202'
  14. };
  15. Vue.use(VHtmlPlugin);
  16. Vue.use(Vuex);
  17. // Vue.use(math);
  18. const store = require('./store').default;
  19. Vue.prototype.$store = store;
  20. Vue.use(http);
  21. Vue.prototype.$dialog = Dialog;
  22. Vue.mixin(common);
  23. const app = new Vue(App);
  24. app.$mount();
  25. export default {
  26. config: {
  27. // pages 的首个页面会被编译成首页
  28. pages: [
  29. 'pages/Home',
  30. 'pages/confirmorder',
  31. 'pages/mine',
  32. 'pages/receiving',
  33. 'pages/address',
  34. 'pages/details',
  35. 'pages/unpacking',
  36. 'pages/news',
  37. 'pages/orderdetails',
  38. 'pages/chat',
  39. 'pages/allorder',
  40. 'pages/allsellout',
  41. 'pages/allselldetails',
  42. 'pages/follow',
  43. 'pages/setting',
  44. 'pages/wallet',
  45. 'pages/walletdetails',
  46. 'pages/walletreview',
  47. 'pages/authorized',
  48. 'pages/questions',
  49. 'pages/rule',
  50. 'pages/minePublish',
  51. 'pages/mineFollow',
  52. 'pages/changeText',
  53. 'pages/addBlessing',
  54. 'pages/Apply',
  55. 'pages/Applydetails',
  56. 'pages/chooseAddress',
  57. 'pages/store/apply',
  58. 'pages/store/review',
  59. 'pages/store/homePage',
  60. 'pages/store/productEdit',
  61. 'pages/store/setting',
  62. 'pages/store/liveProduct'
  63. ],
  64. tabBar: {
  65. color: '#7E7E80',
  66. selectedColor: '#FF6C00',
  67. borderStyle: 'white',
  68. list: [
  69. {
  70. pagePath: 'pages/Home',
  71. text: '拼箱',
  72. iconPath: 'native/imgs/tabbar_icon_01.png',
  73. selectedIconPath: 'native/imgs/tabbar_icon_01_pre.png'
  74. },
  75. {
  76. pagePath: 'pages/news',
  77. text: '消息',
  78. iconPath: 'native/imgs/tabbar_icon_02.png',
  79. selectedIconPath: 'native/imgs/tabbar_icon_02_pre.png'
  80. },
  81. {
  82. pagePath: 'pages/mine',
  83. text: '我的',
  84. iconPath: 'native/imgs/tabbar_icon_03.png',
  85. selectedIconPath: 'native/imgs/tabbar_icon_03_pre.png'
  86. }
  87. ]
  88. },
  89. window: {
  90. backgroundTextStyle: 'light',
  91. navigationBarBackgroundColor: '#fff',
  92. navigationBarTextStyle: 'black'
  93. // navigationStyle: 'custom'
  94. },
  95. usingComponents: {
  96. 'van-image': '/vant/image/index',
  97. 'van-button': '/vant/button/index',
  98. 'van-tabs': '/vant/tabs/index',
  99. 'van-tab': '/vant/tab/index',
  100. 'van-notice-bar': '/vant/notice-bar/index',
  101. 'van-icon': '/vant/icon/index',
  102. 'van-grid-item ': '/vant/grid-item/index',
  103. 'van-count-down': '/vant/count-down/index',
  104. 'van-dialog': '/vant/dialog/index',
  105. 'van-search': '/vant/search/index',
  106. 'van-empty': '/vant/empty/index',
  107. 'van-sticky': '/vant/sticky/index',
  108. 'van-loading': '/vant/loading/index',
  109. 'van-action-sheet': '/vant/action-sheet/index',
  110. 'van-picker': '/vant/picker/index',
  111. 'van-datetime-picker': '/vant/datetime-picker/index',
  112. 'van-cell-group': '/vant/cell-group/index',
  113. 'van-cell': '/vant/cell/index',
  114. 'van-field': '/vant/field/index',
  115. 'van-uploader': '/vant/uploader/index',
  116. 'van-checkbox': '/vant/checkbox/index',
  117. 'van-panel': '/vant/panel/index',
  118. 'van-overlay': '/vant/overlay/index',
  119. 'van-stepper': '/vant/stepper/index',
  120. 'van-steps': '/vant/steps/index',
  121. 'van-rate': '/vant/rate/index',
  122. 'van-popup': '/vant/popup/index',
  123. 'van-area': '/vant/area/index',
  124. 'van-goods-action': 'vant/goods-action/index',
  125. 'van-goods-action-icon': 'vant/goods-action-icon/index',
  126. 'van-goods-action-button': 'vant/goods-action-button/index',
  127. 'van-calendar': 'vant/calendar/index',
  128. 'van-dropdown-menu': 'vant/dropdown-menu/index',
  129. 'van-dropdown-item': 'vant/dropdown-item/index'
  130. },
  131. plugins: {
  132. 'live-player-plugin': {
  133. version: '1.3.0', // 注意填写该直播组件最新版本号,微信开发者工具调试时可获取最新版本号(复制时请去掉注释)
  134. provider: 'wx2b03c6e691cd7370' // 必须填该直播组件appid,该示例值即为直播组件appid(复制时请去掉注释)
  135. }
  136. }
  137. }
  138. };