| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <!--index.wxml-->
- <view class="wrap">
- <view class="order_t">
- <!-- order_status //1正常 2已完成 0关闭 -->
- <!-- ship_status // //0待发货/待自提 1已发货/已自提 -->
- <!-- fare_type //0邮寄 1自提 -->
- <view class="order_status" wx:if="{{ orderInfo.fare_type == 1 }}">{{ orderInfo.order_status == 2 ? '已完成' : orderInfo.order_status == 0 ? '已关闭' : orderInfo.pay_status != 1 ? '待支付' : orderInfo.ship_status ? '已自提' : '待自提' }}</view>
- <view class="order_status" wx:if="{{ orderInfo.fare_type == 0 }}">{{ orderInfo.order_status == 2 ? '已完成' : orderInfo.order_status == 0 ? '已关闭' : orderInfo.pay_status != 1 ? '待支付' : orderInfo.ship_status ? '配送中'+ count_time : '待配送' }}</view>
- <view class="order_tips" wx:if="{{ orderInfo.order_status == 1 && orderInfo.fare_type == 1 && orderInfo.ship_status == 0 }}">请您及时取餐,如有问题提前与商家沟通</view>
- <view class="order_tips" wx:if="{{ orderInfo.order_status == 0 }}">感谢您对羊汤馆的支持,欢迎再次光临</view>
- <view class="order_btns">
- <!-- <view class="btn cancel">联系商家</view> -->
- <view class="btn cancel" wx:if="{{ orderInfo.ship_status == 0 && orderInfo.order_status == 1 }}" bind:tap="cancleOrder">取消订单</view>
- <view class="btn cancel" wx:if="{{ orderInfo.pay_status == 1 && orderInfo.ship_status == 1 && orderInfo.order_status == 1 }}" bind:tap="receiveOrder">收货</view>
- <view class="btn" bind:tap="goTopay" wx:if="{{ orderInfo.order_status == 1 && orderInfo.pay_status != 1 }}">立即支付</view>
- <view class="btn" bind:tap="toGoods" wx:if="{{ orderInfo.order_status == 0 || orderInfo.order_status == 2 || (orderInfo.order_status == 1 && orderInfo.ship_status == 1 )}}">再来一单</view>
- </view>
- <image class="order_tag" src="{{ orderInfo.fare_type ? '/statics/img/ziqu_order.png' : '/statics/img/waimai_order.png' }}"></image>
- </view>
- <view class="order_m">
- <view class="shop_info">
- <view class="shop_info_l">
- <view class="shop_name">{{ orderInfo.store.title }}</view>
- <view class="shop_adress">{{ orderInfo.store.address }}</view>
- </view>
- <image class="shop_phone" src="/statics/img/icon_phone.png" bind:tap="onMakePhone"></image>
- </view>
- <view class="order_goods">
- <view class="goods_item" wx:for="{{ orderInfo.order_good }}" wx:key="index">
- <view class="goods_item_l">
- <image class="goods_tu" src="{{ imgUrl + item.good_thumb }}"></image>
- <view class="goods_info">
- <view class="goods_title">{{ item.good_title }}</view>
- <view class="goods_labels" wx:if="{{ item.good_specs }}">
- <view class="label">{{ item.good_specs.title }}</view>
- <!-- <view class="label">甜辣</view>
- <view class="label">鸭翅</view> -->
- </view>
- </view>
- </view>
- <view class="goods_item_r">
- <view class="goods_price" wx:if="{{ !item.add_good_rule_id }}"><text class="unit">¥</text>{{ orderInfo.user.is_member ? item.member_price : item.price }}</view>
- <view class="goods_price" wx:if="{{ item.add_good_rule_id }}"><text class="unit">¥</text>{{ item.add_price }}</view>
- <view class="goods_num">x{{ item.nums }}</view>
- </view>
- </view>
- </view>
- <view class="delivery" wx:if="{{ orderInfo.fare_type == 0 }}">
- <view class="text">配送费</view>
- <view class="price"><text class="unit">¥</text>{{ orderInfo.delivery_fee }}</view>
- </view>
- <view class="quan" wx:if="{{ orderInfo.user_coupon }}">
- <view class="quan_l">
- <image class="quan_icon" src="/statics/img/icon_quan.png"></image>
- <view class="quan_wenzi">优惠券</view>
- </view>
- <view class="quan_price"><text class="unit">-¥</text>{{ orderInfo.coupon_price }}</view>
- </view>
- <view class="total_price">
- <text class="" wx:if="{{ orderInfo.user_coupon }}">已优惠</text>
- <text class="discount" wx:if="{{ orderInfo.user_coupon }}">¥{{ orderInfo.coupon_price }}</text>
- <text class="">小计</text>
- <text class="price"><text class="unit">¥</text>{{ orderInfo.pay_price }}</text>
- </view>
- </view>
- <view class="section_wrap">
- <view class="section_name">配送信息</view>
- <view class="section">
- <view class="item">
- <view class="item_l">取货方式</view>
- <view class="item_r">{{ orderInfo.fare_type ? '自提订单' : '外卖订单' }}</view>
- </view>
- <view class="item">
- <view class="item_l">服务门店</view>
- <view class="item_r">{{orderInfo.store.title }}</view>
- </view>
- <view class="item" wx:if="{{ orderInfo.fare_type == 0 }}">
- <view class="item_l">配送地址</view>
- <view class="item_r">{{ orderInfo.address }}</view>
- </view>
- <view class="item" wx:if="{{ orderInfo.fare_type == 0 }}">
- <view class="item_r">{{ orderInfo.person +' '+ orderInfo.phone }}</view>
- </view>
- <view class="item" wx:if="{{ orderInfo.fare_type == 1 }}">
- <view class="item_l">预留电话</view>
- <view class="item_r">{{ orderInfo.user.phone }}</view>
- </view>
- <view class="item" wx:if="{{ orderInfo.fare_type == 1 }}">
- <view class="item_l">商家地址</view>
- <view class="item_r">{{ orderInfo.store.address }}</view>
- </view>
- </view>
- </view>
- <view class="section_wrap">
- <view class="section_name">订单信息</view>
- <view class="section">
- <view class="item">
- <view class="item_l">订单编号</view>
- <view class="item_r">{{ orderInfo.order_num }}</view>
- </view>
- <view class="item">
- <view class="item_l">下单时间</view>
- <view class="item_r">{{ orderInfo.created_at }}</view>
- </view>
- <view class="item">
- <view class="item_l">支付方式</view>
- <view class="item_r">
- <view class="item_pay">{{ orderInfo.pay_name }}</view>
- <!-- <view class="item_pay" wx:if="{{ orderInfo.user_coupon }}">优惠券</view> -->
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- loading -->
- <!-- <van-overlay show="{{ loading }}" z-index="100">
- <van-loading custom-class="custom_loading" />
- </van-overlay> -->
|