Commit c944cf11 by 李伟康

commit

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