收藏
回答

bindtap点击无效?

wxml:

<view class='select-area'>

<view class='name'>高低错位view>

<radio-group class="select-gather" bindchange="modifyInfo" id="gatherType">

<label class='select-option'><radio value='1'>radio><view class="{{gatherType==1?'option-active':''}}">标准view>label>

<label class='select-option'><radio value='2'>radio><view class="{{gatherType==2?'option-active':''}}">左高view>label>

<label class='select-option'><radio value='3'>radio><view class="{{gatherType==3?'option-active':''}}">右高view>label>

radio-group>

view>

JS:

modifyInfo(e) {

// //console.log(e.target.id)

// //console.log(e.detail.value)

var key = e.target.id

var data = {}

data[key] = e.detail.value

this.setData(data)

wx.setStorageSync(e.target.id, e.detail.value)

this.infoType()

wx.setStorageSync('saveinfo', true)

},

vivo xplay6 点击无效

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签