statements.ttml 1.54 KB

<!-- 商品信息 -->
<view tt:if="{{hasAddress}}" class="addressC">
    <deliveryInfo id="addressInfo" data="{{addressInfo}}" canSelect="true" bind:changeAddress="otherAddressTapped"></deliveryInfo>  
</view>
<view tt:else class="addressC"> 
    <view class="noAddressContainer">
    <view class="noAddress" bindtap="otherAddressTapped" data-type='normal'>
      <image class="addressIconNew" src="../../images/add@2x.png"></image>
      <text class="addressPlaceholder">新增收货地址</text>
      <image class="addressArrow" src='../../images/arrow@2x.png'></image>
    </view> 
  </view>
</view>

<scroll-view scroll-y style="margin-top: {{listTop}}rpx;" enable-back-to-top="true">
  <view class="split-view"/>
  <product-view id="productInfo" product="{{data.goods_list[0]}}"></product-view>
  <view class="split-view"/>
  <select-view id="deliveryInfo" items="{{data.delivery_way}}" bind:checkboxChange="refreshCompute"/>
  <swichItem id="invoiceItem" item="{{invoicesItem}}" bind:changeSwitch="onChangeSwitch" bind:invoiceIconAction="navigateToInvoice" />
  <!-- <promotionItem id="couponsItem"/> -->
  <view class="split-view"/>
  <view class="amountBox">
      <block tt:for="{{data.promotion_formula_list}}" tt:for-item="amountInfo" tt:key="{{index}}">
          <item-view id="amountItem" item="{{amountInfo}}"/>
      </block>
      <item-view id="realamount" item="{{data.real_amount}}"/>
  </view>
  <!-- <view> -->
  <view class="split-view"/>
  <view class="select-item-pay-button" bindtap="submit">支付宝支付</view>
  <!-- </view> -->
</scroll-view>