<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{
{
title }}</text>
</view>
<view class="contact"><button type="default" @click="getContact">通讯录</button></view>
<!-- <view class="contact-list" v-for="(item, index) of contactList" :key="index">
<view class="item">
<view class="phone">
<text>姓名:{
{
item.displayName }}</text>
<view class="phone-number">
<view>
<text>电话:</text>
<view v-for="(sitem, sindex) of item.phoneNumbers" :key="sindex">
<text>{
{
sitem.value }}</text
使用uniapp获取手机通讯录和短信
最新推荐文章于 2024-08-08 10:36:31 发布
本文详细介绍了如何利用uniapp框架,结合HTML5的权限申请,实现获取用户手机通讯录和短信的功能。通过示例代码,展示了在uniapp中进行权限请求和数据读取的步骤,帮助开发者了解在移动应用开发中如何处理敏感数据的访问。
摘要由CSDN通过智能技术生成