Commit a81e69a9 by 王志慧

commit

1 parent 49dd6588
// const url = 'http://192.168.1.64:8064/rop-scrm-entmicro/router'
// const url = 'http://scrm.dev.glsx.com.cn/rop-scrm-entmicro/router'
const url = '/rop-scrm-entmicro/router'
export default {
/**获取群聊列表 */
......
......@@ -11,7 +11,7 @@ module.exports = {
envVersion: "develop",
title: '嘀加企微管家',
request: {
baseURL: 'https://scrm.dev.glsx.com.cn', // 本地测试项目地址,
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -10,7 +10,7 @@
let config = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
if (!isEnv) {
let { request } = config
Object.assign(request, { timeout })
return Promise.resolve(config)
......
......@@ -119,13 +119,19 @@ export default {
deactivated() {},
mounted() {
this.initData()
this.initWx()
},
methods: {
//初始化微信接口
initWx() {
wxConfig.init(['openEnterpriseChat','openExistedChatWithMsg']).then(() => {})
},
// 创建群聊or进入群聊
addGroup() {
console.log(this.addGroupParams, '-----')
if (this.addGroupParams.chatId == '') {
wxConfig.openEnterpriseChat(this.addGroupParams).then(res => {
console.log(res,'res')
this.insertParams.chatId = res.chatId
this.insertParams.externalUserId = this.userId
this.insertParams.templateId = this.templateId
......@@ -238,7 +244,8 @@ export default {
let externalUserId = id
this.addGroupParams.externalUserIds.push(id)
this.getCustomerInfo(externalUserId)
} else {
}
else {
wxConfig.init(['getCurExternalContact', 'openEnterpriseChat', 'openExistedChatWithMsg']).then(() => {
//获取userId
wxConfig
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!