| | |
| | | import headerBar from './components/header.vue' |
| | | Vue.component('header-bar', headerBar) |
| | | |
| | | /* 从服务器获取的图片(减少小程序端体积) by lyzflash */ |
| | | import { |
| | | remoteimg |
| | | } from '@/common/remoteimg.js' |
| | | |
| | | //请求加载组件 |
| | | import requestLoading from './components/jjjloading.vue'; |
| | |
| | | active: 'home' |
| | | }; |
| | | |
| | | /*底部数据*/ |
| | | import shopTabBar from "@/components/shoptabbar/footTabbar.vue" |
| | | Vue.component('shopTabBar', shopTabBar) |
| | | Vue.prototype.shopFootTabberData = { |
| | | active: 'home' |
| | | }; |
| | | Vue.prototype.$fire = new onfire() |
| | | |
| | | Vue.config.productionTip = false |
| | |
| | | /*页面跳转*/ |
| | | Vue.prototype.gotoPage = gotopage; |
| | | Vue.prototype.font_url = config.font_url; |
| | | |
| | | /* 从服务器获取的图片(减少小程序端体积) by lyzflash */ |
| | | Vue.prototype.remoteImg = remoteimg; |
| | | |
| | | Vue.prototype.points_name = function(e) { |
| | | if(!e){ |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | Vue.prototype.consumption_name = function(e) { |
| | | if(!e){ |
| | | return store.state.consumption_name; |
| | | }else{ |
| | | let re = new RegExp("消费券","g"); |
| | | return e.replace(re, store.state.consumption_name); |
| | | } |
| | | |
| | | } |
| | | //#ifdef H5 |
| | | app.$router.afterEach((to, from) => { |
| | | const u = navigator.userAgent.toLowerCase(); |