UpgradeItem.wxml 2.8 KB
<view class="item {{data.status == 1?'':'padding-bottom'}}" bindtap="jumpDetail">
  <view class="status status-{{data.status}}">{{statusEnum[data.status]}}</view>
  <view class="top flex">
    <view class="icon">
      <gl-image webp src="/equity/{{data.customerInfo.customerSex == 2 ?'woman-default-avatar' : 'default-avatar'}}.png"></gl-image>
    </view>
    <view class="info">
      <view class="name flex">
        {{data.customerInfo.customerName}}
        <block wx:if="{{data.changeType > 0}}">
          <block wx:if="{{data.changeType == 1}}">
            <view class="tips new">New</view>
          </block>
          <block wx:else>
            <view class="tips">更新</view>
          </block>
        </block>
      </view>
      <view class="phone">{{data.customerInfo.customerPhone}}</view>
    </view>
  </view>
  <view class="info-box">
    <block wx:for="{{infoObject}}" wx:key="index">
      <block wx:if="{{data.customerInfo[item.key]}}">
        <view class="info-item flex">
          <view class="label">{{item.label}}</view>
          <view class="value">
            <block wx:if="{{item.key == 'carSeriesName'}}">
              {{data.customerInfo.carBrand}}-{{data.customerInfo.carChildsBrandName}}-{{data.customerInfo.carSeriesName}}
            </block>
            <block wx:else>
              {{data.customerInfo[item.key]}}
            </block>
          </view>
        </view>
      </block>
    </block>
    <block wx:for="{{sceneTypeStatusMap}}" wx:key="index">
      <view class="info-item flex">
        <view class="label">{{item.label}}</view>
        <view class="value">{{statusEnum[data.sceneTypeStatusMap[item.key]]}}</view>
      </view>
    </block>
  </view>
  <block wx:if="{{data.boutiqueOrders.length}}">
    <block wx:for="{{data.boutiqueOrders}}" wx:key="index">
      <view class="package-box">
        <view class="package-title flex">
          订单{{index + 1}}
          <view class="order-status order-status-{{item.status}}">{{status[item.status]}}</view>
        </view>
        <goods-list list="{{item.subOrderList}}" goodsNameKey="upgradeGoodsName" goodsPriceKey="totalPrice"></goods-list>
        <view class="package-info">
          <block wx:for="{{orderObj}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
            <block wx:if="{{item[i.key]}}">
              <view class="package-item flex">
                <view class="label">{{i.label}}</view>
                <view class="value {{i.key == 'totalPrice'?'price':''}}">
                  {{i.unit||''}}{{item[i.key] || ''}}
                </view>
              </view>
            </block>
          </block>
        </view>
      </view>
    </block>
  </block>
  <block wx:if="{{data.status == 1}}">
    <view class="bottom flex">
      <view class="btn flex" catchtap="jump">数字报价单</view>
    </view>
  </block>
</view>