wpfw_ewei_wxapp/pages/diy/template/tpl_menu.wxml
2023-02-26 08:10:18 +08:00

23 lines
1.8 KiB
Plaintext

<view class="fui-icon-group noborder col-{{diyitem.style.rownum}}" style="background:{{diyitem.style.bgd==0||!diyitem.style.bgd?diyitem.style.background:'transparent'}}" wx:if="{{diyitem.style.showtype=='0'}}">
<view bindtap="navigate" class="fui-icon-col external" data-appid="{{childitem.appid}}" data-appurl="{{childitem.appurl}}" data-phone="{{childitem.phone}}" data-url="{{childitem.linkurl}}" wx:for="{{diyitem.data}}" wx:for-index="childid" wx:for-item="childitem" wx:key="childid">
<view class="icon">
<image class="{{diyitem.style.navstyle}}" src="{{childitem.imgurl}}"></image>
</view>
<view class="text" style="color:{{childitem.color}}">
{{childitem.text}}
</view>
</view>
</view>
<swiper autoplay="{{autoplay}}" class="menu" duration="{{duration}}" indicatorDots="{{diyitem.style.showdot==1?true:false}}" interval="{{interval}}" style="background:{{diyitem.style.bgd==0||!diyitem.style.bgd?diyitem.style.background:'transparent'}};padding:20rpx 0;height:{{diyitem.data_line*160+diyitem.data_line*30}}rpx" wx:if="{{diyitem.style.showtype=='1'}}">
<swiper-item class="col-{{diyitem.style.rownum}}" wx:for="{{diyitem.data_temp}}" wx:for-index="childid" wx:for-item="childitem" wx:key="childid">
<view bindtap="navigate" class="fui-icon-col external" data-appid="{{menu_item.appid}}" data-appurl="{{menu_item.appurl}}" data-phone="{{menu_item.phone}}" data-url="{{menu_item.linkurl}}" wx:for="{{childitem}}" wx:for-index="menu_index" wx:for-item="menu_item" wx:key="menu_index">
<view class="icon">
<image class="{{diyitem.style.navstyle}}" src="{{menu_item.imgurl}}"></image>
</view>
<view class="text" style="color:{{menu_item.color}}">
{{menu_item.text}}
</view>
</view>
</swiper-item>
</swiper>