<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> -->
<navbar back home text="我的特权" background='#FD832D' color="#fff"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view  class='codeBox'>

  <view class='code' >
    <view class="canWrap">
      <canvas canvas-id="mycanvas2" style="width: 1200rpx; height: 800rpx;" />
    </view>
    <image src="{{tempFilePath}}" mode="aspectFit" />
    <view class='memCode'><text>会员码：</text><text class="memNum">{{memberId}}</text></view> 
    <view class='con'>
      <view class="title">会员等级为<text class='level'>[{{level}}]</text>对应门店的优惠折扣</view>
    </view>
  </view>
  <view class='cards clearfix'>
    <view class='card' wx:for="{{discountMerchantList}}" wx:key="index" wx:if="{{discountMerchantList.length>0}}">
      <view class='txt01'>
        <view class="triangle">
          <text><i>></i></text>
        </view>
        <view class='discount'>
          <text style='display:inline-block;'>{{item.discount/10}}</text>折</view>
        <text class='tit'>{{item.merchantName}}</text>
        <view class='clearfix footer'>
          <view class='fl' style='margin-top:-30rpx;margin-left:10rpx;'>
            <view class='building' wx:for="{{item.shopVoList}}" wx:key="index" wx:for-item="list">
              {{list.buildingName}}{{list.floorName}}
            </view>
          </view>
          <view class='fr' wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}'>
            <image class="fr" src='{{teliconUrl}}' mode='widthFix'></image>
          </view>
        </view>
      </view>
    </view>
    <view class='none' wx:if="{{discountMerchantList.length==0}}">
      此等级暂未开放折扣，敬请期待！
    </view>
  </view>
</view>
