detail.wxml 2.56 KB
<import src="./template/reason/reason.wxml"/>

<view wx:if="{{pageLoaded}}" class="container">
    <view wx:if="{{attribute == 3}}" class="reciever-moble">
        手机号码:<text class="right">{{mobile}}</text>
    </view>
    <view wx:else class="address-wrap">
        <address-card address="{{receiveAddress}}"></address-card>
    </view>

    <view class="order-info">
        <view>订单编号:{{orderCode}}</view>
        <view class="gray">订单状态:{{orderStatus}}</view>
        <view class="gray">下单时间:<b class="createTime">{{createTime}}</b></view>
    </view>

    <view class="goods-list">
        <order-item wx:for="{{goodsList}}" wx:key="unique" item="{{item}}" index="{{index}}"></order-item>
    </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">¥{{paymentAmount}}</text>
        </view>
    </view>

    <view class="bottom-options">
        <view wx:if="{{payLeftTime}}" class="time-left">
            <text class="iconfont icon-time-fill"></text>
            <text>剩余 {{payLeftTime}}</text>
        </view>
        <view class="right-block">
            <view wx:if="{{attribute == 9}}" class="only-app-tips">*此订单只能在APP端操作</view>
            <form bindsubmit="submitFormId" report-submit='true'>
                <block wx:for="{{links}}" wx:for-item="link" wx:key="unique">
                    <button wx:if="{{link === 'closeOrder'}}" formType="submit" class="option-btn" catchtap="cancelOrder">取消订单</button>
                    <view wx:if="{{link === 'buyNow'}}" class="option-btn red-btn" catchtap="payNow">立即付款</view>
                    <view wx:if="{{link === 'delOrder'}}" class="option-btn" catchtap="deleteOrder">删除订单</view>
                    <view wx:if="{{link === 'getExpress'}}" class="option-btn" catchtap="viewExpress">查看物流</view>
                    <button wx:if="{{link === 'confirm'}}" formType="submit" class="option-btn red-btn" catchtap="confirmOrder">确认收货</button>
                    <button wx:if="{{link === 'refundApply'}}" formType="submit" class="option-btn" catchtap="refundOrder">申请退款</button>
                </block>
            </form>
        </view>
    </view>

    <template is="reason" data="{{reason, showReason}}"></template>
</view>