<!--packageA/mycomponent/offline_order/offline_order.wxml-->
<view class="offline-order-detail">
    <view class="goods-box" wx:for="{{order_data.has_many_order_goods}}" wx:for-item="good" wx:for-index="i" wx:key="i">
        <view class="order-num">
        订单号：{{ order_data.order_sn }}
        </view>
        <view class="goods" catchtap="toGoodsDetail" data-good="{{good}}" data-isvirtual="{{order_data.is_virtual}}" data-iscourse="{{good.is_course}}">
            <view class="left-img">
                <image src="{{good.thumb}}" alt=""></image>
            </view>
            <view class="right-info" style="flex: 1;">
                <h3 class="goods-title overflow-2">{{ good.title }}</h3>
                <view class="goods-option">x{{ good.total }}</view>
                <view class="bottom-box">
                    <view class="price">{{language['money']}}{{ good.price }}</view>
                    <view class="btns">
                        <view
                        wx:for="{{good.buttons}}" wx:for-item="btn"
                        class="{{btn.value==2?'view-comment-btn':'comment-btn'}}"
                        catchtap="evaluateOpration"  
                        data-order="{{order_data}}" 
                        data-goods="{{good}}" 
                        data-btn="{{btn}}"
                        >{{ btn.name }}</view>
                    </view>
                </view>
            </view>
        </view>
        <block wx:if="{{order_data.ys_order_detail && order_data.ys_order_detail.length > 0}}">
            <view class="extend-more">
                <span catchtap="toggle" style="display: flex;">展开<van-icon name="{{showMore?'arrow-down':'arrow'}}"></van-icon></span>
            </view>
            <!-- 订单详情 -->
            <ul class="goods-info" wx:if="{{showMore}}">
                <li class="item" 
                    wx:for="{{order_data.ys_order_detail}}" 
                    wx:for-item="ysItem"
                    wx:for-index="ysIndex" 
                    wx:key="ysIndex">{{ysItem}}</li>
            </ul>
        </block>
        <view class="pay-amount">
            <view>应收：{{language['money']}}{{order_data.order_goods_price}}</view>
            <view>实收：{{language['money']}}{{order_data.price}}</view>
        </view>
    </view>
</view>
