<!--packageF/storeManagement/releaseStoreGoods/releaseStoreGoods.wxml-->

<view class="sticky">
<van-tabs active="{{active}}" class="tabs" bindchange="changeTabs">
  <van-tab name="0" title="基本信息"></van-tab>
  <van-tab name="1" title="权限"></van-tab>
  <van-tab name="2" title="折扣"></van-tab>
</van-tabs>
</view>

<view wx:if="{{isFinished}}">
  <view hidden="{{active!=0}}" >
    <base-set class="base-set" hidden="{{active!=0}}"  goodsInfo="{{goodsInfo}}"
        goodsId="{{goodsId}}"
        categoryMenus="{{categoryMenus}}"
        dispatchTemplates="{{dispatchTemplates}}"
        dispatchTypes="{{dispatchTypes}}"></base-set>
  </view>

  <view hidden="{{active!=1}}">
    <permissions class="permissions"
        levelList="{{levelList}}"
        groupsList="{{groupsList}}"
        widgetsInfo="{{widgetsInfo}}"
      ></permissions>
  </view>

  <view hidden="{{active!=2}}">
    <discount
        class="discount"
        levelList="{{discountValues}}"
        widgetsInfo="{{widgetsInfo}}"
      ></discount>
  </view>
 
</view>

<view class="seat"></view>
<view class="btn-confirm" bindtap="releaseGoods">{{goodsId? '确认修改':'确认发布'}}</view>