微信小程序自定义tab切换(可滑动)
自定义tab切换(可滑动)
<!--components/warn/warn.wxml-->
<view class="menu">
<navigator wx:for="{
{shouye}}" wx:key="index" bindtap="change" class="{
{page==index?'font-white':'font-black'}}" data-pageid="{
{index}}">{
{
item}}</navigator>
<!-- <view class="order-desc">按排名升序</view> -->
</view>
<swiper current='{
{page}}' bindchange="changepage">
<swiper-item wx:for="{
{shouye}}" wx:key="index">
<view class="view1">
<view class="table">
<view class="tr">
<view class="th">产品编号</view>
<view class="th">当前库存</view>
<view class="th">按时间倒序</view>
</view>
<block wx:for="{
{saleData}}" wx:key="index">
<view class="tr bg-f3f4f4">
<view class="td">{
{
item.prodCode}}</view>