@@ -1,9 +1,14 @@
//测试地址
-const baseUrl = 'http://dms.66km.com.cn/'
+//const baseUrl = 'http://dms.66km.com.cn/'
//const baseUrl = 'http://192.168.0.14:20187/'
-
+//const configUrl='http://qw.66km.com.cn/'
//正式地址
+//66 dmsqw.66km.com
+const baseUrl = 'http://apidms.66km.com/'
+const configUrl='http://dmsqw.66km.com/'
+//欧洲维修
+//const baseUrl = 'https://crm.eurorepar.cn/'
const http = (url = '', date = {}, type = 'POST', header = {
@@ -69,5 +74,5 @@ const http = (url = '', date = {}, type = 'POST', header = {
export default {
- http
+ http,configUrl
}
@@ -5,7 +5,7 @@ Vue.prototype.$http = request.http
Vue.prototype.$request =request
import common from '@/common/common.js'
Vue.prototype.$common =common
+Vue.prototype.$configUrl = request.configUrl
//import wx from 'weixin-js-sdk'
//import * as $wx from '@wecom/jssdk'
import wx from "wecomjsdk"
@@ -64,7 +64,7 @@
}else{
this.$http('enterpriseWechat/auth/oAuth2', {
corpID:opt.appid,
- redirectUri:'http://qw.66km.com.cn/pages/index/auto',
+ redirectUri:this.this.$configUrl+'pages/index/auto',
agentId:opt.agentid
}, 'GET').then(res => {
//console.log(res.data)
@@ -88,6 +88,7 @@
this.token=uni.getStorageSync('token')
this.corpID=uni.getStorageSync('corpID')
this.agentId=uni.getStorageSync('agentId')
+ console.log(this.$configUrl)
/* this.corpID='wpMGjbBgAA_zIu6wbKy48zFSbGiGeP8g'
this.agentId='1000051'
this.userId='wmMGjbBgAA0JAbGD5Vu8BzEuYgZhvhOA'
@@ -305,7 +306,7 @@
this.$http('enterpriseWechat/auth/getAgentConfig', {
corpID:that.corpID,
- url:'http://qw.66km.com.cn/'
+ url:this.$configUrl
that.$wx.agentConfig({