ensure.wxml 3.88 KB
<wxs src="../../../wxs/helper.wxs" module="helper" />

<view class="container">
    <view class="address-wrap">
        <address-card address="{{choosedAddress}}" bind:chooseAddress="chooseAddress" bind:addAddressByLocal="enterAddress" bind:addAddressByWechat="chooseWechatAddress"></address-card>
    </view>
    <view class="split-line"></view>
    <view class="tip" wx:if="{{isJit && package_title_detail}}">
        <text class="tip-text">{{package_title_detail}}</text>
    </view>
    <view class="split-line"></view>
    <view class="goods-list">
        <block wx:if="{{goodsList.length}}">
            <order-item wx:for="{{goodsList}}" wx:key="unique" item="{{item}}" index="{{index}}"></order-item>
        </block>
        <order-item wx:else frame="true"></order-item>
    </view>
    <view class="split-line"></view>
    <view class="choose-wrap">
        <view class="choose-item delivery-way">
            配送方式
            <view class="change-btn" bindtap="toggleDeliveryWayList">
                <text class="btn-text">{{deliveryWayText}}</text>
                <text class="iconfont {{deliveryWayEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
            </view>
        </view>
        <view wx:if="{{deliveryWayEditStatus}}" class="edit-wrap delivery-way-wrap">
            <view wx:for="{{deliveryWayList}}" wx:key="{{index}}" class="edit-item delivery-way-item" data-id="{{item.delivery_way_id}}" data-name="{{item.delivery_way_name}}:运费¥{{item.delivery_way_cost}}" bindtap="changeDeliveryWay" wx:if="{{item.is_support === 'Y'}}">
                <text class="left-name">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
                <text class="iconfont {{item.checked ? 'icon-round-checked' : 'icon-round'}}"></text>
            </view>
        </view>
        <view class="choose-item delivery-time">
            送货时间
            <view class="change-btn" bindtap="toggleDeliveryTimeList">
                <text class="btn-text">{{deliveryTimeText}}</text>
                <text class="iconfont {{deliveryTimeEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
            </view>
        </view>
        <view wx:if="{{deliveryTimeEditStatus}}" class="edit-wrap delivery-way-wrap">
            <view wx:for="{{deliveryTimeList}}" wx:key="unique" class="edit-item delivery-way-item" data-id="{{item.delivery_time_id}}" data-name="{{item.delivery_time_string}}" bindtap="changeDeliveryTime">
                <text class="left-name">{{item.delivery_time_string}}</text>
                <text class="iconfont {{item.checked ? 'icon-round-checked' : 'icon-round'}}"></text>
            </view>
        </view>
        <view class="choose-item invoice">
            发票
            <switch checked="{{invoiceNeedStatus}}" class="switch" bindchange="toggleInvoiceWrap"/>
        </view>
        <view wx:if="{{invoiceNeedStatus}}" class="choose-item invoice">
            发票信息
            <view class="change-btn" bindtap="changeInvoiceInfo">
                <text class="btn-text">{{invoiceInfo.invoiceType === 2 ? '电子发票' : '纸质发票'}} - {{invoiceInfo.invoiceTitleShow}}</text>
                <text class="iconfont icon-right"></text>
            </view>
        </view>
    </view>
    <view class="split-line"></view>
    <view class="payment-wrap">
        <view wx:for="{{promotionList}}" wx:key="unique" class="payment-cell">
            <text class="name">{{item.promotion}}</text>
            <text class="price">{{item.promotion_amount}}</text>
        </view>

        <view class="payment-cell">
            <text class="name">实付金额</text>
            <text class="price red">¥{{helper.round(paymentAmount)}}</text>
        </view>
    </view>
    <view class="submit-wrap">
        <form bindsubmit="submitOrder" report-submit='true'>
            <button formType="submit" class="submit-btn">使用微信安全支付</button>
        </form>
    </view>
</view>