Commit 45d0a925 by 王志慧

commit

1 parent c47c3741
const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router' // const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router'
const url = '/rop-scrm-entmicro/router'
const returnAll = true const returnAll = true
export default { export default {
/**消息盒子-好友列表 */ /**消息盒子-好友列表 */
getCustomerList(data) { getCustomerList(data={}) {
data.method = 'org.ore.api.dracScrmWork.findWorkDetail' data.method = 'entmicro.api.dracScrmWork.findWorkDetail'
return window.$HTTP({ return window.$HTTP({
url, url,
data, data,
......
const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router' // const url = 'http://192.168.3.191:8064/rop-scrm-entmicro/router'
const url = '/rop-scrm-entmicro/router'
const returnAll = true const returnAll = true
export default { export default {
/**获取打标签的客户列表 */ /**获取打标签的客户列表 */
getcustomerList(data) { getcustomerList(data={}) {
data.method = 'org.ore.api.qywechat.tagging.customer.list' data.method = 'entmicro.api.qywechat.tagging.customer.list'
return window.$HTTP({ return window.$HTTP({
url, url,
data, data,
...@@ -13,8 +14,8 @@ export default { ...@@ -13,8 +14,8 @@ export default {
}) })
}, },
/**标签数据获取 */ /**标签数据获取 */
gettaggingList(data) { gettaggingList(data={}) {
data.method = 'org.ore.api.qywechat.tagging.info' data.method = 'entmicro.api.qywechat.tagging.info'
return window.$HTTP({ return window.$HTTP({
url, url,
data, data,
......
...@@ -18,5 +18,15 @@ export default { ...@@ -18,5 +18,15 @@ export default {
data, data,
returnAll returnAll
}) })
} },
/** 获取userid */
getuserInfo(data={}) {
data.method = 'scrm.api.sso.user.getLoginInfo'
return window.$HTTP({
url,
data,
returnAll
})
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -61,10 +61,6 @@ img { ...@@ -61,10 +61,6 @@ img {
.sticky { .sticky {
position: static; position: static;
} }
<<<<<<< HEAD
=======
>>>>>>> 3740c66fa0b551c1f79096dbfcb78300ec6a912a
.buttomLine { .buttomLine {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -124,10 +124,10 @@ const setClipboardData = data => { ...@@ -124,10 +124,10 @@ const setClipboardData = data => {
wx.setClipboardData({ wx.setClipboardData({
data, data,
success(res) { success(res) {
console.log(res)
Toast('复制成功') Toast('复制成功')
}, },
fail(res){ fail(res){
console.log(res)
} }
}) })
} }
......
<template> <template>
<div :class="['container-add', `page-type-${tabIndex}`]"> <div :class="['container-add', `page-type-${tabIndex}`]">
<tip :title="title"></tip> <tip :title="title"></tip>
<template v-if="data.length > 0"> <template v-if="customerList.length > 0">
<div class="customerList-add"> <div class="customerList-add">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="customer-add" v-for="(item, index) in data" :key="index"> <div class="customer-add" v-for="(item, index) in customerList" :key="index">
<div class="customer-add-portrait" v-if="tabIndex == 3"> <div class="customer-add-portrait" v-if="tabIndex == 3">
<img :src="item.avatar" /> <img :src="item.avatar" />
</div> </div>
...@@ -14,14 +14,12 @@ ...@@ -14,14 +14,12 @@
</div> </div>
<template v-if="item.status == 0"> <template v-if="item.status == 0">
<div class="customer-add-friend flex"> <div class="customer-add-friend flex">
<div class="sprite-icon icon-customer-add" @click="addFriend(item)"> <div class="sprite-icon icon-customer-add" @click="addFriend(item)"></div>
</div>
<div class="customer-add-friend-text">加好友</div> <div class="customer-add-friend-text">加好友</div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class=" customer-add-friend flex" @click="callPhone(item.customerPhone)"> <div class="customer-add-friend flex" @click="callPhone(item.customerPhone)">
<div class="sprite-icon icon-customer-phone"> <div class="sprite-icon icon-customer-phone"></div>
</div>
<div class="customer-add-friend-text">拨打电话</div> <div class="customer-add-friend-text">拨打电话</div>
</div> </div>
</template> </template>
...@@ -44,12 +42,15 @@ ...@@ -44,12 +42,15 @@
</template> </template>
<script> <script>
import { wxConfig } from '@/api' import { wxConfig } from '@/api'
import { groupCustomer } from '@/api'
export default { export default {
name: 'customerDetails', name: 'customerDetails',
data() { data() {
return { return {
check: true, check: true,
customerList: this.data, customerList: [],
status: 0,
taskId: this.$route.query.taskId ? this.$route.query.taskId : 'e0e1a10cf50f427bb6d35906cf3dbf21',
copywriting: '我是深圳福田宝马4S店的售后经理王俊凯,添加企业微信,帮你解决您购车售后任何问题。' copywriting: '我是深圳福田宝马4S店的售后经理王俊凯,添加企业微信,帮你解决您购车售后任何问题。'
} }
}, },
...@@ -63,21 +64,51 @@ export default { ...@@ -63,21 +64,51 @@ export default {
default: 0 default: 0
} }
}, },
created() {
this.customerList = this.data
},
computed: { computed: {
title() { title() {
switch (this.tabIndex) { switch (this.tabIndex) {
case 0: case 0:
return `您共有${this.data.length}位客户待添加!` return `您共有${this.customerList.length}位客户待添加!`
case 1: case 1:
return `您共有${this.data.length}位客户待通过!` return `您共有${this.customerList.length}位客户待通过!`
case 3: case 3:
return `您共有${this.data.length}位客户!` return `您共有${this.customerList.length}位客户!`
default: default:
return `您共有${this.data.length}位客户待添加!` return `您共有${this.customerList.length}位客户待添加!`
} }
} }
}, },
watch: {
tabIndex: {
handler(newVal) {
if (newVal == 3) {
this.status = ''
} else {
this.status = newVal
}
this.init()
},
immediate: true
}
},
methods: { methods: {
init() {
let search = {
taskId: this.taskId,
status: this.status
}
groupCustomer.getCustomerList(search).then(res => {
if (res.code == 0) {
this.customerList = res.data
} else {
this.customerList = []
}
})
},
onReachBottom() { onReachBottom() {
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true this.$refs.scrollView.finished = true
...@@ -196,14 +227,13 @@ export default { ...@@ -196,14 +227,13 @@ export default {
white-space: nowrap; white-space: nowrap;
margin-top: 7px; margin-top: 7px;
} }
} }
.line { .line {
margin: 0 13px 0 16px; margin: 0 13px 0 16px;
width: 1px; width: 1px;
height: 42px; height: 42px;
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
} }
.customer-add-stay { .customer-add-stay {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="container-wrap"> <div class="container-wrap">
<tab :list="list" :sticky="sticky" :index="tabIndex" @change="changeTabs"></tab> <tab :list="list" :sticky="sticky" :index="tabIndex" @change="changeTabs"></tab>
<!-- 添加 待通过 全部--> <!-- 添加 待通过 全部-->
<add v-if="tabIndex == 0 || tabIndex == 1 || tabIndex == 3" :tabIndex="tabIndex" :data="customerList"></add> <add v-if="tabIndex == 0 || tabIndex == 1 || tabIndex == 3" :tabIndex="tabIndex" :data="customerList"></add>
<!-- 已通过 --> <!-- 已通过 -->
<tag :isTitle="isTitle" v-else-if="tabIndex == 2" :data="customerList"></tag> <tag :isTitle="isTitle" v-else-if="tabIndex == 2" :data="customerList"></tag>
</div> </div>
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<script> <script>
import add from './add' import add from './add'
import tag from '../tag/index.vue' import tag from '../tag/index.vue'
import { groupCustomer } from '@/api'
export default { export default {
name: 'customerDetails', name: 'customerDetails',
data() { data() {
...@@ -20,130 +19,8 @@ export default { ...@@ -20,130 +19,8 @@ export default {
isTitle: false, //是否显示search组件 isTitle: false, //是否显示search组件
tabIndex: 0, tabIndex: 0,
status: 0, status: 0,
taskId: this.$route.query.taskId?this.$route.query.taskId:'',
customerList: [], customerList: []
// customerList : [
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// }
// ],
} }
}, },
components: { components: {
...@@ -151,30 +28,26 @@ export default { ...@@ -151,30 +28,26 @@ export default {
tag tag
}, },
created() { created() {
this.init() // this.init()
}, },
methods: { methods: {
// 消息盒子-好友列表 // 消息盒子-好友列表
init() { // init() {
let search = { // let search = {
taskId:this.taskId, // taskId: this.taskId,
status: this.status // status: this.status
} // }
groupCustomer.getCustomerList(search).then(res => { // groupCustomer.getCustomerList(search).then(res => {
console.log(res) // if (res.code == 0) {
if (res.code == 0) { // this.customerList = res.data
this.customerList = res.data // } else {
} // this.customerList = []
}) // }
}, // })
// },
changeTabs(e) { changeTabs(e) {
if (e == 3) {
this.status = ''
} else {
this.status = e
}
this.tabIndex = e this.tabIndex = e
this.init() // this.init()
} }
} }
} }
......
...@@ -57,138 +57,17 @@ ...@@ -57,138 +57,17 @@
</template> </template>
<script> <script>
import make from './make.vue' import make from './make.vue'
import { groupTag, wxConfig } from '@/api' import { groupTag, ssoApi, groupCustomer, wxConfig } from '@/api'
export default { export default {
components: { make }, components: { make },
data() { data() {
return { return {
keyword: '', keyword: '',
customerList: [], customerList: [],
// customerList: [
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAY_3bc9griISYSmgyx_FuQw',
// customerName: '王欣伟',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/Q3auHgzwzM7CwgjO4zXia5tmwgfKRK1IXhialS5hiaVMt15SlniciaRRHDA/0',
// type: 1,
// createdTime: '2021-11-14 17:17:38',
// status: 2
// },
// {
// id: null,
// userid: 'wodMreDgAAJ4g8Q6XpoIcNFXtr_M42xA',
// customerName: '曾琪',
// customerPhone: '13476670746',
// avatar: 'http://wework.qpic.cn/bizmail/TzKjFfYqwUNTjchjy3lQW3u9HibSkzuicPdrkZWhP7p9KTSysersUWWA/0',
// type: 2,
// createdTime: '2021-09-18 14:27:35',
// status: 1
// },
// {
// id: null,
// userid: 'wmdMreDgAAvkJ7PZmeph-HYoSLmkMUFQ',
// customerName: '爱就在一起',
// customerPhone: '13476670746',
// avatar: 'http://wx.qlogo.cn/mmhead/A7sq8BD8oexpibZTkv1gC7uib0sOrUZuhfPgrK7aicuib4JqRDq1bed4kQ/0',
// type: 1,
// createdTime: '2021-08-31 14:51:06',
// status: 0
// },
// {
// id: null,
// userid: 'wodMreDgAAcjbEcZ4kycsCEeb0sGqDkA',
// customerName: '李崇源',
// customerPhone: '13476670746',
// avatar: 'https://wework.qpic.cn/wwhead/duc2TvpEgSQO4BpE0WZSZ8I5J6rakCVOgvErIPJwQaxPiaq5xiblVNTV8pMYcrcHjRPAvHhZQWxy8/0',
// type: 2,
// createdTime: '2021-08-24 09:39:05',
// status: 1
// }
// ],
checkList: [], checkList: [],
allChecked: false, allChecked: false,
title: '' title: '',
userIds: ''
} }
}, },
name: 'tag', name: 'tag',
...@@ -196,33 +75,48 @@ export default { ...@@ -196,33 +75,48 @@ export default {
isTitle: { isTitle: {
type: Boolean, type: Boolean,
default: true default: true
},
data: {
type: Array,
default: () => []
} }
}, },
created() { created() {
//初始化数据 //获取userid
if (this.isTitle) { this.taskId = this.$route.query.taskId ? this.$route.query.taskId : 'e0e1a10cf50f427bb6d35906cf3dbf21';
this.init() this.getuserInfo()
} else { //初始化数据
this.customerList = this.data if (this.isTitle) {
this.title = `已有${this.customerList.length}位客户已通过您的好友申请!` this.init()
this.customerList.forEach(item => { } else {
this.$set(item, 'isChecked', false) this.initAll()
}) }
},
methods: {
initAll() {
let search = {
taskId: this.taskId,
status: 2
} }
groupCustomer.getCustomerList(search).then(res => {
if (res.code == 0) {
this.customerList = res.data
this.title = `已有${this.customerList.length}位客户已通过您的好友申请!`
this.customerList.forEach(item => {
this.$set(item, 'isChecked', false)
})
} else {
this.customerList = []
}
})
},
getuserInfo() {
ssoApi.getuserInfo().then(res => {
this.workUserId = res.data.workUserId
})
}, },
methods: {
init() { init() {
//获取打标签客户列表 //获取打标签客户列表
let seacrh = { let seacrh = {
keyword: this.keyword, keyword: this.keyword
sessionId: 'mini-31ff1fff-c432-46d9-b94e-9f4ab76086fd-rop'
} }
groupTag.getcustomerList(seacrh).then(res => { groupTag.getcustomerList(seacrh).then(res => {
console.log(res)
if (res.code == 0) { if (res.code == 0) {
this.customerList = res.data this.customerList = res.data
this.title = `您共有 ${this.customerList.length}位客户暂未添加标签` this.title = `您共有 ${this.customerList.length}位客户暂未添加标签`
...@@ -268,17 +162,16 @@ export default { ...@@ -268,17 +162,16 @@ export default {
//打开会话 //打开会话
gotoInfo(item) { gotoInfo(item) {
let seach = { let seach = {
userIds: [], //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。 userIds: [this.workUserId], //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
externalUserIds: ['wm-ZewEAAALezLnqhZLNLvXgwqvx6BOw'], // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。 externalUserIds: [item.userid], // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
groupName: '', // 会话名称。单聊时该参数传入空字符串""即可。 groupName: '', // 会话名称。单聊时该参数传入空字符串""即可。
chatId: '' chatId: ''
} }
console.log(seach) console.log(seach)
window.$wx = wxConfig window.$wx = wxConfig
window.$wx.init(['openEnterpriseChat']).then(() => { window.$wx.init(['openEnterpriseChat']).then(() => {
//获取userId
window.$wx.openEnterpriseChat(seach).then(res => { window.$wx.openEnterpriseChat(seach).then(res => {
console.log(res) // console.log(res)
}) })
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!