通讯录是否显示号码

This commit is contained in:
liuye
2022-11-17 15:34:48 +08:00
parent 37dd13a5e3
commit ea73b0ccb3
3 changed files with 10 additions and 5 deletions

View File

@@ -11,7 +11,8 @@
</div>
<div class="user-info">
<img :src="item.photo" alt="" v-if="item.photo">
<img src="./img/user-img.png" alt="" v-else>{{ item.name }}
<img src="./img/user-img.png" alt="" v-else>{{ item.name }}
<span v-if="isShowPhone && item.mobile">({{item.mobile}})</span>
</div>
</div>
</template>
@@ -41,7 +42,7 @@ export default {
list: [],
cirIcon: require('./img/xz.png'),
checkIcon: require('./img/xzh.png'),
selected: []
selected: [],
}
},
computed: {
@@ -55,6 +56,9 @@ export default {
isRequire() {
return this.$route.query.isRequire || 1
},
isShowPhone() {
return this.$route.query.isShowPhone
},
},
onLoad(query) {
if (query.selected) {