You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
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()
|
|
|