<!--pages/mine/manage/shopposition.wxml-->
<cu-custom isBack="{{true}}">
  <view slot="content">店铺职位</view>
</cu-custom>
<scroll-view refresher-enabled="true" refresher-threshold="{{50}}" refresher-background="#fff"
  bindrefresherrefresh="dorefreshList" refresher-triggered="{{isRefreshing}}">
  <view class="cu-list menu margin-top-sm" style="margin-left:10rpx;margin-right:10rpx;">
    <view class="cu-item radius" wx:for="{{positionList}}" wx:key="index">
      <text class="cu-tag bg-blue round margin-right-xs">{{item.positionOrder}}</text>
      <view class="content padding-tb-sm">
        <view>
          <view class="text-black">{{item.positionName}}</view>
        </view>
        <view class="text-gray text-sm">
          <text class="cuIcon-infofill margin-right-xs"></text>
          {{item.positionSummary.length>0 ? item.positionSummary :'未录入' }}
        </view>
      </view>
      <view class="action">
        <view class="cu-btn round bg-red shadow" bindtap="doDelPositon" data-item="{{item}}">
          删除
        </view>
      </view>
    </view>
  </view>

  <!-- 添加按钮 -->
  <view class="cu-card bg-white padding-xs margin-left-sm margin-right-sm margin-top-sm radius">
    <view class="cu-item bg-img  bg-gradual-gray" bindtap="toAddPosition">
      <view class="cardTitle">
        <text class="cuIcon-add text-white"></text>
      </view>
    </view>
  </view>
</scroll-view>