1 |
- <view data-event-opts="{{[['tap',[['onclick',['$event']]]]]}}" class="d-inline-block tm-switch data-v-454d679f" bindtap="__e"><view class="tm-switch-wk relative data-v-454d679f" style="{{'width:'+(width+'rpx')+';'+('height:'+(height+4+'rpx')+';')}}"><view class="{{['tm-switch-bg','','round-l-24','round-r-24','flex-between','data-v-454d679f',bgColorCusjs,loaddingState?'opacity-7':'']}}"><view class="text-size-xs tm-switch-txt text-align-center flex-center data-v-454d679f" style="width:50%;"><text class="data-v-454d679f">{{text[0]?text[0]:''}}</text></view><view class="text-size-xs tm-switch-txt text-align-center flex-center data-v-454d679f" style="width:50%;"><text class="pr-8 data-v-454d679f">{{text[1]?text[1]:''}}</text></view></view><view class="{{['tm-switch-wk-bar','absolute','round-24','white','','flex-center','','data-v-454d679f',changValue?'shadow-'+color+'-10':'',changValue?'on aniOn':'aniOff']}}" style="{{'transform:'+(changValue?'translateX('+(width-(width/2+4))+'rpx)':'translateX(2rpx)')+';'+('width:'+(width/2-4+'rpx')+';')+('height:'+(height-4+'rpx')+';')}}"><block wx:if="{{loaddingState}}"><text class="{{['iconfont','icon-loading','data-v-454d679f',loaddingState?'load':'','text-'+color_tmeme]}}"></text></block></view></view></view>
|