Commit e5aa68c4 by zhouzy

1

1 parent 4af93a82
......@@ -14,7 +14,7 @@ export default {
},
/** 根据userid获取客户详情 */
getDetail(data) {
data.method = 'org.ore.api.one.template.detail'
data.method = 'org.ore.api.customer.detail.single'
return window.$HTTP({
url,
data,
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 40px 20px;}
.icon-attract-customer-share { width: 10px; height: 10px; background-position: -30px 0px;}
.icon-active { width: 20px; height: 20px; background-position: 0px 0px;}
\ No newline at end of file
.icon-active { width: 20px; height: 20px; background-position: 0px 0px;}
.icon-attract-customer-share { width: 10px; height: 10px; background-position: -30px 0px;}
\ No newline at end of file
......@@ -74,6 +74,7 @@ const actions = {
code,
corpId
}).then(({ code, data, message }) => {
console.log(data)
// const { baseURL } = window.$fetchConfig.request
const [baseURL] = redirectUrl.split('/dj-scrm-wx-work-main/')
let url = `${baseURL}/dj-scrm-wx-work-main/#/`
......@@ -108,16 +109,16 @@ const actions = {
dispatch('registerHttp', userInfo.sessionId)
// 只有一个账号 history.back()
console.log(`${redirectUrl}${route}`)
window.location.replace(`${redirectUrl}${route}`)
// window.location.replace(`${redirectUrl}${route}`)
}
} else {
/**没有账号 */
window.location.href = `${url}common/nothing`
// window.location.href = `${url}common/nothing`
}
} else {
/**账号过期 (暂时没有字段判断是否过期) */
Notify(message)
window.location.href = `${url}common/overdue`
// window.location.href = `${url}common/overdue`
}
})
} else {
......@@ -142,7 +143,7 @@ const actions = {
let { sessionId, corpId } = getParams()
const storage_sessionId = util.getSessionId()
const storage_corpId = util.getLocalStorage('dj_scrm_corpId')
if (!corpId) corpId = storage_corpId.corpId || 'ww7ee69c648ae1b7e6'
if (!corpId) corpId = storage_corpId && storage_corpId.corpId || 'ww7ee69c648ae1b7e6'
util.setLocalStorage('dj_scrm_corpId', { corpId })
if (sessionId || storage_sessionId) {
state.showWindow = true
......
......@@ -6,7 +6,7 @@
<div class="business-card">
<div class="business-card-top">
<div class="imgBox">
<img :src="businessCard.url" alt="" />
<!-- <img :src="businessCard.url" alt="" /> -->
</div>
<div class="textBox">
<div class="title">{{ businessCard.name }}</div>
......@@ -92,13 +92,14 @@ export default {
dialogMessage: [],
insertParams: {
templateId: '',
externalUserids: '',
chatId: ''
serialVersionUID:'',
chatId: '',
userId:''
},
addGroupParams: {
externalUserId: [],
groupName: '',
userIds: [],
userIds: '',
chatId: ''
},
businessCard: {
......@@ -226,14 +227,15 @@ export default {
window.$wx.init(['getCurExternalContact', 'openEnterpriseChat']).then(() => {
//获取userId
window.$wx.getCurExternalContact().then(res => {
console.log(res,'11111');
this.userId = res
let externalUserIds = this.userId
let externalUserId = this.userId
//获取客户信息
groupChat.getDetail({ externalUserIds }).then(res => {
groupChat.getDetail({ externalUserId }).then(res => {
console.log(res, '333')
})
//获取列表信息
groupChat.getList({ externalUserIds }).then(res => {
groupChat.getList({ externalUserId }).then(res => {
console.log(res, '444')
// this.groupList = res
})
......
......@@ -87,4 +87,12 @@ export default {
height: 20px;
margin-left: auto
}
.mass-message{
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 16px;
word-wrap:break-word;
margin-top: 13px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!