switchBlock.wxml 445 Bytes
<!-- components/switchBlock/switchBlock.wxml -->
<view class="switch-box {{ disable?'':'disabled' }}">
	<view class="block text-center {{ switchStatus==0?'':'right' }}" />
	<view class="male text-center {{ switchStatus==0?'active':'' }}" bindtap="switchChange" data-status="0">{{switchName.left}}</view>
	<view class="woman text-center {{ switchStatus==1?'active':'' }}" bindtap="switchChange" data-status="1">{{switchName.right}}</view>
</view>