<!--pages/mine/shop/mineshop.wxml-->
<cu-custom isBack="{{true}}">
  <view slot="content">我的店铺</view>
</cu-custom>
<scroll-view refresher-enabled="true" refresher-threshold="{{50}}" refresher-background="#fff"
  bindrefresherrefresh="refreshView" refresher-triggered="{{refresherTriggered}}">
  <van-swipe-cell style="margin:5rpx;" id="swipe-item-{{index}}" right-width="{{ 175 }}" wx:for="{{mineShopList}}"
    wx:key="index" bind:open="onOpen" bind:close="onClose" async-close="true">
    <view class="cu-list menu-avatar solid" style="margin-left:10rpx;margin-right:10rpx;">
      <view class="cu-item">
        <view class="cu-avatar radius xl" style="background-image:url({{baseImageUrl+item.shopLogo}});">
        </view>
        <view class="content" style="width:100%;" bindtap="showShopDetail" data-item="{{item}}">
          <view class="text-depblack">
            <text class="text-cut">{{item.shopName}}</text>
          </view>
          <view class="text-gray text-sm flex">
            <text class="text-cut">{{item.shopSummary}}</text>
          </view>
          <view class="line-solid-gray"></view>
          <view class="bottom-action margin-top-ls">
            <view class="text-grey text-df">{{item.openDate}}</view>
            <view class="cu-tag lg round {{item.isCertification == 0 ? 'bg-red' :'bg-gray'}}" bindtap="doAuth"
              data-item="{{item}}">
              {{item.isCertification == 0 ? '未认证' :'已认证'}}</view>
          </view>
        </view>
      </view>
    </view>
    <!-- 功能按钮 -->
    <view slot="right">
      <view class="flex flex-wrap">
        <view class=" bg-red text-center light" style="padding:60rpx" data-menu="del" data-item="{{item}}"
          bindtap="doDelItem">
          <view class="text-lg">删除</view>
        </view>
        <view class="bg-blue text-center light" style="padding:60rpx" data-menu="edit" data-item="{{item}}"
          bindtap="doEditItem">
          <view class="text-lg">编辑</view>
        </view>
      </view>
    </view>
    <view>
    </view>
  </van-swipe-cell>
  <!-- 添加按钮 -->
  <view class="cu-card bg-white padding-xs margin-left-sm margin-right-sm">
    <view class="cu-item" bindtap="toAddShop">
      <view class="cardTitle">
        <text class="cuIcon-roundaddfill text-gray"></text>
      </view>
    </view>
  </view>
</scroll-view>