收藏
回答

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 点击无效

最后一次编辑于  08-15  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

1 个回答

问题标签