改变小程序自带的radio的样式
改变自定义的radio的大小
lradio{ transform:scale(0.7); }
获取radio改变时的value值
<radio-group class="courier" bindchange="radioChange">
<radio value="wechat" checked="true" color="red" class="radio-pay"/>
<radio value="balance" color="red" class="radio-pay"/>
</radio-group>
给radio添加bindchange事件
radioChange:function(e){
console.log(e.detail.value);
if (e.detail.value == "urgent"){
this.setData({
urgent:true,
common:false
})
}
}
e.detail.value可以获取到radio的value值
在js中这样获取
<view class="print-instructions" wx:if="{{bounced}}" catchtouchmove="ture" >
<view class="bounced" catchtouchmove="ture" >
<view class="bounced-titl">冲印须知</view>
<view class="txt">1.当天15:00 前的订单当天发货,15点后的订单次日发货</view>
<view class="txt">2.即日起根据国家的相关对顶,冲印订单收件人须填写真实名字,不可使用:x小姐,x先生,英文名等,否则快递将拒绝发货~</view>
<view class="bounced-btn" bindtap="closeBounced">我知道了</view>
</view>
</view>
小程序中禁止弹框下面的页面内容滑动在弹框上加上catchtouchmove=“ture” 即可,在模拟器无效,真机有效
``