Commit c944cf11 by 李伟康

commit

1 parent d765a70e
...@@ -154,12 +154,16 @@ export default { ...@@ -154,12 +154,16 @@ export default {
}, },
mounted() { mounted() {
this.showLoading() this.showLoading()
wxConfig.init(['getCurExternalContact']).then(() => { let { id } = this.getQuery()
wxConfig.getCurExternalContact().then(userId => { if (id) {
this.getCustomerDetail(userId) this.getCustomerDetail(id)
} else {
wxConfig.init(['getCurExternalContact']).then(() => {
wxConfig.getCurExternalContact().then(userId => {
this.getCustomerDetail(userId)
})
}) })
}) }
// this.getCustomerDetail('wm219ICgAARGgXJUmUdGxCgNfGxRCWDg')
}, },
methods: { methods: {
moreInfo() { moreInfo() {
...@@ -216,7 +220,7 @@ export default { ...@@ -216,7 +220,7 @@ export default {
margin-right: 6px; margin-right: 6px;
} }
.wechat { .wechat {
color: #3975C6; color: #3975c6;
} }
div { div {
font-size: 14px; font-size: 14px;
...@@ -283,8 +287,8 @@ export default { ...@@ -283,8 +287,8 @@ export default {
width: 108px; width: 108px;
height: 21px; height: 21px;
border-radius: 12px; border-radius: 12px;
border: 1px solid #3975C6; border: 1px solid #3975c6;
color: #3975C6; color: #3975c6;
font-size: 12px; font-size: 12px;
.sprite-icon { .sprite-icon {
margin-left: 4px; margin-left: 4px;
...@@ -316,7 +320,7 @@ export default { ...@@ -316,7 +320,7 @@ export default {
.btn { .btn {
width: 60px; width: 60px;
height: 20px; height: 20px;
background-color: #3975C6; background-color: #3975c6;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
...@@ -341,7 +345,7 @@ export default { ...@@ -341,7 +345,7 @@ export default {
border-radius: 14px; border-radius: 14px;
background-color: rgba(57, 117, 198, 0.15); background-color: rgba(57, 117, 198, 0.15);
font-size: 14px; font-size: 14px;
color: #3975C6; color: #3975c6;
padding: 4px 12px; padding: 4px 12px;
box-sizing: border-box; box-sizing: border-box;
align-items: center; align-items: center;
......
...@@ -90,17 +90,12 @@ export default { ...@@ -90,17 +90,12 @@ export default {
}) })
}, },
//打开个人信息页 //打开个人信息页
openUserProfile(data) { openUserProfile({ userid }) {
// let obj = { this.$router.replace({
// customerId: data.customerId name: 'customer.detail',
// } query: {
// groupCustomer.updateCustomerWork(obj).then(res => {}) id: userid
let seach = { }
userid: data.userid, //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
type: 2
}
window.$wx.openUserProfile(seach).then(res => {
// console.log(res)
}) })
} }
} }
...@@ -134,7 +129,7 @@ export default { ...@@ -134,7 +129,7 @@ export default {
margin: 0 4px 4px 0; margin: 0 4px 4px 0;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #3975C6; color: #3975c6;
width: 64px; width: 64px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
......
...@@ -49,8 +49,8 @@ const spritesmithFunction = data => { ...@@ -49,8 +49,8 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-group-chat/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-group-chat/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir: 'dist', // 生产环境构建文件的目录 outputDir: 'dist', // 生产环境构建文件的目录
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!