Commit 0a507de3 by 李伟康

commit

1 parent 182e1d66
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { groupCustomer } from '@/api' import { groupCustomer, wxConfig } from '@/api'
export default { export default {
name: '', name: '',
data() { data() {
...@@ -69,7 +69,9 @@ export default { ...@@ -69,7 +69,9 @@ export default {
created() { created() {
this.init() this.init()
}, },
mounted() {}, mounted() {
wxConfig.init(['openUserProfile']).then(() => {})
},
methods: { methods: {
onReachBottom() { onReachBottom() {
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
...@@ -92,11 +94,18 @@ export default { ...@@ -92,11 +94,18 @@ export default {
//打开个人信息页 //打开个人信息页
openUserProfile({ userid }) { openUserProfile({ userid }) {
console.log(userid) console.log(userid)
this.$router.push({ // this.$router.push({
name: 'customer.detail', // name: 'customer.detail',
query: { // query: {
id: userid // id: userid
} // }
// })
let seach = {
userid, //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
type: 2
}
wxConfig.openUserProfile(seach).then(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!