uni-app 微信小程序 弹出输入框 在安卓手机上点击不了

// userFeedbackHidden
//原因是文本域高度的问题
// 这是有问题的
	 .popup_overlay {
	 	position: fixed;
	 	top: 0%;
	 	left: 0%;
	 	width: 100%;
	 	height: 100%;
	 	background-color: black;
	 	z-index: 1001;
	 	-moz-opacity: 0.8;
	 	opacity: .80;
	 	filter: alpha(opacity=88);
	 }

	 .popup_content {
	 	position: fixed;
	 	top: 50%;
	 	left: 50%;
	 	width: 520upx;
	 	height: 500upx;
	 	margin-left: -270upx;
	 	margin-top: -270upx;
	 	border: 10px solid white;
	 	background-color: white;
	 	z-index: 1002;
	 	overflow: auto;
	 	border-radius: 20upx;
	 }

	 .popup_title {
	 	padding-top: 20upx;
	 	width: 480upx;
	 	text-align: center;
	 	font-size: 32upx;
	 }

	 .popup_textarea_item {
	 	padding-top: 5upx;
	 	height: 240upx;
	 	width: 440upx;
	 	background-color: #F1F1F1;
	 	margin-top: 30upx;
	 	margin-left: 20upx;
	 }

	 .popup_textarea {
	 	width: 410upx;
	 	font-size: 26upx;
	 	margin-left: 20upx;
	 }

	 .popup_button {
	 	color: white;
	 	height: 40px;
	 	line-height: 40px;
	 	font-size: 14px;
	 	margin-top: -30px;
	 	background-color: #19BE6B;
	 	border-radius: 20upx;
	 }

// 这是修改后的
.popup_overlay {
	 
			position: fixed;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: black;
			z-index: 1001;
			-moz-opacity: 0.8;
			opacity: .80;
			filter: alpha(opacity=88);
		}
	 
		.popup_content {
			position: fixed;
			top: 50%;
			left: 50%;
			width: 520upx;
			height: 550upx;
			margin-left: -270upx;
			margin-top: -270upx;
			border: 10px solid white;
			background-color: white;
			z-index: 1002;
			overflow: auto;
			border-radius: 20upx;
		}
	 
		.popup_title {
			padding-top: 20upx;
			width: 480upx;
			text-align: center;
			font-size: 32upx;
		}
	 
		.popup_textarea_item {
			padding-top: 5upx;
			height: 240upx;
			width: 440upx;
			background-color: #F1F1F1;
			margin-top: 30upx;
			margin-left: 20upx;
		}
	 
		.popup_textarea {
			width: 410upx;
			font-size: 26upx;
			margin-left: 20upx;
		}
	 
		.popup_button {
			color: white;
			background-color: #19BE6B;
			border-radius: 20upx;
		}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在 uView-UI 中,uni-app 小程序中的表单输入框是不支持直接进行语音录入的。不过,你可以通过一些额外的操作来实现语音录入的功能。以下是一种可能的实现方式: 1. 在输入框旁边添加一个按钮或图标,用来触发语音录入功能。 2. 绑定按钮的点击事件,当用户点击按钮时,调用微信小程序的语音录入接口或其他语音识别相关的 API。 3. 在语音录入接口的回调函数中,将语音转换为文本,并将文本填充到输入框中。 具体实现步骤如下: 1. 在你的表单输入框组件中,添加一个按钮或图标,用来触发语音录入功能,代码类似下面这样: ```vue <template> <view> <input v-model="inputValue" placeholder="请输入文本" /> <button @click="startVoiceInput">语音输入</button> </view> </template> <script> export default { data() { return { inputValue: '' }; }, methods: { startVoiceInput() { // 调用微信小程序的语音录入接口或其他语音识别相关的 API // 在回调函数中将语音转换为文本,并填充到输入框中 } } }; </script> ``` 2. 在 `startVoiceInput` 方法中,调用微信小程序的语音录入接口或其他语音识别相关的 API。具体的调用方式和参数配置可以参考相关文档或 API 文档。 3. 在语音录入接口的回调函数中,将语音转换为文本,并将文本填充到输入框中。具体的语音转文本操作可能会因使用的语音识别服务而有所不同。你可以根据所选的语音识别服务的文档,了解如何将语音转换为文本,并将其填充到表单输入框中。 请注意,以上步骤仅为一种实现语音录入功能的示例,具体的实现方式可能会根据你使用的语音识别服务和相关 API 的不同而有所差异。你需要根据自己的项目需求和使用的语音识别服务进行相应的操作和调整。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值