flx:提交测试环境
This commit is contained in:
parent
758780fc2f
commit
a46d57381c
44
main.js
44
main.js
@ -23,25 +23,25 @@ Vue.use(uView);
|
||||
// // const vConsole = new VConsole()//h5控制台
|
||||
// // Vue.use(vConsole)//h5控制台
|
||||
Vue.config.productionTip = false
|
||||
// Vue.use(VueResource)
|
||||
// Vue.use(VueResource)
|
||||
App.mpType = 'app'
|
||||
// import UniIcons from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
// Vue.use('UniIcons')
|
||||
// 由于引入的icons的命名会跟项目文件里的冲突,所以随便往命名加了个2,区分开来
|
||||
// import UniIcons from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
// Vue.use('UniIcons')
|
||||
// 由于引入的icons的命名会跟项目文件里的冲突,所以随便往命名加了个2,区分开来
|
||||
import uniIcons2 from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
Vue.component('uni-icons2', uniIcons2)
|
||||
//全局变量
|
||||
// Vue.prototype.mobileTopHeight = uni.getMenuButtonBoundingClientRect()?uni.getMenuButtonBoundingClientRect().top:0;
|
||||
// Vue.prototype.url_config = ''
|
||||
// Vue.prototype.COMPANY = "longguang"
|
||||
// Vue.prototype.COMPANY = "nanchang"
|
||||
// Vue.prototype.COMPANY = "sanjiang" //(部署三江h5需要打开/pages/projectManage/projectManage,页面onload内容)
|
||||
// Vue.prototype.COMPANY = "zjwj"
|
||||
// Vue.prototype.COMPANY = "sccr"
|
||||
// Vue.prototype.COMPANY = "agjt" // 鞍钢集团环境
|
||||
// Vue.prototype.COMPANY = "cpgs" // 成平高速环境
|
||||
//全局变量
|
||||
// Vue.prototype.mobileTopHeight = uni.getMenuButtonBoundingClientRect()?uni.getMenuButtonBoundingClientRect().top:0;
|
||||
// Vue.prototype.url_config = ''
|
||||
// Vue.prototype.COMPANY = "longguang"
|
||||
// Vue.prototype.COMPANY = "nanchang"
|
||||
// Vue.prototype.COMPANY = "sanjiang" //(部署三江h5需要打开/pages/projectManage/projectManage,页面onload内容)
|
||||
// Vue.prototype.COMPANY = "zjwj"
|
||||
// Vue.prototype.COMPANY = "sccr"
|
||||
// Vue.prototype.COMPANY = "agjt" // 鞍钢集团环境
|
||||
// Vue.prototype.COMPANY = "cpgs" // 成平高速环境
|
||||
Vue.prototype.COMPANY = "xjw" // 新金湾环境
|
||||
// Vue.prototype.COMPANY = "" // 标准版
|
||||
// Vue.prototype.COMPANY = "" // 标准版
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 开发环境
|
||||
console.log('开发环境')
|
||||
@ -122,12 +122,12 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// Vue.prototype.work_url = 'http://121.37.106.37:19997'// 新能源智慧基建管理平台工作流地址
|
||||
|
||||
// Vue.prototype.url_config = 'http://101.43.164.214:11111/'// 百色通用
|
||||
// Vue.prototype.work_url = 'http://101.43.164.214:11131'// 工作流地址 通用
|
||||
Vue.prototype.work_url = 'http://101.43.164.214:11131' // 工作流地址 通用
|
||||
// Vue.prototype.url_config = 'http://101.43.164.214:11112/'// 新金湾
|
||||
Vue.prototype.work_url = 'http://101.43.164.214:11137'// 新金湾地址 通用
|
||||
// Vue.prototype.work_url = 'http://101.43.164.214:11137'// 新金湾地址 通用
|
||||
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:9500/'// 测试环境h5
|
||||
Vue.prototype.url_config = 'https://192.168.1.2/'// 青海中水北方
|
||||
Vue.prototype.url_config = 'http://jxj.zhgdyun.com:9500/' // 测试环境h5
|
||||
// Vue.prototype.url_config = 'https://192.168.1.2/'// 青海中水北方
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:21000/'// 潮州项目h5
|
||||
|
||||
// Vue.prototype.url_config = 'http://222.80.185.228:6090/' // 木垒县新能源工程线上地址
|
||||
@ -353,15 +353,15 @@ Vue.prototype.sendRequest = function(param) {
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
// 判断按钮权限的函数
|
||||
}
|
||||
// 判断按钮权限的函数
|
||||
Vue.prototype.checkBtnPermission = function(permission) {
|
||||
var permissions = JSON.parse(uni.getStorageSync("userInfo")).menuAuthority.menuList;
|
||||
// var permissions = store.state.userInfo.menuAuthority.menuList;
|
||||
permissions = permissions.filter(
|
||||
(x) => x.path == permission.menuPath
|
||||
)[0];
|
||||
console.log(permissions,'按钮权限')
|
||||
console.log(permissions, '按钮权限')
|
||||
if (!permissions || !permissions.actionList) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user