Commit e5aa68c4 by zhouzy

1

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