钉钉小程序三级联动
上次发布的钉钉小程序三级联动,在真机上测试不管用,自己写了个组件
1.select.axml
<view class="scroll-item">
<view class="xuan_top">
<view a:for="{
{ list_type }}" data-city="{
{item.num}}" class="{
{ xuan == index ? 'active' : '' }}" a:if="{
{ xuan >= index }}" data-type = "{
{index}}" onTap="nav_typ">
{
{item.text}}
</view>
</view>
<scroll-view scroll-y="{
{true}}" class="xuan_bottom" scroll-top="{
{ backTop }}">
<view class="view" a:for="{
{list1}}" onTap="citys" data-text="{
{item.name}}" data-index="{
{ index }}">{
{item.name}}</view>
</scroll-view>
</view>
2.select.acss
.scroll-item{