statements.ttml 15 KB

<view tt:if="{{hasAddress}}">
<view class="addressC">
   <view class="address" bindtap="otherAddressTapped">
      <image class="addressIcon" src="{{addressIcon}}"></image>
      <view class="addressDetailView">
        <view class="addressNameView">
              <text class="addressName">{{addressName}}</text>
              <text class="addressTel">{{userTel}}</text>
        </view> 
        <view class="addressText">
              <text class="currentAddress" style=" word-break: break-all">{{currentAddress}}</text>
        </view> 
      </view>
       <view class="currentAddressArrow">
             <image class="arrow" src="{{arrowIcon_m}}"></image>
        </view> 
   </view> 
   <image class="lineIcon" src="{{lineIcon}}">
   </image>
  </view> 
</view>
<view tt:else>  
  <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/disclosure-arrow_m@2x.png'></image>
    </view> 
    <!-- <view tt:if="{{false}}" class="noAddress" bindtap="otherAddressTapped" data-type='wechat'>
      <image class="addressIconNew" src="../../images/weixin@2x.png"></image>
      <text class="addressPlaceholder">一键获取微信地址</text>
      <image class="addressArrow" src='../../images/disclosure-arrow_m@2x.png'></image>
    </view>  -->
  </view>
 </view>
<scroll-view scroll-y style="margin-top: {{listTop}}rpx;" enable-back-to-top="true">
 <block tt:if="{{isJit}}">
  <view class="space">
  </view>
  <view class="tip">
    <text class="tipText">{{package_title_detail}}</text>
  </view>
 </block>

 <view class="space">
 </view>
 <block tt:for="{{goods_list}}" tt:key="unique">
  <view class="product">
      <view class="productImageView">
        <image class="productImage" src="{{item.goods_images}}">
        </image>
        <block tt:if="{{item.goods_type == 'price_gift'}}">
          <image class="productImageBottom" src="{{productImageBottomImage_price_gift}}">
          </image>
        </block>
        <block tt:elif="{{item.goods_type == 'gift'}}">
          <image class="productImageBottom" src="{{productImageBottomImage_gift}}">
          </image>
        </block>
        <block tt:else>
        </block> 
      </view>
      <view class="productDetail">
          <view class="productName">
            <text class="name">{{item.product_name}}</text>
          </view>
          <view class="productColor">
            <text class="color">{{item.sale_attr_desc.skc_attr}}  {{item.sale_attr_desc.sku_attr?item.sale_attr_desc.sku_attr:''}}</text>
          </view>

          <block tt:if="{{item.LRE}}">   
            <view class="order-tipView">
              <image class="icons" src="../../images/question-ic@3x.png">
              </image>
              <text class="order-tip" >不支持7天无理由退换货</text>
            </view>
          </block>  
          <block tt:elif="{{item.L15DE}}">
            <view class="order-tipView">
              <image class="icons" src="../../images/question-ic@3x.png">
              </image>
              <text class="order-tip" >不支持15天无理由换货</text>
            </view>
          </block>
      </view>
      <view class="productLeft">
        <block tt:if="{{item.goods_type == 'price_gift' || item.goods_type == 'gift'}}">
          <text class="productPrice">¥ {{item.last_price}}</text>
        </block>
        <block tt:else>
          <text class="productPrice">¥ {{item.sales_price}}</text>
        </block>
          <!-- <view style='flex:1;background-color:transparent'></view> -->
          <text class="productNumText" style='font-size:24rpx;margin-top:27.2rpx'>x {{item.buy_number}}</text>

          <block tt:if="{{item.RPCU}}">
            <text style='margin-top:6rpx;color:#D0021B;font-size:24rpx;text-align:right;margin-bottom:8rpx'>可用红包</text>
          </block>
      </view>  
  </view>
  <block tt:if="{{item.is_deposit_advance === 'Y' || item.is_limittime_advance === 'Y'}}">
    <view class="finalPaymentTime">
      <text class="color">尾款支付时间: {{item.expect_arrival_time}}</text>
    </view>
  </block>
  </block>

  <!--为定金预售所加 -->
  <block tt:if="{{is_deposit_advance}}">
    <view style='width:100%;height:88rpx;display:flex;flex-direction:row;align-items:center;border-top:1rpx solid #e0e0e0'>
      <view style='margin-left:30rpx;color:#b0b0b0;font-size:28rpx'>尾款支付时间:</view>
      <view style='color:#000000;font-size:28rpx'></view>
    </view>
  </block>

 <view class="space">
 </view>
 <view class="cell yohoCodeCell" bindtap="deliveryExpandSelectDeliveryAction">
    <view class="cellNameText">{{deliveryTitle}}</view>
      <block tt:for="{{delivery_way}}" tt:key="unique">
        <block tt:if="{{item.default == 'Y'}}">
           <text class="cellDetailText">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
        </block>
      </block>
      <block tt:if="{{deliveryExpand}}">
         <image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
      </block>
      <block tt:else>
          <image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
      </block>
 </view>
 <view tt:if="{{deliveryExpand}}">
    <block tt:for="{{delivery_way}}" tt:key="unique">
        <view class="singleSelectCell" data-name="{{index}}" bindtap="selectDeliveryAction">
          <text class="singleSelectCellTitle"data-name="{{index}}" bindtap="selectDeliveryAction">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
          <block tt:if="{{item.default == 'Y'}}">
             <image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryAction"></image>
          </block>
          <block tt:else>
              <image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton"    bindtap="selectDeliveryAction"></image>
          </block>
        </view>
    </block>
 </view>
 <!-- <view class="cell" bindtap="expandSelectDeliveryTimeAction">
    <view class="cellNameText">{{deliveryTime}}</view>
      <block tt:for="{{delivery_time}}" tt:key="unique">
        <block tt:if="{{item.default == 'Y'}}">
           <text class="cellDetailText">{{item.delivery_time_string}}</text>
        </block>
      </block>
      <block tt:if="{{deliveryTimeExpand}}">
         <image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
      </block>
      <block tt:else>
          <image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
      </block>
 </view>
 <view tt:if="{{deliveryTimeExpand}}">
    <block tt:for="{{delivery_time}}" tt:key="unique">
        <view class="singleSelectCell" data-name="{{index}}" bindtap="selectDeliveryTimeAction">
          <text class="singleSelectCellTitle"data-name="{{index}}" bindtap="selectDeliveryTimeAction">{{item.delivery_time_string}}</text>
          <block tt:if="{{item.default == 'Y'}}">
             <image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryTimeAction"></image>
          </block>
          <block tt:else>
              <image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton"    bindtap="selectDeliveryTimeAction"></image>
          </block>
        </view>
    </block>
 </view> -->
<block tt:if="{{goods_list[0].is_deposit_advance === 'Y' || goods_list[0].is_limittime_advance === 'Y'}}">
  <block tt:for="{{textArray}}" >
    <view class="yohoCodeCellNone">
      <text class="yohoCodeCellName" style="color: #b0b0b0;">{{item}}</text>
      <text class="yohoCodeCellDetailText">支付尾款时可用</text>
    </view>
  </block>
</block>
<block tt:else>
  <!--红包 红包 红包-->
  <block tt:if="{{isShowRedPac}}">
    <view class='yohoCodeCell' style='flex-direction:row'>
      <text class="yohoCodeCellName">{{redPac}}</text>
      <text class="yohoCodeCellDetailText">{{redReduction}}</text>
      <image src="{{invoiceIcon}}" 
              style='margin-left:5rpx;margin-right:0rpx'
      class="yohoCodeCellArrowIcon" bindtap="yohoRedCellArrowIconAction"></image>
      <block tt:if="{{flase}}">
        <view class='use-redpac-price'>{{redStrUsedNum}}</view>
      </block>
      <block tt:else>
        <view style='flex:1;background-color:transparent'></view>
      </block>
      <view class='yohoRedCellSwitchView' style='margin-right:30rpx'>
          <switch checked="{{isRedPacEnable}}" class="yohoCodeCellSwitch" bindchange="switch2ChangeForRedPac" disabled = "{{isSwitchRedPac}}"/>
        </view>
    </view>
</block>

 <block tt:if="{{from_page_name != 'groupPurchaseDetail'}}">
   <block tt:if="{{isMinappLimit}}">
     <view class="cell">
       <view class="cellNameText">优惠券</view>
       <text class="cellDetailText grayText">该商品不可使用优惠券</text>
       <image src="../../images/disclosure-arrow_m@2x.png" class="arrowIcon_m"></image>
     </view>
   </block>
   <block tt:else>
    <view class="cell yohoCodeCell" bindtap="yohoCouponAction">
      <view class="cellNameText" style='width'>
        {{yohoCoupon}}            
      </view>
      <block tt:if="{{coupon_count !== 0}}">
        <block tt:if="{{select_yoho_coupon_code_count !== 0}}">
          <text class="yohoCodeCellDetailText">已选{{select_yoho_coupon_code_count}}张</text>
        </block>
        <block tt:else>
          <text class="yohoCodeCellDetailText">{{usable_couponsCount}}张可用,已推荐{{coupon_count}}张</text>
        </block>
      </block>
      <block tt:else>
      <text class="yohoCodeCellDetailText">{{usable_couponsCount}}张可用</text>
      </block>
      <view class="arrowIconEnlarge">
        <image src="{{invoiceIcon}}" class="arrowIcon" catchtap="yohoCouponTipAction"></image>
      </view>
      <block tt:if="{{hasSelectYohoCouponCode}}">
        <text class="cellDetailText" style="flex-grow: 1;">已抵用 ¥{{yohoCouponMomey}}</text>
      </block>
      <block tt:else>
        <text class="cellDetailText" style="flex-grow: 1;">未使用</text>
      </block>
      <image src="{{arrowIcon_m}}" class="arrowIcon_m"></image>
  </view>
   </block>
  <view class="yohoCodeCell">
      <text class="yohoCodeCellName">{{yohoCode}}</text>
      <block tt:if="{{needYohoCode && updateYohoCoin}}">
        <text class="yohoCodeCellDetailText">已抵¥{{use_yoho_coin}}</text>
      </block>
      <block tt:else>
        <block tt:if="{{!isSwitchYohoCoin}}"><text class="yohoCodeCellDetailText">不满足有货币使用条件</text></block>
        <block tt:elif="{{total_yoho_coin_num >= 100}}">
          <text class="yohoCodeCellDetailText">可抵¥{{yoho_coin}}</text>
        </block>
        <block tt:else>
            <text class="yohoCodeCellDetailText">共{{total_yoho_coin_num}}个有货币,满100可用!</text>
        </block>
      </block>
      <image src="{{invoiceIcon}}" class="yohoCodeCellArrowIcon" bindtap="yohoCodeCellArrowIconAction"></image>
      
      <view class='yohoCodeCellSwitchView'>
        <switch checked="{{needYohoCode}}" class="yohoCodeCellSwitch" bindchange="switch2ChangeForYohoCode" disabled = "{{!isSwitchYohoCoin}}"/>
      </view>
  </view>
</block>

 <view class="cell yohoCodeCell">
    <view class="cellNameText">{{invoice}}</view>
    <switch checked="{{needInvoice}}" class="switch" bindchange="switch2Change"/>
 </view>
 <view class="invoiceCell" style= "display: {{needInvoice?'':'none'}};"bindtap="invoiceIconAction">
        <text class="invoiceCellName">{{invoiceDetailTitle}}</text>
        <block tt:if="{{!invoiceData}}">
          <text class="invoiceCellDetailText">{{invoiceDetail}}</text>
        </block>
        <block tt:elif="{{invoiceData.personal}}">
          <text class="invoiceCellDetailText">电子发票-{{invoiceData.personName}}</text>
        </block>
        <block tt:else>
          <text class="invoiceCellDetailText">电子发票-{{invoiceData.companyName}}</text>
        </block>

        
        <view class="invoiceCellArrowView">
          <image src="{{arrowIcon_m}}" class="invoiceCellArrowIcon"></image>
        </view>
</view>
</block>
<view class="space">
</view>
<view class="addressBottomSpace">
</view> 
 <block tt:for="{{promotion_formula_list}}" tt:key="unique">
  <block tt:if="{{item.level === 1}}"> 
    <view class="paymentDetailCell">
      <text class="title">{{item.promotion}}</text>
      <text class="detail1">{{item.promotion_amount}}</text>
    </view>
  </block>
  <block tt:elif="{{item.level === 2}}"> 
    <view class="paymentDetailCell">
      <text class="titleLevel2">{{item.promotion}}</text>
      <text class="detail1Level2">{{item.promotion_amount}}</text>
    </view>
  </block>
 </block>
 <block tt:if="{{goods_list[0].is_deposit_advance === 'Y' || goods_list[0].is_limittime_advance === 'Y'}}">
  <!-- <view class="finalPaymentMoneyCell">
    <view class="finalPaymentMoney">
      <text class="title">{{finalPayment}}</text>
      <text class="detail2">¥{{order_tail_pay_amount}}</text>
    </view>  
    <view class="notifyPhone">
      <text>尾款支付通知号码</text>
      <input adjust-position="true" class="inputStyle" value="{{notifyInputPhone}}" bindinput="inputNotifyPhoneNumber"></input>
    </view>
  </view>
  <view class="space">
  </view>
  <view style="height: 126rpx; background-color: white;">
  </view> -->
  <view style="height: 126rpx; background-color: white; z-index: 1;">
  </view>
 </block>
 <block tt:else>
  <view class="paymentDetailCell">
      <text class="title">{{payAmount}}</text>
      <text class="detail2">¥{{actualAmount}}</text>
  </view>
 </block>
<view class="addressBottomSpace">
</view> 
<view class="space">
</view>

<block tt:if="{{!(goods_list[0].is_deposit_advance === 'Y' || goods_list[0].is_limittime_advance === 'Y')}}">
  <form bindsubmit="formSubmit" report-submit='true'>
  <button formType="submit" bindtap="paymentBtnAction" class="paymentButton">{{payMentButtonTitle}}          
  </button>
  </form>
</block>
<view class="addressBottomSpace">
</view> 
</scroll-view>

<block tt:if="{{goods_list[0].is_deposit_advance === 'Y' || goods_list[0].is_limittime_advance === 'Y'}}">
  <form bindsubmit="formSubmit" report-submit='true'>
  <view class="paymentContainer">
    <view class="paymentAgreement">
      <image class='isCheckedAgreement' src='{{ isChecked ? "../../images/address_Checked@2x.png" : "../../images/address_Check@2x.png"}}' bindtap="checkedAgreemented"></image>
      <text bindtap='checkedAgreemented'>我已阅读并同意 </text>
      <text style='color: #4a90e2;' bindtap='goToH5'> 有货预售协议</text>
      <!-- <text>并确认尾款通知手机号</text> -->
    </view>
    <view class="cell-line">
    </view>
    <view class="paymentPrice">
      <view class="paymentPriceText">
        <text>待付定金:</text>
        <text class="price">{{real_amount.promotion_amount}}</text>
      </view>
      <button formType="submit" bindtap="paymentBtnAction" class="payAdvanceButton">
        确认      
      </button>
    </view>
    </view>
  </form>
</block>

<import src="../../vendors/toast/wetoast.ttml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>