import Vue from 'vue' import App from './App' import store from './store' import uView from "uview-ui" Vue.use(uView) import util from "./utils/util"; //加载js公共函数 import constant from "./utils/constant"; //常量 import config from "./utils/config"; //地址 import reQuest from "./common/http/" //请求函数 import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"; Vue.prototype.$gettqimg = function(url) { return 'https://cs.tour-ma.com/r/cms/www/m/tianqi/' + url + '.png' } Vue.prototype.$getimg = function(url) { return 'https://cs.tour-ma.com/r/cms/www/m/changshu/' + url } // Vue.prototype.$getimg = function(url) { // return 'https://cs.tour-ma.comww/xcx/img/' + url // } Vue.prototype.$geturl = function(url) { return 'https://cs.tour-ma.com' + url } Vue.prototype.$geturl6 = function(url) { return 'https://cs.tour-ma.com/w640' + url } Vue.prototype.$geturl480 = function(url) { return 'https://cs.tour-ma.com/w480' + url } Vue.prototype.$geturl4 = function(url) { return 'https://cs.tour-ma.com/wc400' + url } Vue.prototype.$getpage = function(url) { console.log(url); uni.navigateTo({ url: url }); } Vue.prototype.$getTag = function(tags) { if(!tags){return} let arry=tags.split(',').filter(function(e){return e}); return arry; } Vue.config.productionTip = false App.mpType = 'app' Vue.prototype.$constant = constant; Vue.prototype.$doGet = reQuest.doGet; Vue.prototype.$doPost = reQuest.doPost; Vue.prototype.$util = util; Vue.prototype.isPlatform = "";//平台判断 Vue.prototype.isLogin = true;//登录判断 Vue.prototype.baseImgUrl = config.baseImgUrl; Vue.prototype.serverUrl = config.serverUrl; Vue.component('mescroll-uni', MescrollUni); const app = new Vue({ store, ...App }) app.$mount()