uniapp自定义网格布局用于选择金额、输入框焦点事件以及点击逻辑实战

avatar
作者
猴君
阅读量:0

请添加图片描述

样式

	<view class="withdraw-section"> 				<text class="section-title">提现金额</text> 				<view class="amount-options"> 					<view v-for="(item, index) in list" :key="index" class="amount-option" 						:class="{selected: specIndex === index}" @click="selectAmount(index, item)"> 						{   { item }}元 					</view> 					<view class="amount-option custom-option" :class="{selected: specIndex === -1 || isEditing}" 						@click="handleCustomClick"> 					<!--  v-if="allowDepositAny" --> 						<view v-if="!isEditing" class="custom-display"> 							{   { customAmount || '自定义' }} 							<uni-icons type="

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!