12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <template>
- <div class="people">
- <div class="people-content">
-
- <div class="people-item" v-for="item in people.peopleList" :key="item.id" @click="contactPeople(item)">
- <div class="people-item-left">
- <img :src="item.avatar" alt="">
- <div>
- <div class="flex a-i-c">
- <div class="people-item-nickName">{{item.repairName}}</div>
- <div class="people-item-city"><van-icon name="location" />{{item.location}}</div>
- </div>
- <div class="skills">范围:{{item.repairScope}}</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- data () {
- return {
- people: {
- peopleList: []
- }
- }
- },
- methods: {
-
-
-
-
-
- getRepairMan () {
- this.postHttps('manage/emp/queryRepairMan', { reqdata: { type: 1 } }).then(r => {
- this.$set(this.people, 'peopleList', r.list)
- })
- },
-
- contactPeople ({ repairWxUserId }) {
- alert(repairWxUserId)
- alert(JSON.stringify(window.wx))
- window.wx.invoke('openUserProfile', {
- 'type': 1,
- 'userid': repairWxUserId
- }, (res) => {
- alert(JSON.stringify(res))
- if (res.err_msg !== 'openUserProfile:ok') {
-
- this.Toast({
- message: '无此联系人!'
- })
- }
- })
- }
- },
- created () {
- this.getRepairMan()
- }
- }
- </script>
|