<!--pages/operation/index.wxml-->
<view>
    <view class='exchange'>
      <image class='img' src='./../../static/images/bannerbg.png' mode="widthFix"></image>
      <view class='exchangeBox'>
        <view class='section'>
          <view class='list-item'>
            <text>会员姓名(昵称):</text>
            <text>{{paramData.name!='undefined'?paramData.name:paramData.nickName!='undefined'?paramData.nickName:''}}</text>
          </view>
          <view class='list-item'>
            <text>会员等级:</text>
            <text>{{paramData.levelName!='undefined'?paramData.levelName:''}}</text>
          </view>
          <view class='list-item'>
            <text>手机号码:</text>
            <text>{{paramData.phone}}</text>
          </view>
        </view>
        <view class='money'>
          <view class='inpBox' tt:if="{{isAdmin=='1'}}">
            <view class='foot footer2' >
              <text>消费门店</text>
              <view class='select' bindtap='checkMerchant'>{{paramData.merchantName?paramData.merchantName:'点击选择消费门店'}}</view>
            </view>
            <view class='border1'></view>
            <view class='foot footer1' >
              <text>消费金额</text>
              <input placeholder='请先选择消费门店' style='width:500rpx;' tt:if="{{!paramData.merchantType}}" disabled type='number' bindinput="getPrice"></input>
              <input placeholder='请输入' tt:if="{{paramData.merchantType}}" type='number' bindinput="getPrice"></input>
              <text tt:if="{{paramData.merchantType}}">元</text>
            </view>
          </view>
          <view class='footer' bindtap='toDetail' tt:if="{{isAdmin!='1'}}">
            <text>消费金额</text>
            <input placeholder='请输入' type='number' bindinput="getPrice"></input>元
          </view>
          <view tt:if='{{receiptUrl!=null}}' class='up-img'>
            <image src='{{receiptUrl}}' mode="widthFix"></image>
          </view>
          <view class='labelBox' tt:if="{{businessId == 3}}">
            <view class='title'>
              <view class="{{flag=='cloth'?'couponsL':'couponsR'}}"  bindtap='getCloth'>服装尺码</view>
              <view class="{{flag=='shoes'?'couponsL':'couponsR'}}" bindtap='getShoes'>鞋尺码</view>
            </view>
            <view class='content'>
              <view tt:for='{{clothList}}' class="cloth {{selectTag==item.id?'couponsL':'couponsR'}}" tt:key='{{id}}'  tt:if="{{flag=='cloth'}}"  bindtap='checkTags' id='{{item.id}}'  >
                {{item.name}}
              </view>
              <view tt:for='{{shoesList}}' class="shoes {{selectTag1==item.id?'couponsL':'couponsR'}}" tt:key='{{id}}' tt:if="{{flag=='shoes'}}" bindtap='checkTags' id='{{item.id}}'>
                {{item.name}}
              </view>
            </view>
          </view>
          <view class='camera' bindtap='uploadImg'>
            <image src='./../../static/images/camera.png' mode="widthFix"></image>
            <text>拍摄小票凭证</text>
          </view>
          <view class='integral'>本次积分 <text class='integralNum'>{{creditNum}}</text> </view>
          <button bindtap='{{submitAble?"submitForm":""}}'>提交</button>
        </view>
      </view>
    </view>
  </view>