Commit 3f656831 by 王志慧

commit

1 parent 21eefaac
// const url = 'http://192.168.2.42:8064//rop-scrm-entmicro/router'
const url = '/rop-scrm-entmicro/router'
const url = 'http://192.168.2.42:8064/rop-scrm-entmicro/router'
// const url = '/rop-scrm-entmicro/router'
const returnAll = true
......
......@@ -284,6 +284,7 @@ const WxConfig = {
},
/** 打开个人信息页接口 */
openUserProfile(params) {
console.log(params)
// "type": 1, //1表示该userid是企业成员,2表示该userid是外部联系人
// "userid": "wmEAlECwAAHrbWYDetiu3Af13xlYDAAA" //可以是企业成员,也可以是外部联系人
return new Promise((resolve) => {
......
<template>
<div class="layout">
<div class="tips flex">请完善以下客户信息</div>
<template>
<template>
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-for="(item, index) in customerList">
<div :key="index" class="item flex" @click="openUserProfile(item)">
<div class="avatar">
<div class="sprite-icon icon-avatar">
<img :src="item.avatar" alt="" />
</div>
<template v-if="customerList.length > 0">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-for="(item, index) in customerList">
<div :key="index" class="item flex" @click="openUserProfile(item)">
<div class="avatar">
<div class="sprite-icon icon-avatar">
<img :src="item.avatar" alt="" />
</div>
<div class="info">
<div class="phone flex name">{{ item.customerName }}</div>
<div class="tags flex">
<template v-for="(i, ind) in 5">
<div :key="ind" class="tag text-center">{{ index }}{{ ind }}恒河猴</div>
</template>
</div>
</div>
<div class="info">
<div class="phone flex name">{{ item.customerName }}</div>
<div class="tags flex" v-if="item.labels.length > 0">
<template v-for="(i, ind) in item.labels">
<div :key="ind" class="tag text-center">{{ i.labelValue }}</div>
</template>
</div>
<div class="sprite-icon icon-arrow"></div>
</div>
</template>
</scroll-view>
</template>
<div class="sprite-icon icon-arrow"></div>
</div>
</template>
</scroll-view>
</template>
<empty v-else description="暂无数据" />
</div>
</template>
......@@ -64,13 +63,13 @@ export default {
openUserProfile(data) {
let seach = {
userIds: data.userid, //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
type: 1
type: 2
}
console.log(seach)
window.$wx = wxConfig
window.$wx.init(['openUserProfile']).then(() => {
window.$wx.openUserProfile(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!