3 回复
-----wxml-----
<picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}" name="region">
<text class='tx1' wx:if="{{!hide}}">省,市,区</text><text wx:if="{{hide}}">{{region[0]}},{{region[1]}},{{region[2]}}</text>
</picker>
----js----
bindRegionChange: function (e) {
var hide = this.data.hide;
hide = true;
this.setData({
region: e.detail.value,
hide: hide
})
},
—手机—
iphone6 iphone6s