领导一个头脑风暴需要在原先的循环外添加一个一模一样的循环数据 现在就想在菜的第一层循环的index 从1开始 这样就可以hidden
<view class="right">
<!--套餐循环开始-->
<view class="list-class-box" hidden="{{ProClassShow[0]}}" data-No="{{ProClassShow[0]}}">
<!--第二层循环开始-->
<view class="list-box" wx:for="{{PackageList}}" wx:for-index="index" wx:key="id">
<view class="list-box-img"><image lazy-load="true" src="{{ImageUrl+item.PackageImg}}" ></image></view>
<view class="list-box-title">{{item.PackageName}}</view>
<view class="list-box-price"><text class="small">¥</text>{{item.PackagePrice}}</view>
<view class="list-box-count">
<button bindtap='AddCar' data-ShopNo="{{item.id}}" data-parent='{{index}}' data-cindex="{{index}}" data-proid="{{item.id}}" class='jia'>+</button>
</view>
</view>
<!--第二层循环结束-->
</view>
<!--套餐循环结束-->
<!--菜第一层循环开始-->
<view class="list-class-box" hidden="{{ProClassShow[index]}}" wx:key="id" data-No="{{ProClassShow[index]}}" wx:for-index="index+1" wx:for="{{ProClasslist}}">
<!--第二层循环开始-->
<view class="list-box" wx:for="{{item.list}}" wx:for-index="childindex" wx:for-item="Table" wx:key="id">
<view class="list-box-img"><image lazy-load="true" src="{{ImageUrl+Table.ImgFile}}" ></image></view>
<view class="list-box-title">{{Table.ShopName}}</view>
<view class="list-box-price" hidden="{{UserFlag==0?false:true}}"><text class="small">¥</text>{{Table.Price}}</view>
<view class="list-box-price" hidden="{{UserFlag==0?true:false}}"><text class="small">¥</text>{{Table.Aprice}}<text class="del">¥{{Table.Price}}</text></view>
<view class="list-box-count">
<button bindtap='AddCar' data-ShopNo="{{Table.ShopNo}}" data-parent='{{index}}' data-cindex="{{childindex}}" data-proid="{{Table.ShopNo}}" class='jia'>+</button>
<view class="num" hidden="{{Table.buynum==0?true:false}}" id="Num-{{Table.ShopNo}}" data-proindex="{{Table.ShopNo}}">{{Table.buynum}}</view>
<button bindtap='SubCar' hidden="{{Table.buynum==0?true:false}}" data-parent='{{index}}' data-cindex="{{childindex}}" data-ShopNo="{{Table.ShopNo}}" data-proid="{{Table.ShopNo}}" class='jian'>-</button>
</view>
</view>
<!--第二层循环结束-->
</view>
<!--循环结束-->
</view>
自己+1