template.wxml 7.0 KB
<!-- 待付款 -->
<template name="daifukuan">
   <view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
      <!-- 状态单号日期 -->
      <view class="state">
         <view class="stateFontNumber">
            <view class="stateFont">待付款</view>
            <view class="number">{{item.order_sn}}</view>
            <view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
            <view class="shopTypeT" wx:else>堂食</view>
         </view>
         <view class="time">{{item.add_time}}</view>
      </view>
      <!-- 订单信息 -->
      <view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
         <image src="{{item.thumb}}"></image>
         <view class="nameHint">
            <view class="name">{{item.goods_name}}</view>
            <view class="hint">{{item.goods_description}}</view>
         </view>
         <view class="numMon">
            <view class="mon">¥{{item.goods_price}}</view>
            <view class="num">x{{item.goods_num}}</view>
         </view>
      </view>
      <!-- 付款信息 -->
      <view class="payMes">
         <view class="all">合计:¥{{item.order_amount}}</view>
         <view class="cancel" catchtap='cancel' data-oid='{{item.oid}}'>取消订单</view>
         <view class="pay" catchtap='pay' data-oid='{{item.oid}}'>去支付</view>
      </view>
   </view>
</template>
<!-- 制作中 -->
<template name="zhizuozhong">
   <view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
      <!-- 状态单号日期 -->
      <view class="state">
         <view class="stateFontNumber">
            <view class="stateFont" style="color:#FEAD00;">制作中</view>
            <view class="number">{{item.order_sn}}</view>
            <view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
            <view class="shopTypeT" wx:else>堂食</view>
         </view>
         <view class="time">{{item.add_time}}</view>
      </view>
      <!-- 订单信息 -->
      <view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
         <image src="{{item.thumb}}"></image>
         <view class="nameHint">
            <view class="name">{{item.goods_name}}</view>
            <view class="hint">{{item.goods_description}}</view>
         </view>
         <view class="numMon">
            <view class="mon">¥{{item.goods_price}}</view>
            <view class="num">x{{item.goods_num}}</view>
         </view>
      </view>
      <!-- 付款信息 -->
      <view class="payMes">
         <view class="all" style="color:#333333;margin-right:0;">合计:¥{{item.order_amount}}</view>
         <!-- <view class="cancel" >取消订单</view>  -->
         <!-- <view class="pay" style="width:183rpx;background:#67C33E;">导航去取货</view> -->
      </view>
   </view>
</template>
<!-- 待取货 -->
<template name="daiquhuo">
   <view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
      <!-- 状态单号日期 -->
      <view class="state">
         <view class="stateFontNumber">
            <view class="stateFont" style="color:#67C33E;">待取货</view>
            <view class="number">{{item.order_sn}}</view>
            <view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
            <view class="shopTypeT" wx:else>堂食</view>
         </view>
         <view class="time">{{item.add_time}}</view>
      </view>
      <!-- 订单信息 -->
      <view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
         <image src="{{item.thumb}}"></image>
         <view class="nameHint">
            <view class="name">{{item.goods_name}}</view>
            <view class="hint">{{item.goods_description}}</view>
         </view>
         <view class="numMon">
            <view class="mon">¥{{item.goods_price}}</view>
            <view class="num">x{{item.goods_num}}</view>
         </view>
      </view>
      <!-- 付款信息 -->
      <view class="payMes">
         <view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
         <!-- <view class="cancel" >取消订单</view>  -->
         <view class="pay" catchtap='navigation' data-id='{{item.oid}}' style="width:183rpx;background:#67C33E;color:#fff;">导航去取货</view>
      </view>
   </view>
</template>
<!-- 待评价-->
<template name="daipingjia">
   <view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
      <!-- 状态单号日期 -->
      <view class="state">
         <view class="stateFontNumber">
            <view class="stateFont" style="color:#333333;">待评价</view>
            <view class="number">{{item.order_sn}}</view>
            <view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
            <view class="shopTypeT" wx:else>堂食</view>
         </view>
         <view class="time">{{item.add_time}}</view>
      </view>
      <!-- 订单信息 -->
      <view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
         <image src="{{item.thumb}}"></image>
         <view class="nameHint">
            <view class="name">{{item.goods_name}}</view>
            <view class="hint">{{item.goods_description}}</view>
         </view>
         <view class="numMon">
            <view class="mon">¥{{item.goods_price}}</view>
            <view class="num">x{{item.goods_num}}</view>
         </view>
      </view>
      <!-- 付款信息 -->
      <view class="payMes">
         <view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
         <!-- <view class="cancel" >取消订单</view>  -->
         <view class="pay" catchtap='evaluate' data-id='{{item.oid}}' style="width:133rpx;background:#EEEEEE;color:#333333;">去评价</view>
      </view>
   </view>
</template>
<!-- 已完成-->
<template name="yiwancheng">
   <view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
      <!-- 状态单号日期 -->
      <view class="state">
         <view class="stateFontNumber">
            <view class="stateFont" style="color:#333333;">已完成</view>
            <view class="number">{{item.order_sn}}</view>
            <view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
            <view class="shopTypeT" wx:else>堂食</view>
         </view>
         <view class="time">{{item.add_time}}</view>
      </view>
      <!-- 订单信息 -->
      <view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
         <image src="{{item.thumb}}"></image>
         <view class="nameHint">
            <view class="name">{{item.goods_name}}</view>
            <view class="hint">{{item.goods_description}}</view>
         </view>
         <view class="numMon">
            <view class="mon">¥{{item.goods_price}}</view>
            <view class="num">x{{item.goods_num}}</view>
         </view>
      </view>
      <!-- 付款信息 -->
      <view class="payMes">
         <view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
         <!-- <view class="cancel" >取消订单</view>  -->
         <view class="pay" bindtap='recur' style="width:133rpx;background:#FFCC00;color:#333333;">再来一单</view>
      </view>
   </view>
</template>