statements.wxml 8.89 KB

<view wx: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 wx:else>  
   <view class="noAddress" bindtap="otherAddressTapped">
      <image class="addressIcon" src="{{addressIcon}}"></image>
      <text class="addressPlaceholder">{{addressPlaceholder}}</text>
      <text class="addressArrow">></text>
    </view> 
 </view>
<scroll-view scroll-y style="margin-top: {{listTop}}rpx;">
 <block wx:if="{{isJit}}">
  <view class="space">
  </view>
  <view class="tip">
    <text class="tipText">{{package_title_detail}}</text>
  </view>
 </block>

 <view class="space">
 </view>
 <block wx:for="{{goods_list}}" wx:key="unique">
  <view class="product">
      <view class="productImageView">
        <image class="productImage" src="{{item.goods_images}}">
        </image>
        <block wx:if="{{item.goods_type == 'price_gift'}}">
          <image class="productImageBottom" src="{{productImageBottomImage_price_gift}}">
          </image>
        </block>
        <block wx:elif="{{item.goods_type == 'gift'}}">
          <image class="productImageBottom" src="{{productImageBottomImage_gift}}">
          </image>
        </block>
        <block wx:else>
        </block> 
      </view>
      <view class="productDetail">
          <view class="productName">
            <text class="name">{{item.product_name}}</text>
          </view>
          <view class="productColor">
            <text class="color">颜色:{{item.factory_goods_name}}  尺码:{{item.size_name}}</text>
          </view>

          <block wx: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 wx: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 wx:if="{{item.goods_type == 'price_gift' || item.goods_type == 'gift'}}">
          <text class="productPrice">¥ {{item.last_price}}</text>
        </block>
        <block wx:else>
          <text class="productPrice">¥ {{item.sales_price}}</text>
        </block>
          <text class="productNumText">x {{item.buy_number}}</text>
      </view>  
   </view>
  </block>
 <view class="space">
 </view>
 <view class="cell" bindtap="deliveryExpandSelectDeliveryAction">
    <text class="cellNameText">{{deliveryTitle}}</text>
      <block wx:for="{{delivery_way}}" wx:key="unique">
        <block wx:if="{{item.default == 'Y'}}">
           <text class="cellDetailText">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
        </block>
      </block>
      <block wx:if="{{deliveryExpand}}">
         <image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
      </block>
      <block wx:else>
          <image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
      </block>
 </view>
 <view wx:if="{{deliveryExpand}}">
    <block wx:for="{{delivery_way}}" wx: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 wx:if="{{item.default == 'Y'}}">
             <image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryAction"></image>
          </block>
          <block wx:else>
              <image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton"    bindtap="selectDeliveryAction"></image>
          </block>
        </view>
    </block>
 </view>
 <view class="cell" bindtap="expandSelectDeliveryTimeAction">
    <text class="cellNameText">{{deliveryTime}}</text>
      <block wx:for="{{delivery_time}}" wx:key="unique">
        <block wx:if="{{item.default == 'Y'}}">
           <text class="cellDetailText">{{item.delivery_time_string}}</text>
        </block>
      </block>
      <block wx:if="{{deliveryTimeExpand}}">
         <image src="{{arrowIcon_i}}" class="arrowIcon2"></image>
      </block>
      <block wx:else>
          <image src="{{arrowIcon_h}}" class="arrowIcon2"></image>
      </block>
 </view>
 <view wx:if="{{deliveryTimeExpand}}">
    <block wx:for="{{delivery_time}}" wx:key="unique">
        <view class="singleSelectCell" data-name="{{index}}" bindtap="selectDeliveryTimeAction">
          <text class="singleSelectCellTitle"data-name="{{index}}" bindtap="selectDeliveryTimeAction">{{item.delivery_time_string}}</text>
          <block wx:if="{{item.default == 'Y'}}">
             <image src="{{address_CheckedIcon}}" class="singleSelectCellButton"data-name="{{index}}" bindtap="selectDeliveryTimeAction"></image>
          </block>
          <block wx:else>
              <image src="{{address_UnCheckIcon}}" data-name="{{index}}" class="singleSelectCellButton"    bindtap="selectDeliveryTimeAction"></image>
          </block>
        </view>
    </block>
 </view>
 <view class="cell" bindtap="yohoCouponAction">
    <text class="cellNameText">{{yohoCoupon}}</text>
    <block wx:if="{{hasSelectYohoCouponCode}}">
        <text class="cellDetailText">已抵用 ¥{{yohoCouponMomey}}</text>
    </block>
    <block wx:else>
        <text class="cellDetailText">{{usable_couponsCount}}张可用</text>
    </block>
    <image src="{{arrowIcon_m}}" class="arrowIcon_m"></image>
 </view>
 <view class="yohoCodeCell">
    <text class="yohoCodeCellName">{{yohoCode}}</text>
     <block wx:if="{{needYohoCode && updateYohoCoin}}">
       <text class="yohoCodeCellDetailText">已抵¥{{use_yoho_coin}}</text>
    </block>
    <block wx:else>
      <block wx:if="{{total_yoho_coin_num >= 100}}">
          <text class="yohoCodeCellDetailText">可抵¥{{yoho_coin}}</text>
      </block>
      <block wx: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>
 <view class="cell">
    <text class="cellNameText">{{invoice}}</text>
    <switch checked="{{needInvoice}}" class="switch" bindchange="switch2Change"/>
 </view>
 <view class="invoiceCell" style= "display: {{needInvoice?'':'none'}};"bindtap="invoiceIconAction">
        <text class="invoiceCellName"bindtap="invoiceIconAction">{{invoiceDetailTitle}}</text>
        <block wx:if="{{!invoiceData}}">
          <text class="invoiceCellDetailText" bindtap="invoiceIconAction">{{invoiceDetail}}</text>
        </block>
        <block wx:elif="{{invoiceData.personal}}">
          <text class="invoiceCellDetailText" bindtap="invoiceIconAction">个人-{{invoiceData.personName}}</text>
        </block>
        <block wx:else>
          <text class="invoiceCellDetailText" bindtap="invoiceIconAction">公司-{{invoiceData.companyName}}</text>
        </block>

        
        <view class="invoiceCellArrowView">
          <image src="{{arrowIcon_m}}" class="invoiceCellArrowIcon" bindtap="invoiceIconAction"></image>
        </view>
</view>
<view class="space">
</view>
<view class="addressBottomSpace">
</view> 
 <block wx:for="{{promotion_formula_list}}" wx:key="unique">
    <view class="paymentDetailCell">
      <text class="title">{{item.promotion}}</text>
      <text class="detail1">{{item.promotion_amount}}</text>
    </view>
 </block>
<view class="paymentDetailCell">
    <text class="title">{{payAmount}}</text>
    <text class="detail2">¥{{actualAmount}}</text>
</view>
<view class="addressBottomSpace">
</view> 
<view class="space">
</view>

<form bindsubmit="formSubmit" report-submit='true'>
<button formType="submit" bindtap="paymentBtnAction" class="paymentButton">{{payMentButtonTitle}}          
</button>
</form>

<view class="addressBottomSpace">
</view> 
</scroll-view>