Ver Fonte

feat(view): 1.代理订单新增区分代理/顾客 2.取消的订单不显示取消按钮

xiansin há 4 anos atrás
pai
commit
dfc8d8566b
2 ficheiros alterados com 16 adições e 1 exclusões
  1. 1 1
      pages/order/index/index.vue
  2. 15 0
      pages/share/order/order.vue

+ 1 - 1
pages/order/index/index.vue

xqd
@@ -55,7 +55,7 @@
                                 <app-jump-button>
                                     <view class="main-right action-box-view">
                                         <!-- 售后订单 -->
-                                        <template v-if='currentIndex == 5'>
+                                        <template v-if='currentIndex == 5 || currentIndex == 6'>
                                             <text :class="{'success-color': item.is_confirm == 1 ? true : false}">
                                                 {{item.status_text}}
                                             </text>

+ 15 - 0
pages/share/order/order.vue

xqd xqd
@@ -24,6 +24,7 @@
         ></app-tab-nav>
         <view class="list" style="margin-top: 100rpx;">
             <view class="item" v-for="item in list" :key="item.id" @click="toDetail(item.id)">
+                <text class="is-share" :class="{user:!item.is_share}">{{item.is_share?'代理':'顾客'}}</text>
                 <view class="item-top main-between">
                     <text>订单号:{{item.order_no}}{{item.is_recommend?'[平台推荐]':''}}</text>
                     <text>{{item.status}}</text>
@@ -315,6 +316,20 @@
         margin: 0 #{24rpx} #{30rpx};
         border-radius: #{16rpx};
         box-shadow: 1rpx 1rpx 10rpx rgba(0, 0, 0, 0.06);
+        position: relative;
+    }
+    .is-share{
+        position: absolute;
+        left: 0;
+        border: #{1rpx} solid #f00;
+        color: #f00;
+        padding: #{2rpx} #{10rpx};
+        font-size: #{20rpx};
+        transform: rotate(-45deg);
+        &.user{
+            border: #{1rpx} solid #e67e22;
+            color: #e67e22;
+        }
     }
 
     .status {