uniapp 的radio及静止禁止鼠标和触摸对底层页面的滚动

未选择

scroll_view下面写
white-space: nowrap;
height: 700rpx;

fx_k类样式下面写
display: inline-block;
border-bottom: 2rpx solid #F4F4F4;
padding: 20rpx 24rpx;
color: #333333;
font-size: 28rpx;
display: flex;
justify-content: space-between;
align-items: center;

<!-- @touchmove.prevent.stop @mousewheel.prevent 这是禁止鼠标和触摸对底层页面的滚动用的复制我注释的这个
,不用的下面那个知识禁止触摸-->
<view class="res_tk" v-if="r_ly" @touchmove.stop.prevent="">
	<view class="tk_bs">
		<view class="bts">
			<view class="bt_h1">取消订单</view>
			<view class="Xx_xxi" @click="Xx_xxi">
				<view class="nei_x1"></view>
				<view class="nei_x2"></view>
			</view>
		</view>
		这个可一滑动你想要用的内容 scroll-view,不过你的设置高度 如fx_k这个类
		<scroll-view class="scroll_view" scroll-y="true"  >
			<view class="fx_k" v-for="(item,index) in reasons" :Key="item.id" @click="re_son(index)">
				{{item.reason}}
				<radio :value="item.fz_dx" :checked="index === current " />
				<!-- index === current -->
			</view>
		</scroll-view>
		<view class="bt_qd" @click="getCancelOrder">确定</view>
	</view>
</view>
	
data里面
reasons: [], //取消订单按钮传的参
current: null,//默认radio 未选择
fz_dx: '',
fz_id: 0,

methods里面
re_son: function(index) {
		let ta = this;
			console.log(index)
			if (index=='') {
				ta.current=null //默认radio 未选择
			}else{
				ta.current = index
				console.log(ta.reasons[index].reason)
				ta.fz_dx = ta.reasons[index].reason
				ta.fz_id = ta.reasons[index].id
			}
},
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

呱嗨喵

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值